|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.PopupView
public class PopupView
A component for displaying a two different views to data. The minimized view
is normally used to render the component, and when it is clicked the full
view is displayed on a popup. The inner class PopupView.Content
is
used to deliver contents to this component.
Nested Class Summary | |
---|---|
static interface |
PopupView.Content
Used to deliver customized content-packages to the PopupView. |
static class |
PopupView.PopupVisibilityEvent
This event is received by the PopupVisibilityListeners when the visibility of the popup changes. |
static interface |
PopupView.PopupVisibilityListener
Defines a listener that can receive a PopupVisibilityEvent when the visibility of the popup changes. |
Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents |
---|
HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListener |
Nested classes/interfaces inherited from interface com.vaadin.ui.Component |
---|
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener |
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector |
---|
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener |
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable |
---|
Sizeable.Unit |
Field Summary |
---|
Fields inherited from class com.vaadin.ui.AbstractComponent |
---|
DESIGN_ATTR_PLAIN_TEXT |
Fields inherited from interface com.vaadin.server.Sizeable |
---|
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS |
Constructor Summary | |
---|---|
PopupView()
Deprecated. |
|
PopupView(PopupView.Content content)
Creates a PopupView through the PopupView.Content interface. |
|
PopupView(java.lang.String small,
Component large)
A simple way to create a PopupPanel. |
Method Summary | |
---|---|
void |
addListener(PopupView.PopupVisibilityListener listener)
Deprecated. As of 7.0, replaced by addPopupVisibilityListener(PopupVisibilityListener) |
void |
addPopupVisibilityListener(PopupView.PopupVisibilityListener listener)
Add a listener that is called whenever the visibility of the popup is changed. |
void |
beforeClientResponse(boolean initial)
Called before the shared state and RPC invocations are sent to the client. |
protected static PopupView.Content |
createContent(java.lang.String minimizedValue,
Component popupContent)
Creates a Content from given text representation and popup content. |
int |
getComponentCount()
Gets the number of contained components. |
PopupView.Content |
getContent()
Returns the content-package for this PopupView. |
protected com.vaadin.shared.ui.popupview.PopupViewState |
getState()
Returns the shared state bean with information to be sent from the server to the client. |
protected com.vaadin.shared.ui.popupview.PopupViewState |
getState(boolean markAsDirty)
Returns the shared state for this connector. |
boolean |
isHideOnMouseOut()
Check if this popup will be hidden when the user takes the mouse cursor out of the popup area. |
boolean |
isPopupVisible()
Return whether the popup is visible. |
java.util.Iterator<Component> |
iterator()
This class only contains other components when the popup is showing. |
void |
readDesign(org.jsoup.nodes.Element design,
DesignContext designContext)
Reads the component state from the given design. |
void |
removeListener(PopupView.PopupVisibilityListener listener)
Deprecated. As of 7.0, replaced by removePopupVisibilityListener(PopupVisibilityListener) |
void |
removePopupVisibilityListener(PopupView.PopupVisibilityListener listener)
Removes a previously added listener, so that it no longer receives events when the visibility of the popup changes. |
void |
setContent(PopupView.Content newContent)
This method will replace the current content of the panel with a new one. |
void |
setHideOnMouseOut(boolean hideOnMouseOut)
Should the popup automatically hide when the user takes the mouse cursor out of the popup area? If this is false, the user must click outside the popup to close it. |
void |
setPopupVisible(boolean visible)
Set the visibility of the popup. |
void |
writeDesign(org.jsoup.nodes.Element design,
DesignContext designContext)
Writes the component state to the given design. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.ui.Component |
---|
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible |
Methods inherited from interface com.vaadin.server.ClientConnector |
---|
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
Methods inherited from interface com.vaadin.shared.Connector |
---|
getConnectorId |
Methods inherited from interface com.vaadin.server.Sizeable |
---|
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined |
Constructor Detail |
---|
@Deprecated public PopupView()
PopupView(String, Component)
instead.
public PopupView(java.lang.String small, Component large)
PopupView(Content)
.
small
- the minimal textual representation as HTMLlarge
- the full, Component-type representationpublic PopupView(PopupView.Content content)
content
- the PopupView.Content that contains the information for thisMethod Detail |
---|
protected static PopupView.Content createContent(java.lang.String minimizedValue, Component popupContent)
minimizedValue
- text representation when popup is hiddenpopupContent
- popup content
public void setContent(PopupView.Content newContent) throws java.lang.IllegalArgumentException
newContent
- PopupView.Content object containing new information for the
PopupView
java.lang.IllegalArgumentException
- if the method is passed a null value, or if one of the
content methods returns nullpublic PopupView.Content getContent()
public void setPopupVisible(boolean visible)
visible
- public void beforeClientResponse(boolean initial)
ClientConnector
This method must not alter the component hierarchy in any way. Calling
ClientConnector.markAsDirty()
from this method will have no effect.
beforeClientResponse
in interface ClientConnector
beforeClientResponse
in class AbstractComponent
initial
- true
if the client-side connector will be created
and initialized after this method has been invoked.
false
if there is already an initialized
client-side connector.public boolean isPopupVisible()
public boolean isHideOnMouseOut()
public void setHideOnMouseOut(boolean hideOnMouseOut)
hideOnMouseOut
- public java.util.Iterator<Component> iterator()
iterator
in interface HasComponents
iterator
in interface java.lang.Iterable<Component>
ComponentContainer.getComponentIterator()
public int getComponentCount()
#getComponentIterator()
.
public void readDesign(org.jsoup.nodes.Element design, DesignContext designContext)
Component
The component is responsible not only for updating its own state but also for ensuring that its children update their state based on the design.
It is assumed that the component is in its default state when this method is called. Reading should only take into consideration attributes specified in the design and not reset any unspecified attributes to their defaults.
This method must not modify the design.
readDesign
in interface Component
readDesign
in class AbstractComponent
design
- The element to obtain the state fromdesignContext
- The DesignContext instance used for parsing the designpublic void writeDesign(org.jsoup.nodes.Element design, DesignContext designContext)
Component
The component is responsible not only for writing its own state but also for ensuring that its children write their state to the design.
This method must not modify the component state.
writeDesign
in interface Component
writeDesign
in class AbstractComponent
design
- The element to write the component state to. Any previous
attributes or child nodes are not cleared.designContext
- The DesignContext instance used for writing the designprotected com.vaadin.shared.ui.popupview.PopupViewState getState()
AbstractComponent
getState
in class AbstractComponent
protected com.vaadin.shared.ui.popupview.PopupViewState getState(boolean markAsDirty)
AbstractClientConnector
getState
in class AbstractComponent
markAsDirty
- true if the connector should automatically be marked dirty,
false otherwise
AbstractClientConnector.getState()
public void addPopupVisibilityListener(PopupView.PopupVisibilityListener listener)
listener
- the listener to addPopupView.PopupVisibilityListener
,
PopupView.PopupVisibilityEvent
,
removeListener(PopupVisibilityListener)
@Deprecated public void addListener(PopupView.PopupVisibilityListener listener)
addPopupVisibilityListener(PopupVisibilityListener)
public void removePopupVisibilityListener(PopupView.PopupVisibilityListener listener)
listener
- the listener to removePopupView.PopupVisibilityListener
,
addListener(PopupVisibilityListener)
@Deprecated public void removeListener(PopupView.PopupVisibilityListener listener)
removePopupVisibilityListener(PopupVisibilityListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |