Class ServiceManTreeNode
- java.lang.Object
-
- org.neotropic.util.visual.tree.nodes.AbstractNode<Object>
-
- org.neotropic.kuwaiba.modules.optional.serviceman.components.ServiceManTreeNode
-
public class ServiceManTreeNode extends AbstractNode<Object>
Nodes to display the service manager tree grid explorer- Author:
- Hardy Ryan Chingal Martinez <ryan.chingal@kuwaiba.org>
-
-
Field Summary
-
Fields inherited from class org.neotropic.util.visual.tree.nodes.AbstractNode
displayName, expanded, iconUrl
-
-
Constructor Summary
Constructors Constructor Description ServiceManTreeNode(InventoryObjectPool pool)
ServiceManTreeNode(BusinessObjectLight object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
AbstractAction[]
getActions()
Actions associated to this nodeString
getClassName()
String
getDescription()
com.vaadin.flow.component.icon.Icon
getIcon()
String
getId()
com.vaadin.flow.component.html.Image
getImage()
String
getName()
Object
getObject()
ServiceManTreeNode
getThis()
int
hashCode()
boolean
isCustomer()
boolean
isPool()
boolean
isResource()
boolean
isSelected()
boolean
isService()
void
refresh(boolean recursive)
What to do when commanded to refresh the node.void
setClassName(String className)
void
setCustomer(boolean customer)
void
setDescription(String description)
void
setIcon(com.vaadin.flow.component.icon.Icon icon)
void
setId(String id)
void
setImage(com.vaadin.flow.component.html.Image image)
void
setName(String name)
void
setObject(Object object)
void
setPool(boolean pool)
void
setResource(boolean resource)
void
setSelected(boolean selected)
void
setService(boolean service)
String
toString()
-
-
-
Constructor Detail
-
ServiceManTreeNode
public ServiceManTreeNode(BusinessObjectLight object)
-
ServiceManTreeNode
public ServiceManTreeNode(InventoryObjectPool pool)
-
-
Method Detail
-
getThis
public ServiceManTreeNode getThis()
-
getId
public String getId()
- Returns:
- the id
-
setId
public void setId(String id)
- Parameters:
id
- the id to set
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name
- the name to set
-
getClassName
public String getClassName()
- Returns:
- the className
-
setClassName
public void setClassName(String className)
- Parameters:
className
- the className to set
-
isCustomer
public boolean isCustomer()
- Returns:
- the service
-
setCustomer
public void setCustomer(boolean customer)
- Parameters:
customer
- the service to set
-
getObject
public Object getObject()
- Returns:
- the object
-
setObject
public void setObject(Object object)
- Parameters:
object
- the object to set
-
isService
public boolean isService()
- Returns:
- the service
-
setService
public void setService(boolean service)
- Parameters:
service
- the service to set
-
isResource
public boolean isResource()
- Returns:
- the resource
-
setResource
public void setResource(boolean resource)
- Parameters:
resource
- the resource to set
-
isPool
public boolean isPool()
- Returns:
- the pool
-
setPool
public void setPool(boolean pool)
- Parameters:
pool
- the pool to set
-
isSelected
public boolean isSelected()
-
setSelected
public void setSelected(boolean selected)
-
getIcon
public com.vaadin.flow.component.icon.Icon getIcon()
- Returns:
- the icon
-
setIcon
public void setIcon(com.vaadin.flow.component.icon.Icon icon)
- Parameters:
icon
- the icon to set
-
getImage
public com.vaadin.flow.component.html.Image getImage()
- Returns:
- the image
-
setImage
public void setImage(com.vaadin.flow.component.html.Image image)
- Parameters:
image
- the image to set
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractNode<Object>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractNode<Object>
-
getDescription
public String getDescription()
- Returns:
- the description
-
setDescription
public void setDescription(String description)
- Parameters:
description
- the description to set
-
toString
public String toString()
- Overrides:
toString
in classAbstractNode<Object>
-
getActions
public AbstractAction[] getActions()
Description copied from class:AbstractNode
Actions associated to this node- Specified by:
getActions
in classAbstractNode<Object>
- Returns:
- An array of actions
-
refresh
public void refresh(boolean recursive)
Description copied from class:AbstractNode
What to do when commanded to refresh the node.- Specified by:
refresh
in classAbstractNode<Object>
- Parameters:
recursive
- Refresh the children nodes.
-
-