Class AssociateObjectToProjectVisualAction
- 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.planning.projects.actions.AssociateObjectToProjectVisualAction
-
- All Implemented Interfaces:
Comparable
@Component public class AssociateObjectToProjectVisualAction extends AbstractVisualInventoryAction
Visual wrapper of associate object action.- Author:
- Mauricio Ruiz <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 String
PARAM_BUSINESS_OBJECT
New business object visual action parameter business object.-
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 AssociateObjectToProjectVisualAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.server.Command
getCommandClose()
refresh gridAbstractAction
getModuleAction()
The underlying action wrapped by this visual object.int
getRequiredSelectedObjects()
How many objects have to be selected so this action is enabled.com.vaadin.flow.component.dialog.Dialog
getVisualComponent(ModuleActionParameterSet parameters)
The visual component (a XXLayout, for example), to be embedded in a Dialog upon triggering the action.void
setCommandClose(com.vaadin.flow.server.Command commandClose)
-
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_BUSINESS_OBJECT
public static String PARAM_BUSINESS_OBJECT
New business object visual action parameter business object.
-
-
Method Detail
-
getVisualComponent
public com.vaadin.flow.component.dialog.Dialog getVisualComponent(ModuleActionParameterSet parameters)
Description copied from class:AbstractVisualAction
The visual component (a XXLayout, for example), to be embedded in a Dialog upon triggering the action.- Specified by:
getVisualComponent
in 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.
-
getModuleAction
public AbstractAction getModuleAction()
Description copied from class:AbstractVisualAction
The underlying action wrapped by this visual object.- Specified by:
getModuleAction
in classAbstractVisualAction
- Returns:
- The action.
-
getCommandClose
public com.vaadin.flow.server.Command getCommandClose()
refresh grid- Returns:
- commandClose;Command; refresh action
-
setCommandClose
public void setCommandClose(com.vaadin.flow.server.Command commandClose)
- Parameters:
commandClose
- ;Command; refresh action
-
getRequiredSelectedObjects
public int getRequiredSelectedObjects()
Description copied from class:AbstractVisualInventoryAction
How 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:
getRequiredSelectedObjects
in classAbstractVisualInventoryAction
- Returns:
- The number of objects that have to be selected so the action is enabled.
-
-