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
,IpamNode
,PoolNode
,ReportNode
,ScriptNode
,ServiceManTreeNode
,SoftwareObjectNode
,TemplateNode
,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
className
Business object class nameprotected String
displayName
Node's displayName.protected boolean
expanded
protected String
iconUrl
Used in nodes that use static imagesprotected String
id
Business object idprotected String
name
Business object nameprotected T
object
Business object behind this node (model)protected boolean
selected
-
Constructor Summary
Constructors Constructor Description AbstractNode()
-
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 nodeint
hashCode()
abstract void
refresh(boolean recursive)
What to do when commanded to refresh the node.String
toString()
-
-
-
Field Detail
-
object
protected final T object
Business object behind this node (model)
-
id
protected String id
Business object id
-
className
protected String className
Business object class name
-
displayName
protected String displayName
Node's displayName. If null, the toString method of the business object will be used
-
name
protected String name
Business object name
-
selected
protected boolean selected
-
expanded
protected boolean expanded
-
iconUrl
protected String iconUrl
Used in nodes that use static images
-
-
Method Detail
-
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.
-
-