Class NewContactForCustomerAction
- java.lang.Object
-
- org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractVisualAction
-
- org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractVisualInventoryAction
-
- org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractVisualAdvancedAction
-
- org.neotropic.kuwaiba.modules.optional.contactman.widgets.NewContactForCustomerAction
-
- All Implemented Interfaces:
Comparable
@Component public class NewContactForCustomerAction extends AbstractVisualAdvancedAction
Creates a new contact for customer.- Author:
- Mauricio Ruiz Beltrán <mauricio.ruiz@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_BUSINESS_OBJECTbusiness object parameter, used to retrieve the parent as a parameter.-
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 NewContactForCustomerAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringappliesTo()Tells the system what inventory objects support said action.AbstractActiongetModuleAction()The underlying action wrapped by this visual object.StringgetName()intgetRequiredSelectedObjects()How many objects have to be selected so this action is enabled.com.vaadin.flow.component.dialog.DialoggetVisualComponent(ModuleActionParameterSet parameters)The visual component (a XXLayout, for example), to be embedded in a Dialog upon triggering the action.-
Methods inherited from class org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractVisualAdvancedAction
isReusable
-
Methods inherited from class org.neotropic.kuwaiba.core.apis.integration.modules.actions.AbstractVisualInventoryAction
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_BUSINESS_OBJECT
public static String PARAM_BUSINESS_OBJECT
business object parameter, used to retrieve the parent as a parameter.
-
-
Method Detail
-
getVisualComponent
public com.vaadin.flow.component.dialog.Dialog getVisualComponent(ModuleActionParameterSet parameters)
Description copied from class:AbstractVisualActionThe visual component (a XXLayout, for example), to be embedded in a Dialog upon triggering the action.- Specified by:
getVisualComponentin classAbstractVisualAction- Parameters:
parameters- The initial parameters necessary to build the visual component. Some or all these parameters might be later passed to the underlyingAbstractAction.- Returns:
- The visual component.
-
getName
public String getName()
- Overrides:
getNamein classAbstractVisualInventoryAction
-
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.
-
getModuleAction
public AbstractAction getModuleAction()
Description copied from class:AbstractVisualActionThe underlying action wrapped by this visual object.- Specified by:
getModuleActionin classAbstractVisualAction- Returns:
- The action.
-
appliesTo
public String appliesTo()
Description copied from class:AbstractVisualInventoryActionTells the system what inventory objects support said action. Superclasses are also allowed. For example, returning GenericCommunicationsElement applies to all devices such as routers, multiplexers or switches, while InventoryObject will apply to any object.- Overrides:
appliesToin classAbstractVisualInventoryAction- Returns:
- The class or superclass whose instances the action applies to. If null, this indicate that while the action is related to inventory, it doesn't apply to a particular type, for example, when creating a Customer pool in the service manager (or any root pool, for that matter). By default, the action will apply to all instances.
-
-