Class MplsTools
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.orderedlayout.HorizontalLayout
-
- com.neotropic.kuwaiba.modules.commercial.mpls.tools.MplsTools
-
- 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 MplsTools extends com.vaadin.flow.component.orderedlayout.HorizontalLayout
Component with a set of tools available to work in an Mpls view- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MplsTools.AddExistingConnectionEvent
class
MplsTools.DeleteObjectEvent
class
MplsTools.DeleteObjectPermanentlyEvent
class
MplsTools.DetectConnectionsEvent
class
MplsTools.NewConnectionEvent
class
MplsTools.NewObjectEvent
class
MplsTools.SaveViewEvent
class
MplsTools.SelectObjectEvent
-
Constructor Summary
Constructors Constructor Description MplsTools(MplsView mplsView, 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.Registration
addDeleteObjectListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.DeleteObjectEvent> listener)
com.vaadin.flow.shared.Registration
addDeleteObjectPermanentlyObjectListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.DeleteObjectPermanentlyEvent> listener)
com.vaadin.flow.shared.Registration
AddDetectConnectionsListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.DetectConnectionsEvent> listener)
com.vaadin.flow.shared.Registration
AddExistingConnectionListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.AddExistingConnectionEvent> listener)
com.vaadin.flow.shared.Registration
addNewConnectionListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.NewConnectionEvent> listener)
com.vaadin.flow.shared.Registration
addNewObjectListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.NewObjectEvent> listener)
com.vaadin.flow.shared.Registration
addSaveViewListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.SaveViewEvent> listener)
com.vaadin.flow.shared.Registration
addSelectObjectListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.SelectObjectEvent> listener)
com.vaadin.flow.component.button.Button
getBtnNewView()
com.vaadin.flow.component.button.Button
getBtnOpenView()
com.vaadin.flow.component.button.Button
getBtnRemoveView()
ViewObjectLight
getView()
void
setBtnNewView(com.vaadin.flow.component.button.Button btnNewView)
void
setBtnOpenView(com.vaadin.flow.component.button.Button btnOpenView)
void
setBtnRemoveView(com.vaadin.flow.component.button.Button btnRemoveView)
static void
setButtonTitle(com.vaadin.flow.component.button.Button button, String title)
Set the title/tool tip for the given buttonvoid
setGeneralToolsEnabled(boolean enable)
Function that enables/disables main functionality buttonsvoid
setSelectionToolsEnabled(boolean enable)
Function that enables/disables the buttons that depends of object selection eventsvoid
setView(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
-
MplsTools
public MplsTools(MplsView mplsView, 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<MplsTools.NewObjectEvent> listener)
-
addSelectObjectListener
public com.vaadin.flow.shared.Registration addSelectObjectListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.SelectObjectEvent> listener)
-
addNewConnectionListener
public com.vaadin.flow.shared.Registration addNewConnectionListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.NewConnectionEvent> listener)
-
addSaveViewListener
public com.vaadin.flow.shared.Registration addSaveViewListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.SaveViewEvent> listener)
-
addDeleteObjectListener
public com.vaadin.flow.shared.Registration addDeleteObjectListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.DeleteObjectEvent> listener)
-
addDeleteObjectPermanentlyObjectListener
public com.vaadin.flow.shared.Registration addDeleteObjectPermanentlyObjectListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.DeleteObjectPermanentlyEvent> listener)
-
AddExistingConnectionListener
public com.vaadin.flow.shared.Registration AddExistingConnectionListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.AddExistingConnectionEvent> listener)
-
AddDetectConnectionsListener
public com.vaadin.flow.shared.Registration AddDetectConnectionsListener(com.vaadin.flow.component.ComponentEventListener<MplsTools.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
-
-