|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
com.vaadin.server.BrowserPopupOpener
public class BrowserPopupOpener
Component extension that opens a browser popup window when the extended component is clicked.
Constructor Summary | |
---|---|
BrowserPopupOpener(java.lang.Class<? extends UI> uiClass)
Creates a popup opener that will open popups containing the provided UI class |
|
BrowserPopupOpener(java.lang.Class<? extends UI> uiClass,
java.lang.String path)
Creates a popup opener that will open popups containing the provided UI using the provided path |
|
BrowserPopupOpener(Resource resource)
Creates a popup opener that will open popups to the provided resource |
|
BrowserPopupOpener(java.lang.String url)
Creates a popup opener that will open popups to the provided URL |
Method Summary | |
---|---|
void |
attach()
Notifies the connector that it is connected to an application. |
void |
detach()
Notifies the component that it is detached from the application. |
void |
extend(AbstractComponent target)
|
java.lang.String |
getFeatures()
Gets the popup features. |
java.lang.String |
getPopupName()
Gets the popup target name. |
protected com.vaadin.shared.ui.BrowserPopupExtensionState |
getState()
|
void |
setFeatures(java.lang.String features)
Sets the features for opening the popup. |
void |
setPopupName(java.lang.String popupName)
Sets the target window name that will be used when opening the popup. |
Methods inherited from class com.vaadin.server.AbstractExtension |
---|
extend, getSupportedParentType, removeFromTarget, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.server.ClientConnector |
---|
beforeClientResponse, encodeState, getExtensions, getParent, getStateType, getUI, handleConnectorRequest, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls |
Methods inherited from interface com.vaadin.shared.Connector |
---|
getConnectorId |
Methods inherited from interface com.vaadin.server.RpcTarget |
---|
getRpcManager |
Constructor Detail |
---|
public BrowserPopupOpener(java.lang.Class<? extends UI> uiClass)
uiClass
- the UI class that should be opened when the extended component
is clickedpublic BrowserPopupOpener(java.lang.Class<? extends UI> uiClass, java.lang.String path)
uiClass
- the UI class that should be opened when the extended component
is clickedpath
- the path that the UI should be bound topublic BrowserPopupOpener(java.lang.String url)
url
- the URL to open in the popuppublic BrowserPopupOpener(Resource resource)
resource
- the resource to open in the popupMethod Detail |
---|
public void extend(AbstractComponent target)
public void setPopupName(java.lang.String popupName)
null
or "blank"
, the popup will always be
opened in a new window.
popupName
- the target name for the popupspublic java.lang.String getPopupName()
setPopupName(String)
public void setFeatures(java.lang.String features)
https://developer.mozilla.org/en-US/docs/DOM/window.open#Position_and_size_features
for a description of the commonly supported features.
features
- a string with popup features, or null
to use the default features.public java.lang.String getFeatures()
setFeatures(String)
protected com.vaadin.shared.ui.BrowserPopupExtensionState getState()
getState
in class AbstractClientConnector
public void attach()
ClientConnector
The caller of this method is ClientConnector.setParent(ClientConnector)
if the
parent is itself already attached to the application. If not, the parent
will call the ClientConnector.attach()
for all its children when it is attached
to the application. This method is always called before the connector's
data is sent to the client-side for the first time.
The attachment logic is implemented in AbstractClientConnector
.
attach
in interface ClientConnector
attach
in class AbstractClientConnector
public void detach()
AbstractClientConnector
The caller of this method is ClientConnector.setParent(ClientConnector)
if the
parent is in the application. When the parent is detached from the
application it is its response to call ClientConnector.detach()
for all the
children and to detach itself from the terminal.
The AbstractClientConnector.getSession()
and AbstractClientConnector.getUI()
methods might return
null
after this method is called.
detach
in interface ClientConnector
detach
in class AbstractClientConnector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |