Class AbstractNode<T>
- java.lang.Object
-
- org.neotropic.util.visual.tree.nodes.AbstractNode<T>
-
- Type Parameters:
T
- The type of the business object
- Direct Known Subclasses:
ClassNode
,DataModelNode
,FavoritesManagerNode
,FilterDefinitionNode
,GroupNode
,InventoryObjectNode
,PoolNode
,PoolObjectNode
,ReportNode
,ScriptNode
,UserNode
,WarehouseManagerNode
public abstract class AbstractNode<T> extends Object
A node that represents a business domain object from the model.- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description protected String
displayName
Node's displayName.protected boolean
hasChildren
protected String
iconUrl
protected T
object
Business object behind this node (model)
-
Constructor Summary
Constructors Constructor Description AbstractNode(T object)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
abstract AbstractAction[]
getActions()
Actions associated to this nodeString
getDisplayName()
String
getIconUrl()
T
getObject()
Retrieves the business object behind the nodeint
hashCode()
boolean
isHasChildren()
abstract void
refresh(boolean recursive)
What to do when commanded to refresh the node.void
setDisplayName(String displayName)
void
setHasChildren(boolean hasChildren)
void
setIconUrl(String iconUrl)
String
toString()
-
-
-
Constructor Detail
-
AbstractNode
public AbstractNode(T object)
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
-
setDisplayName
public void setDisplayName(String displayName)
-
getIconUrl
public String getIconUrl()
-
setIconUrl
public void setIconUrl(String iconUrl)
-
isHasChildren
public boolean isHasChildren()
-
setHasChildren
public void setHasChildren(boolean hasChildren)
-
getObject
public T getObject()
Retrieves the business object behind the node- Returns:
- The business object, whose type is specified in the template (T)
-
getActions
public abstract AbstractAction[] getActions()
Actions associated to this node- Returns:
- An array of actions
-
refresh
public abstract void refresh(boolean recursive)
What to do when commanded to refresh the node.- Parameters:
recursive
- Refresh the children nodes.
-
-