Class ProMResource<I extends org.processmining.framework.ProMID>
- java.lang.Object
-
- org.processmining.contexts.uitopia.model.ProMResource<I>
-
- All Implemented Interfaces:
org.deckfour.uitopia.api.model.Resource
- Direct Known Subclasses:
ProMCResource
,ProMPOResource
public abstract class ProMResource<I extends org.processmining.framework.ProMID> extends java.lang.Object implements org.deckfour.uitopia.api.model.Resource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ProMResource.Listener
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
resType
protected final org.deckfour.uitopia.api.model.ResourceType resType
-
favorite
protected boolean favorite
-
creationTime
protected long creationTime
-
lastAccessTime
protected long lastAccessTime
-
id
protected final I extends org.processmining.framework.ProMID id
-
parents
protected final java.util.Set<ProMPOResource> parents
-
context
protected final UIContext context
-
view
protected org.deckfour.uitopia.api.model.View view
-
sourceAction
protected final org.deckfour.uitopia.api.model.Action sourceAction
-
isDestroyed
protected boolean isDestroyed
-
listener
protected ProMResource.Listener listener
-
-
Constructor Detail
-
ProMResource
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)
-
-
Method Detail
-
setListener
public void setListener(ProMResource.Listener listener)
-
setParents
public void setParents(java.util.Set<ProMPOResource> parents)
-
getCreationTime
public java.util.Date getCreationTime()
- Specified by:
getCreationTime
in interfaceorg.deckfour.uitopia.api.model.Resource
-
getLastAccessTime
public java.util.Date getLastAccessTime()
- Specified by:
getLastAccessTime
in interfaceorg.deckfour.uitopia.api.model.Resource
-
setCreationTime
public void setCreationTime(long creationTime)
-
setLastAccessTime
public void setLastAccessTime(long lastAccessTime)
-
getParents
public java.util.Collection<ProMPOResource> getParents()
-
getPreview
public java.awt.Image getPreview(int maxWidth, int maxHeight)
- Specified by:
getPreview
in interfaceorg.deckfour.uitopia.api.model.Resource
-
setView
public void setView(ProMView view)
-
getSourceAction
public org.deckfour.uitopia.api.model.Action getSourceAction()
- Specified by:
getSourceAction
in interfaceorg.deckfour.uitopia.api.model.Resource
-
isFavorite
public boolean isFavorite()
- Specified by:
isFavorite
in interfaceorg.deckfour.uitopia.api.model.Resource
-
setFavorite
public void setFavorite(boolean favorite)
- Specified by:
setFavorite
in interfaceorg.deckfour.uitopia.api.model.Resource
-
updateLastAccessTime
public void updateLastAccessTime()
- Specified by:
updateLastAccessTime
in interfaceorg.deckfour.uitopia.api.model.Resource
-
getType
public org.deckfour.uitopia.api.model.ResourceType getType()
- Specified by:
getType
in interfaceorg.deckfour.uitopia.api.model.Resource
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getID
public org.processmining.framework.ProMID getID()
-
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyed
in interfaceorg.deckfour.uitopia.api.model.Resource
-
getInstance
public abstract java.lang.Object getInstance()
-
-