Package com.storedobject.ui.iot
Class SiteView
java.lang.Object
com.storedobject.vaadin.View
com.storedobject.ui.ImageViewer
com.storedobject.ui.iot.SiteView
- All Implemented Interfaces:
Executable,Reentrant,HasLogic,Transactional,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
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclean()Close resources if any that are left opened.protected voidOverride this if you want to do something before the View comes up on the screen.voidRemove all components.protected booleansavePosition(Object item, int x, int y) Save the position.voidMethods inherited from class com.storedobject.ui.ImageViewer
add, add, add, add, add, allowMovement, decorateComponent, getParentOffsetX, getParentOffsetY, initUI, isMovementAllowed, remove, remove, removeParentImage, reposition, reposition, setBackgroundSource, setBackgroundSource, setBackgroundSource, setParentImageMethods inherited from class com.storedobject.vaadin.View
abort, aborted, addClosedListener, addOpenedListener, close, createCloseableView, createWindow, execute, execute, executing, focus, focus, focusAny, getApplication, getCaption, getComponent, getContent, getCreatedBy, getEmbeddedView, getMenuItem, getMenuItem, getView, invoke, isFullScreen, isScrollable, isWindowMode, select, setCaption, setComponent, setCreatedBy, setDefaultPadding, setEmbeddedView, setFirstFocus, setFullScreen, setScrollable, setWindowMode, skipFirstFocusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.vaadin.ClickHandler
clicked, doubleClicked, onComponentEvent, rightClickedMethods inherited from interface com.storedobject.common.Executable
actMethods inherited from interface com.storedobject.vaadin.ExecutableView
abort, clearAlerts, clicked, close, createMenuItem, error, execute, getApplication, getCaption, getMenuIconName, getMenuItem, getView, getView, invoke, isCloseable, isFullScreen, isHomeView, log, log, message, returnedFrom, run, setCaption, setClickable, speak, trackValueChange, tray, valueChanged, warningMethods inherited from interface com.storedobject.common.Reentrant
isReentrantMethods inherited from interface com.storedobject.ui.Transactional
commit, execute, getLogic, getTransactionManager, run, setLogic, transact, transact, transactControl, transactControl, transactControl, transactControlMethods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Constructor Details
-
SiteView
-
-
Method Details
-
execute
Description copied from class:ViewOverride this if you want to do something before the View comes up on the screen. Call super.execute(parent, doNotLock) to make the View appear on the screen. Parent view is automatically selected when this view closes. -
clean
public void clean()Description copied from class:ViewClose resources if any that are left opened. This method is invoked when the view is removed from theApplication. The default implementation does nothing.- Specified by:
cleanin interfaceExecutableView- Overrides:
cleanin classView
-
setBlock
-
removeAll
public void removeAll()Description copied from class:ImageViewerRemove all components.- Overrides:
removeAllin classImageViewer
-
savePosition
Description copied from class:ImageViewerSave the position. This will be called when a component is dropped by the user (via drag and drop).- Overrides:
savePositionin classImageViewer- Parameters:
item- Associate item (This could be saved).x- X-coordinate at which it was dropped.y- Y-coordinate at which it was dropped.- Returns:
- Should return
trueif the save was successful. If the return value isfalse, the component will be placed back at its original location.
-