Class AddIpAddrToFolderVisualAction
- java.lang.Object
-
- org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractVisualAction
-
- org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractVisualInventoryAction
-
- com.neotropic.kuwaiba.modules.commercial.ipam.actions.AddIpAddrToFolderVisualAction
-
- All Implemented Interfaces:
Comparable
@Component public class AddIpAddrToFolderVisualAction extends AbstractVisualInventoryAction
Visual wrapper of a new business object action.- Author:
- Adrian Martinez Molina <adrian.martinez@kuwaiba.org>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractVisualAction
AbstractVisualAction.VisualActionType
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAM_IPVTo know if we are creating a ipv4 or ipv6static StringPARAM_PARENT_IDNew IP address visual action parameter folder idstatic StringPARAM_PARENT_TYPENew IP address parent type-
Fields inherited from class org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractVisualInventoryAction
SELECTION_ANY_OBJECTS, SELECTION_NO_OBJECTS
-
Fields inherited from class org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractVisualAction
childrenActions, formatOptions, icon, listeners, moduleId, type
-
-
Constructor Summary
Constructors Constructor Description AddIpAddrToFolderVisualAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractActiongetModuleAction()The underlying action wrapped by this visual object.intgetRequiredSelectedObjects()How many objects have to be selected so this action is enabled.com.vaadin.flow.component.dialog.DialoggetVisualComponent(ModuleActionParameterSet parameters)Creates the visual component to add a new ip address-
Methods inherited from class org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractVisualInventoryAction
appliesTo, getName, toString
-
Methods inherited from class org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractVisualAction
clearListeners, compareTo, fireActionCompletedEvent, getChildrenActions, getFormatOptions, getIcon, getModuleId, registerActionCompletedLister, setChildrenActions, setFormatOptions, setIcon, setModuleId, unregisterListener
-
-
-
-
Field Detail
-
PARAM_PARENT_ID
public static String PARAM_PARENT_ID
New IP address visual action parameter folder id
-
PARAM_IPV
public static String PARAM_IPV
To know if we are creating a ipv4 or ipv6
-
PARAM_PARENT_TYPE
public static final String PARAM_PARENT_TYPE
New IP address parent type- See Also:
- Constant Field Values
-
-
Method Detail
-
getVisualComponent
public com.vaadin.flow.component.dialog.Dialog getVisualComponent(ModuleActionParameterSet parameters)
Creates the visual component to add a new ip address- Specified by:
getVisualComponentin classAbstractVisualAction- Parameters:
parameters- need it parameters- Returns:
- a dialog
-
getModuleAction
public AbstractAction getModuleAction()
Description copied from class:AbstractVisualActionThe underlying action wrapped by this visual object.- Specified by:
getModuleActionin classAbstractVisualAction- Returns:
- The action.
-
getRequiredSelectedObjects
public int getRequiredSelectedObjects()
Description copied from class:AbstractVisualInventoryActionHow many objects have to be selected so this action is enabled. Use -1 for any (-1), 0 if no objects have to be selected (0), or a number greater than 0 for a fixed number.- Specified by:
getRequiredSelectedObjectsin classAbstractVisualInventoryAction- Returns:
- The number of objects that have to be selected so the action is enabled.
-
-