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 StringclassNameBusiness object class nameprotected StringdisplayNameNode's displayName.protected booleanexpandedprotected StringiconUrlUsed in nodes that use static imagesprotected StringidBusiness object idprotected StringnameBusiness object nameprotected TobjectBusiness object behind this node (model)protected booleanselected
-
Constructor Summary
Constructors Constructor Description AbstractNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)abstract AbstractAction[]getActions()Actions associated to this nodeinthashCode()abstract voidrefresh(boolean recursive)What to do when commanded to refresh the node.StringtoString()
-
-
-
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.
-
-