Class IpamNode
- java.lang.Object
-
- org.neotropic.util.visual.tree.nodes.AbstractNode<Object>
-
- com.neotropic.kuwaiba.modules.commercial.ipam.visual.IpamNode
-
public class IpamNode extends AbstractNode<Object>
A node used in the Tree Grid of the IPAM module- Author:
- Adrian Martinez Molina <adrian.martinez@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static StringID_ACTION_ADD_FOLDERstatic StringID_ACTION_ADD_SUBNET_TO_FOLDERstatic StringID_ACTION_BTN_ADD_IP_TO_FOLDERstatic StringID_ACTION_BTN_ADD_IP_TO_SUBNETstatic StringID_ACTION_BTN_ADD_SUBNET_IN_SUBNETstatic StringID_ACTION_BTN_DEL_IP_TO_SUBNETstatic StringID_ACTION_BTN_DEL_SUBNET_FROM_SUBNETstatic StringID_ACTION_BTN_MARK_AS_FAVORITEstatic StringID_ACTION_BTN_SPLIT_SUBNETstatic StringID_ACTION_DEL_FOLDERstatic StringID_ACTION_DEL_SUBNET_FROM_FOLDER-
Fields inherited from class org.neotropic.util.visual.tree.nodes.AbstractNode
className, displayName, expanded, iconUrl, id, name, object, selected
-
-
Constructor Summary
Constructors Constructor Description IpamNode(InventoryObjectPool folder)IpamNode(BusinessObjectLight subnet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVisualActions(ActionButton... visualActions)Creates a layout and add the action buttons created from the UIvoidenableIpAddressActions(boolean enable)voidenableSubnetsActions(boolean enable)AbstractAction[]getActions()Actions associated to this nodecom.vaadin.flow.component.orderedlayout.HorizontalLayoutgetActionsVisualComponent()com.vaadin.flow.component.ComponentgetNodeIconLabel()Returns the node icon labelbooleanisPool()voidrefresh(boolean recursive)What to do when commanded to refresh the node.StringtoString()-
Methods inherited from class org.neotropic.util.visual.tree.nodes.AbstractNode
equals, hashCode
-
-
-
-
Field Detail
-
ID_ACTION_BTN_MARK_AS_FAVORITE
public static String ID_ACTION_BTN_MARK_AS_FAVORITE
-
ID_ACTION_ADD_FOLDER
public static String ID_ACTION_ADD_FOLDER
-
ID_ACTION_DEL_FOLDER
public static String ID_ACTION_DEL_FOLDER
-
ID_ACTION_ADD_SUBNET_TO_FOLDER
public static String ID_ACTION_ADD_SUBNET_TO_FOLDER
-
ID_ACTION_DEL_SUBNET_FROM_FOLDER
public static String ID_ACTION_DEL_SUBNET_FROM_FOLDER
-
ID_ACTION_BTN_ADD_IP_TO_FOLDER
public static String ID_ACTION_BTN_ADD_IP_TO_FOLDER
-
ID_ACTION_BTN_DEL_IP_TO_SUBNET
public static String ID_ACTION_BTN_DEL_IP_TO_SUBNET
-
ID_ACTION_BTN_ADD_SUBNET_IN_SUBNET
public static String ID_ACTION_BTN_ADD_SUBNET_IN_SUBNET
-
ID_ACTION_BTN_DEL_SUBNET_FROM_SUBNET
public static String ID_ACTION_BTN_DEL_SUBNET_FROM_SUBNET
-
ID_ACTION_BTN_SPLIT_SUBNET
public static String ID_ACTION_BTN_SPLIT_SUBNET
-
ID_ACTION_BTN_ADD_IP_TO_SUBNET
public static String ID_ACTION_BTN_ADD_IP_TO_SUBNET
-
-
Constructor Detail
-
IpamNode
public IpamNode(BusinessObjectLight subnet)
-
IpamNode
public IpamNode(InventoryObjectPool folder)
-
-
Method Detail
-
isPool
public boolean isPool()
-
getActionsVisualComponent
public com.vaadin.flow.component.orderedlayout.HorizontalLayout getActionsVisualComponent()
-
addVisualActions
public void addVisualActions(ActionButton... visualActions)
Creates a layout and add the action buttons created from the UI- Parameters:
visualActions- a layout fulfill with buttons
-
enableSubnetsActions
public void enableSubnetsActions(boolean enable)
-
enableIpAddressActions
public void enableIpAddressActions(boolean enable)
-
getNodeIconLabel
public com.vaadin.flow.component.Component getNodeIconLabel()
Returns the node icon label- Returns:
- an icon and label(includes validators) of the node
-
toString
public String toString()
- Overrides:
toStringin classAbstractNode<Object>
-
getActions
public AbstractAction[] getActions()
Description copied from class:AbstractNodeActions associated to this node- Specified by:
getActionsin classAbstractNode<Object>- Returns:
- An array of actions
-
refresh
public void refresh(boolean recursive)
Description copied from class:AbstractNodeWhat to do when commanded to refresh the node.- Specified by:
refreshin classAbstractNode<Object>- Parameters:
recursive- Refresh the children nodes.
-
-