public abstract class ProMResource<I extends org.processmining.framework.ProMID>
extends java.lang.Object
implements org.deckfour.uitopia.api.model.Resource
Modifier and Type | Class and Description |
---|---|
static interface |
ProMResource.Listener |
Modifier and Type | Field and Description |
---|---|
protected UIContext |
context |
protected long |
creationTime |
protected boolean |
favorite |
protected I |
id |
protected boolean |
isDestroyed |
protected long |
lastAccessTime |
protected ProMResource.Listener |
listener |
protected java.util.Set<ProMPOResource> |
parents |
protected org.deckfour.uitopia.api.model.ResourceType |
resType |
protected org.deckfour.uitopia.api.model.Action |
sourceAction |
protected org.deckfour.uitopia.api.model.View |
view |
Constructor and Description |
---|
ProMResource(UIContext context,
org.deckfour.uitopia.api.model.Action sourceAction,
org.deckfour.uitopia.api.model.ResourceType resType,
I id,
java.util.List<java.util.Collection<ProMPOResource>> parameterValues) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Date |
getCreationTime() |
org.processmining.framework.ProMID |
getID() |
abstract java.lang.Object |
getInstance() |
java.util.Date |
getLastAccessTime() |
java.util.Collection<ProMPOResource> |
getParents() |
java.awt.Image |
getPreview(int maxWidth,
int maxHeight) |
org.deckfour.uitopia.api.model.Action |
getSourceAction() |
org.deckfour.uitopia.api.model.ResourceType |
getType() |
int |
hashCode() |
boolean |
isDestroyed() |
boolean |
isFavorite() |
void |
setCreationTime(long creationTime) |
void |
setFavorite(boolean favorite) |
void |
setLastAccessTime(long lastAccessTime) |
void |
setListener(ProMResource.Listener listener) |
void |
setParents(java.util.Set<ProMPOResource> parents) |
void |
setView(ProMView view) |
java.lang.String |
toString() |
void |
updateLastAccessTime() |
protected final org.deckfour.uitopia.api.model.ResourceType resType
protected boolean favorite
protected long creationTime
protected long lastAccessTime
protected final I extends org.processmining.framework.ProMID id
protected final java.util.Set<ProMPOResource> parents
protected final UIContext context
protected org.deckfour.uitopia.api.model.View view
protected final org.deckfour.uitopia.api.model.Action sourceAction
protected boolean isDestroyed
protected ProMResource.Listener listener
public ProMResource(UIContext context, org.deckfour.uitopia.api.model.Action sourceAction, org.deckfour.uitopia.api.model.ResourceType resType, I id, java.util.List<java.util.Collection<ProMPOResource>> parameterValues)
public void setListener(ProMResource.Listener listener)
public void setParents(java.util.Set<ProMPOResource> parents)
public java.util.Date getCreationTime()
getCreationTime
in interface org.deckfour.uitopia.api.model.Resource
public java.util.Date getLastAccessTime()
getLastAccessTime
in interface org.deckfour.uitopia.api.model.Resource
public void setCreationTime(long creationTime)
public void setLastAccessTime(long lastAccessTime)
public java.util.Collection<ProMPOResource> getParents()
public java.awt.Image getPreview(int maxWidth, int maxHeight)
getPreview
in interface org.deckfour.uitopia.api.model.Resource
public void setView(ProMView view)
public org.deckfour.uitopia.api.model.Action getSourceAction()
getSourceAction
in interface org.deckfour.uitopia.api.model.Resource
public boolean isFavorite()
isFavorite
in interface org.deckfour.uitopia.api.model.Resource
public void setFavorite(boolean favorite)
setFavorite
in interface org.deckfour.uitopia.api.model.Resource
public void updateLastAccessTime()
updateLastAccessTime
in interface org.deckfour.uitopia.api.model.Resource
public org.deckfour.uitopia.api.model.ResourceType getType()
getType
in interface org.deckfour.uitopia.api.model.Resource
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public org.processmining.framework.ProMID getID()
public boolean isDestroyed()
isDestroyed
in interface org.deckfour.uitopia.api.model.Resource
public abstract java.lang.Object getInstance()