Package com.storedobject.ui
Class ModuleMenu
java.lang.Object
com.storedobject.vaadin.View
com.storedobject.ui.ModuleMenu
- All Implemented Interfaces:
SingletonLogic
,ViewSelected
,ClickHandler
,CloseableView
,ExecutableView
,ValueChangeHandler
,com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<? extends com.vaadin.flow.component.Component>>
,com.vaadin.flow.component.HasValue.ValueChangeListener
,Serializable
,Runnable
,EventListener
- Direct Known Subclasses:
HomeModuleMenu
An image based menu to be created from the logic defined via an
ApplicationModule
instance.- Author:
- Syam
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.storedobject.vaadin.ClickHandler
ClickHandler.ModifiedClickEvent<C extends com.vaadin.flow.component.Component>
-
Constructor Summary
ConstructorsConstructorDescriptionModuleMenu
(Application application) Constructor.ModuleMenu
(Application application, ApplicationModule module) Constructor.ModuleMenu
(Application application, String moduleName) Constructor. -
Method Summary
Methods inherited from class com.storedobject.vaadin.View
abort, aborted, addClosedListener, addOpenedListener, clean, close, createCloseableView, createWindow, decorateComponent, execute, execute, execute, executing, focus, focus, focusAny, getApplication, getCaption, getComponent, getContent, getCreatedBy, getEmbeddedView, getMenuItem, getMenuItem, getView, initUI, invoke, isFullScreen, isScrollable, isWindowMode, select, setCaption, setComponent, setCreatedBy, setDefaultPadding, setEmbeddedView, setFirstFocus, setFullScreen, setScrollable, setWindowMode, skipFirstFocus
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.vaadin.ClickHandler
clicked, doubleClicked, onComponentEvent, rightClicked
Methods inherited from interface com.storedobject.vaadin.ExecutableView
clearAlerts, createMenuItem, error, getMenuIconName, getView, isCloseable, isHomeView, log, log, message, returnedFrom, run, setClickable, speak, trackValueChange, tray, valueChanged, warning
Methods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Constructor Details
-
ModuleMenu
Constructor.Note: The caption of the currently running logic will be taken as the name of the application module.
- Parameters:
application
- Application.
-
ModuleMenu
Constructor.- Parameters:
application
- Application.moduleName
- Name of the application module where the logic definitions are stored.
-
ModuleMenu
Constructor.- Parameters:
application
- Application.module
- Application module where the logic definitions are stored.
-
-
Method Details
-
viewSelected
public void viewSelected()- Specified by:
viewSelected
in interfaceViewSelected
-
clicked
public void clicked(com.vaadin.flow.component.Component c) Description copied from interface:ExecutableView
Default implementation, does nothing.- Specified by:
clicked
in interfaceClickHandler
- Specified by:
clicked
in interfaceExecutableView
- Parameters:
c
- Component
-
getSize
public int getSize()Get the size of the menu block in pixels to be shown on the screen.- Returns:
- Default is 250 if not defined in the
ApplicationModule.getSize()
.
-
getFontSize
Get the font-size of the menu title.- Returns:
- The CSS value representing the font-size. Default is "larger" if not defined in
the
ApplicationModule.getFontSize()
.
-