Class ObjectOptionsPanel
- java.lang.Object
-
- org.neotropic.kuwaiba.modules.core.navigation.ObjectOptionsPanel
-
public class ObjectOptionsPanel extends Object
A side panel composed by set of sections with detailed information and options on an object. These sections are: A property sheet, a list of explorers, a list of views, a help and a contextual information panel.- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description com.vaadin.flow.component.accordion.Accordion
accOptions
The main accordion containing the sections.static String
EVENT_ACTION_SELECTION
This event occurs when a view, action or explorer is selected.static String
EVENT_EXPLORER_SELECTION
This event occurs when a explorer is selected.static String
EVENT_VIEW_SELECTION
This event occurs when a view is selected.
-
Constructor Summary
Constructors Constructor Description ObjectOptionsPanel(BusinessObjectLight selectedObject, CoreActionsRegistry coreActionRegistry, AdvancedActionsRegistry advancedActionsRegistry, ViewWidgetRegistry viewWidgetRegistry, ExplorerRegistry explorerRegistry, MetadataEntityManager mem, ApplicationEntityManager aem, BusinessEntityManager bem, TranslationService ts, LoggingService log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.component.Component
build(UserProfile user)
Builds the actual component ready to be embedded.Make sure you set the showXXX flags to the values you need depending on what do you want to be displayed.BusinessObjectLight
getSelectedObject()
boolean
isShowContext()
boolean
isShowCoreActions()
boolean
isShowCustomActions()
boolean
isShowExplorers()
boolean
isShowHelp()
boolean
isShowPropertySheet()
boolean
isShowViews()
Object
lastValue(String propertyName)
void
setPropertyListener(PropertySheet.IPropertyValueChangedListener propertyListener)
void
setSelectedObject(BusinessObjectLight selectedObject)
void
setSelectionListener(ActionListener selectionListener)
void
setShowContext(boolean showContext)
void
setShowCoreActions(boolean showCoreActions)
void
setShowCustomActions(boolean showCustomActions)
void
setShowExplorers(boolean showExplorers)
void
setShowHelp(boolean showHelp)
void
setShowPropertySheet(boolean showPropertySheet)
void
setShowViews(boolean showViews)
void
UndoLastEdit()
-
-
-
Field Detail
-
EVENT_VIEW_SELECTION
public static final String EVENT_VIEW_SELECTION
This event occurs when a view is selected.- See Also:
- Constant Field Values
-
EVENT_ACTION_SELECTION
public static final String EVENT_ACTION_SELECTION
This event occurs when a view, action or explorer is selected.- See Also:
- Constant Field Values
-
EVENT_EXPLORER_SELECTION
public static final String EVENT_EXPLORER_SELECTION
This event occurs when a explorer is selected.- See Also:
- Constant Field Values
-
accOptions
public final com.vaadin.flow.component.accordion.Accordion accOptions
The main accordion containing the sections.
-
-
Constructor Detail
-
ObjectOptionsPanel
public ObjectOptionsPanel(BusinessObjectLight selectedObject, CoreActionsRegistry coreActionRegistry, AdvancedActionsRegistry advancedActionsRegistry, ViewWidgetRegistry viewWidgetRegistry, ExplorerRegistry explorerRegistry, MetadataEntityManager mem, ApplicationEntityManager aem, BusinessEntityManager bem, TranslationService ts, LoggingService log)
-
-
Method Detail
-
build
public com.vaadin.flow.component.Component build(UserProfile user) throws InventoryException
Builds the actual component ready to be embedded.Make sure you set the showXXX flags to the values you need depending on what do you want to be displayed. Every flag has a default, see their respective documentation for details.- Parameters:
user
- The user taken from the application session. It will be used to match its privileges to activate or deactivate actions.- Returns:
- The component to be embedded. Main implementation uses an accordion.
- Throws:
InventoryException
- In case that building some of the sections results in
-
getSelectedObject
public BusinessObjectLight getSelectedObject()
-
setSelectedObject
public void setSelectedObject(BusinessObjectLight selectedObject)
-
isShowPropertySheet
public boolean isShowPropertySheet()
-
setShowPropertySheet
public void setShowPropertySheet(boolean showPropertySheet)
-
isShowExplorers
public boolean isShowExplorers()
-
setShowExplorers
public void setShowExplorers(boolean showExplorers)
-
isShowViews
public boolean isShowViews()
-
setShowViews
public void setShowViews(boolean showViews)
-
isShowCoreActions
public boolean isShowCoreActions()
-
setShowCoreActions
public void setShowCoreActions(boolean showCoreActions)
-
isShowCustomActions
public boolean isShowCustomActions()
-
setShowCustomActions
public void setShowCustomActions(boolean showCustomActions)
-
isShowHelp
public boolean isShowHelp()
-
setShowHelp
public void setShowHelp(boolean showHelp)
-
isShowContext
public boolean isShowContext()
-
setShowContext
public void setShowContext(boolean showContext)
-
setSelectionListener
public void setSelectionListener(ActionListener selectionListener)
-
setPropertyListener
public void setPropertyListener(PropertySheet.IPropertyValueChangedListener propertyListener)
-
UndoLastEdit
public void UndoLastEdit()
-
-