Class SdhTools
- java.lang.Object
 - 
- com.vaadin.flow.component.Component
 - 
- com.vaadin.flow.component.orderedlayout.HorizontalLayout
 - 
- com.neotropic.kuwaiba.modules.commercial.sdh.tools.SdhTools
 
 
 
 
- 
- All Implemented Interfaces:
 com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.orderedlayout.HorizontalLayout>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasOrderedComponents<com.vaadin.flow.component.orderedlayout.HorizontalLayout>,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.orderedlayout.FlexComponent<com.vaadin.flow.component.orderedlayout.HorizontalLayout>,com.vaadin.flow.component.orderedlayout.ThemableLayout,Serializable
public class SdhTools extends com.vaadin.flow.component.orderedlayout.HorizontalLayoutComponent with a set of tools available to work in an SDH view- Author:
 - Orlando Paz <orlando.paz@kuwaiba.org>
 - See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description classSdhTools.AddExistingConnectionEventclassSdhTools.DeleteObjectEventclassSdhTools.DeleteObjectPermanentlyEventclassSdhTools.DetectConnectionsEventclassSdhTools.NewConnectionEventclassSdhTools.NewObjectEventclassSdhTools.SaveViewEventclassSdhTools.SelectObjectEvent 
- 
Constructor Summary
Constructors Constructor Description SdhTools(SdhView sdhView, BusinessEntityManager bem, TranslationService ts, LoggingService log) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.shared.RegistrationaddDeleteObjectListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.DeleteObjectEvent> listener)com.vaadin.flow.shared.RegistrationaddDeleteObjectPermanentlyObjectListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.DeleteObjectPermanentlyEvent> listener)com.vaadin.flow.shared.RegistrationAddDetectConnectionsListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.DetectConnectionsEvent> listener)com.vaadin.flow.shared.RegistrationAddExistingConnectionListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.AddExistingConnectionEvent> listener)com.vaadin.flow.shared.RegistrationaddNewConnectionListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.NewConnectionEvent> listener)com.vaadin.flow.shared.RegistrationaddNewObjectListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.NewObjectEvent> listener)com.vaadin.flow.shared.RegistrationaddSaveViewListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.SaveViewEvent> listener)com.vaadin.flow.shared.RegistrationaddSelectObjectListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.SelectObjectEvent> listener)com.vaadin.flow.component.button.ButtongetBtnNewView()com.vaadin.flow.component.button.ButtongetBtnOpenView()com.vaadin.flow.component.button.ButtongetBtnRemoveView()ViewObjectLightgetView()voidsetBtnNewView(com.vaadin.flow.component.button.Button btnNewView)voidsetBtnOpenView(com.vaadin.flow.component.button.Button btnOpenView)voidsetBtnRemoveView(com.vaadin.flow.component.button.Button btnRemoveView)static voidsetButtonTitle(com.vaadin.flow.component.button.Button button, String title)Set the title/tool tip for the given buttonvoidsetGeneralToolsEnabled(boolean enable)Function that enables/disables main functionality buttonsvoidsetSelectionToolsEnabled(boolean enable)Function that enables/disables the buttons that depends of object selection eventsvoidsetView(ViewObjectLight theView)- 
Methods inherited from class com.vaadin.flow.component.orderedlayout.HorizontalLayout
addAndExpand, getAlignItems, getAlignSelf, getDefaultVerticalComponentAlignment, getVerticalComponentAlignment, setAlignItems, setAlignSelf, setDefaultVerticalComponentAlignment, setSpacing, setVerticalComponentAlignment 
- 
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut 
- 
Methods inherited from interface com.vaadin.flow.component.orderedlayout.FlexComponent
expand, getFlexGrow, getJustifyContentMode, replace, setFlexGrow, setJustifyContentMode 
- 
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll 
- 
Methods inherited from interface com.vaadin.flow.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf 
- 
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
SdhTools
public SdhTools(SdhView sdhView, BusinessEntityManager bem, TranslationService ts, LoggingService log)
 
 - 
 
- 
Method Detail
- 
getBtnOpenView
public com.vaadin.flow.component.button.Button getBtnOpenView()
 
- 
setBtnOpenView
public void setBtnOpenView(com.vaadin.flow.component.button.Button btnOpenView)
 
- 
getBtnNewView
public com.vaadin.flow.component.button.Button getBtnNewView()
 
- 
setBtnNewView
public void setBtnNewView(com.vaadin.flow.component.button.Button btnNewView)
 
- 
getBtnRemoveView
public com.vaadin.flow.component.button.Button getBtnRemoveView()
 
- 
setBtnRemoveView
public void setBtnRemoveView(com.vaadin.flow.component.button.Button btnRemoveView)
 
- 
getView
public ViewObjectLight getView()
 
- 
setView
public void setView(ViewObjectLight theView)
 
- 
addNewObjectListener
public com.vaadin.flow.shared.Registration addNewObjectListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.NewObjectEvent> listener)
 
- 
addSelectObjectListener
public com.vaadin.flow.shared.Registration addSelectObjectListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.SelectObjectEvent> listener)
 
- 
addNewConnectionListener
public com.vaadin.flow.shared.Registration addNewConnectionListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.NewConnectionEvent> listener)
 
- 
addSaveViewListener
public com.vaadin.flow.shared.Registration addSaveViewListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.SaveViewEvent> listener)
 
- 
addDeleteObjectListener
public com.vaadin.flow.shared.Registration addDeleteObjectListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.DeleteObjectEvent> listener)
 
- 
addDeleteObjectPermanentlyObjectListener
public com.vaadin.flow.shared.Registration addDeleteObjectPermanentlyObjectListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.DeleteObjectPermanentlyEvent> listener)
 
- 
AddExistingConnectionListener
public com.vaadin.flow.shared.Registration AddExistingConnectionListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.AddExistingConnectionEvent> listener)
 
- 
AddDetectConnectionsListener
public com.vaadin.flow.shared.Registration AddDetectConnectionsListener(com.vaadin.flow.component.ComponentEventListener<SdhTools.DetectConnectionsEvent> listener)
 
- 
setGeneralToolsEnabled
public void setGeneralToolsEnabled(boolean enable)
Function that enables/disables main functionality buttons- Parameters:
 enable- true to enable the buttons, false otherwise
 
- 
setSelectionToolsEnabled
public void setSelectionToolsEnabled(boolean enable)
Function that enables/disables the buttons that depends of object selection events- Parameters:
 enable- true to enable the buttons, false otherwise
 
- 
setButtonTitle
public static void setButtonTitle(com.vaadin.flow.component.button.Button button, String title)Set the title/tool tip for the given button- Parameters:
 button- the button to be settitle- the title to be added
 
 - 
 
 -