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 String
ID_ACTION_ADD_FOLDER
static String
ID_ACTION_ADD_SUBNET_TO_FOLDER
static String
ID_ACTION_BTN_ADD_IP_TO_FOLDER
static String
ID_ACTION_BTN_ADD_IP_TO_SUBNET
static String
ID_ACTION_BTN_ADD_SUBNET_IN_SUBNET
static String
ID_ACTION_BTN_DEL_IP_TO_SUBNET
static String
ID_ACTION_BTN_DEL_SUBNET_FROM_SUBNET
static String
ID_ACTION_BTN_MARK_AS_FAVORITE
static String
ID_ACTION_BTN_SPLIT_SUBNET
static String
ID_ACTION_DEL_FOLDER
static String
ID_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 void
addVisualActions(ActionButton... visualActions)
Creates a layout and add the action buttons created from the UIvoid
enableIpAddressActions(boolean enable)
void
enableSubnetsActions(boolean enable)
AbstractAction[]
getActions()
Actions associated to this nodecom.vaadin.flow.component.orderedlayout.HorizontalLayout
getActionsVisualComponent()
com.vaadin.flow.component.Component
getNodeIconLabel()
Returns the node icon labelboolean
isPool()
void
refresh(boolean recursive)
What to do when commanded to refresh the node.String
toString()
-
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:
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.
-
-