Package org.neotropic.util.visual.window
Class ObjectSelectorWindow
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.dialog.GeneratedVaadinDialog<com.vaadin.flow.component.dialog.Dialog>
-
- com.vaadin.flow.component.dialog.Dialog
-
- com.vaadin.componentfactory.EnhancedDialog
-
- org.neotropic.util.visual.dialog.ConfirmDialog
-
- org.neotropic.util.visual.window.ObjectSelectorWindow
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasComponents
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasEnabled
,com.vaadin.flow.component.HasSize
,Serializable
- Direct Known Subclasses:
DeviceSelectorWindow
,WindowContainerSelector
public abstract class ObjectSelectorWindow extends ConfirmDialog
Window to select a object.- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectSelectorWindow(BusinessObjectLight object, MetadataEntityManager mem, TranslationService ts, Consumer<BusinessObjectLight> consumerSelectedObject)
ObjectSelectorWindow(MetadataEntityManager mem, TranslationService ts, Consumer<BusinessObjectLight> consumerSelectedObject)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract List<BusinessObjectLight>
getItems(BusinessObjectLight selectedObject)
List of items to set in the selector element.protected BusinessObjectLight
getObject()
protected TranslationService
getTranslationService()
void
open()
void
setButtonOkEnabled(boolean enabled)
-
Methods inherited from class org.neotropic.util.visual.dialog.ConfirmDialog
getBtnConfirm, setContentSizeFull, setHeader
-
Methods inherited from class com.vaadin.componentfactory.EnhancedDialog
add, addComponentAtIndex, addThemeVariants, addToFooter, addToHeader, remove, removeAll, setContent, setFooter, setHeader, setThemeVariants
-
Methods inherited from class com.vaadin.flow.component.dialog.Dialog
addAttachListener, addDetachListener, addDialogCloseActionListener, addOpenedChangeListener, addResizeListener, close, getChildren, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isModal, isOpened, isResizable, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setHeight, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setModal, setOpened, setResizable, setWidth
-
Methods inherited from class com.vaadin.flow.component.dialog.GeneratedVaadinDialog
getAriaLabelString, isOpenedBoolean, setAriaLabel
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
-
-
-
Constructor Detail
-
ObjectSelectorWindow
public ObjectSelectorWindow(MetadataEntityManager mem, TranslationService ts, Consumer<BusinessObjectLight> consumerSelectedObject)
-
ObjectSelectorWindow
public ObjectSelectorWindow(BusinessObjectLight object, MetadataEntityManager mem, TranslationService ts, Consumer<BusinessObjectLight> consumerSelectedObject)
-
-
Method Detail
-
getObject
protected BusinessObjectLight getObject()
-
getTranslationService
protected TranslationService getTranslationService()
-
open
public void open()
- Overrides:
open
in classcom.vaadin.flow.component.dialog.Dialog
-
setButtonOkEnabled
public void setButtonOkEnabled(boolean enabled)
-
getItems
public abstract List<BusinessObjectLight> getItems(BusinessObjectLight selectedObject) throws InventoryException
List of items to set in the selector element.- Parameters:
selectedObject
- The last object selected.- Returns:
- List of items
- Throws:
InventoryException
-
-