public class WPopup extends WSingleComponentContainer
form, INTERNAL_STATE_RECORD_PROPERTY| Constructor and Description |
|---|
WPopup() |
| Modifier and Type | Method and Description |
|---|---|
protected com.vaadin.ui.AbstractComponent |
createWidget()
Called once, to create the actual Vaadin component.
|
com.vaadin.ui.Window |
getWidget()
Gets the Vaadin representation of this component.
|
boolean |
isClosable()
Returns the closable status of the window.
|
boolean |
isDraggable()
Indicates whether a window can be dragged or not.
|
boolean |
isModal() |
boolean |
isResizable() |
boolean |
isVisible()
Indicates whether the popup is visible or not.
|
protected void |
onClose() |
protected void |
restoreInternalState(Map<String,Object> state)
Restores the UI state of this component which was previously written
by
FormComponent.writeInternalState(Map). |
void |
setClosable(boolean closable)
Sets the closable status for the window.
|
void |
setDraggable(boolean draggable)
Enables or disables that a window can be dragged (moved) by the user.
|
void |
setModal(boolean modal)
Sets window modality.
|
void |
setResizable(boolean resizable)
Sets window resizable.
|
void |
setVisible(boolean visible)
Sets the visible flag to the popup
|
protected void |
writeInternalState(Map<String,Object> state)
Writes the UI state of this component to the provided map.
|
getContent, setContentaddDataErrorMessage, addStyleName, attach, call, clearDataErrorMessages, createEvent, equals, getCaption, getComponentAlignment, getContextClickHandler, getCustomErrorMessage, getDataErrorMessages, getDescription, getExpandRatio, getHasChildrenAdapter, getHeight, getIcon, getModelingId, getNamespace, getStyleName, getTabIndex, getWidth, hashCode, isEnabled, isReadOnly, localize, markAsDirty, preventGC, removeStyleName, restoreState, saveState, setCaption, setComponentAlignment, setContextClickHandler, setContextMenuItems, setCustomErrorMessage, setDescription, setEnabled, setExpandRatio, setHeight, setIcon, setReadOnly, setStyleName, setTabIndex, setWidth, toStringprotected com.vaadin.ui.AbstractComponent createWidget()
FormComponentcreateWidget in class FormComponentpublic com.vaadin.ui.Window getWidget()
FormComponentgetWidget in class WSingleComponentContainerpublic void setVisible(boolean visible)
setVisible in class FormComponentvisible - public boolean isVisible()
isVisible in class FormComponenttrue if the popup is visibleprotected void onClose()
protected void writeInternalState(Map<String,Object> state)
FormComponentMany UI attributes such as size, caption, etc. are not held in the records but are stored exclusively in the Vaadin components. In the records the getter/setter methods of such attributes directly delegate to the underlying component. For the purposes of the Save Document/Todo use case the state of such attributes has to be preserved.
Subclasses should override this method. The overriding method should call
super.writeInternalState(state) to store the state form the super
class as well. The attributes should be written to the provided state
parameter. The type of the values written to the state can only by
Java representation of LSPS types. That is java.util.Date,
java.lang.String, Decimal, RecordHolder,
ListHolder, ... The name of the attributes stored in the map
should be unique and should not collide with the names used by any
of the superclass. It is the responsibility of the overridden method to ensure
that.
Subclasses overriding this method should also override
FormComponent.restoreInternalState(Map) and restore the state written
by this method.
writeInternalState in class WSingleComponentContainerstate - a map to which this method should write the component's UI state.FormComponent.restoreInternalState(Map),
FormComponent.saveState()protected void restoreInternalState(Map<String,Object> state)
FormComponentFormComponent.writeInternalState(Map).
Subclasses should override and call super.restoreInternalState(state);restoreInternalState in class WSingleComponentContainerstate - a map of attributes and their valuesFormComponent.writeInternalState(Map)public void setModal(boolean modal)
Keyboard navigation is restricted by blocking the tab key at the top and bottom of the window by activating the tab stop function internally.
modal - true if modality is to be turned onpublic boolean isModal()
public void setResizable(boolean resizable)
resizable - true if resizability is to be turned onpublic boolean isResizable()
public boolean isDraggable()
public void setDraggable(boolean draggable)
draggable - true if the window can be dragged by the userpublic boolean isClosable()
public void setClosable(boolean closable)
closable - determines if the window can be closed by the user.Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.