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 TypeMethodDescriptionvoid
clean()
Close resources if any that are left opened.protected void
Override this if you want to do something before the View comes up on the screen.void
Remove all components.protected boolean
savePosition
(Object item, int x, int y) Save the position.Methods 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, setParentImage
Methods 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, 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.common.Executable
act
Methods 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, warning
Methods inherited from interface com.storedobject.common.Reentrant
isReentrant
Methods inherited from interface com.storedobject.ui.Transactional
commit, execute, getLogic, getTransactionManager, run, setLogic, transact, transact, transactControl, transactControl
Methods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Constructor Details
-
SiteView
-
-
Method Details
-
execute
Description copied from class:View
Override 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:View
Close 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:
clean
in interfaceExecutableView
- Overrides:
clean
in classView
-
removeAll
public void removeAll()Description copied from class:ImageViewer
Remove all components.- Overrides:
removeAll
in classImageViewer
-
savePosition
Description copied from class:ImageViewer
Save the position. This will be called when a component is dropped by the user (via drag and drop).- Overrides:
savePosition
in 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
true
if the save was successful. If the return value isfalse
, the component will be placed back at its original location.
-