|
||||||||||
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.Link
public class Link
Link is used to create external or internal URL links.
Nested Class Summary |
---|
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 | |
---|---|
static com.vaadin.shared.ui.BorderStyle |
TARGET_BORDER_DEFAULT
Deprecated. As of 7.0, use BorderStyle.DEFAULT instead |
static com.vaadin.shared.ui.BorderStyle |
TARGET_BORDER_MINIMAL
Deprecated. As of 7.0, use BorderStyle.MINIMAL instead |
static com.vaadin.shared.ui.BorderStyle |
TARGET_BORDER_NONE
Deprecated. As of 7.0, use BorderStyle.NONE instead |
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 | |
---|---|
Link()
Creates a new link. |
|
Link(java.lang.String caption,
Resource resource)
Creates a new instance of Link. |
|
Link(java.lang.String caption,
Resource resource,
java.lang.String targetName,
int width,
int height,
com.vaadin.shared.ui.BorderStyle border)
Creates a new instance of Link that opens a new window. |
Method Summary | |
---|---|
Resource |
getResource()
Returns the resource this link opens. |
protected com.vaadin.shared.ui.link.LinkState |
getState()
Returns the shared state bean with information to be sent from the server to the client. |
protected com.vaadin.shared.ui.link.LinkState |
getState(boolean markAsDirty)
Returns the shared state for this connector. |
com.vaadin.shared.ui.BorderStyle |
getTargetBorder()
Returns the target window border. |
int |
getTargetHeight()
Returns the target window height or -1 if not set. |
java.lang.String |
getTargetName()
Returns the target window name. |
int |
getTargetWidth()
Returns the target window width or -1 if not set. |
void |
setResource(Resource resource)
Sets the resource this link opens. |
void |
setTargetBorder(com.vaadin.shared.ui.BorderStyle targetBorder)
Sets the border of the target window. |
void |
setTargetHeight(int targetHeight)
Sets the target window height. |
void |
setTargetName(java.lang.String targetName)
Sets the target window name. |
void |
setTargetWidth(int targetWidth)
Sets the target window width. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.ui.Component |
---|
getUI |
Methods inherited from interface com.vaadin.server.ClientConnector |
---|
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
Methods inherited from interface com.vaadin.shared.Connector |
---|
getConnectorId |
Field Detail |
---|
@Deprecated public static final com.vaadin.shared.ui.BorderStyle TARGET_BORDER_NONE
BorderStyle.NONE
instead@Deprecated public static final com.vaadin.shared.ui.BorderStyle TARGET_BORDER_MINIMAL
BorderStyle.MINIMAL
instead@Deprecated public static final com.vaadin.shared.ui.BorderStyle TARGET_BORDER_DEFAULT
BorderStyle.DEFAULT
insteadConstructor Detail |
---|
public Link()
public Link(java.lang.String caption, Resource resource)
caption
- resource
- public Link(java.lang.String caption, Resource resource, java.lang.String targetName, int width, int height, com.vaadin.shared.ui.BorderStyle border)
caption
- the Link text.targetName
- the name of the target window where the link opens to. Empty
name of null implies that the target is opened to the window
containing the link.width
- the Width of the target window.height
- the Height of the target window.border
- the Border style of the target window.Method Detail |
---|
protected com.vaadin.shared.ui.link.LinkState getState()
AbstractComponent
getState
in class AbstractComponent
protected com.vaadin.shared.ui.link.LinkState getState(boolean markAsDirty)
AbstractClientConnector
getState
in class AbstractComponent
markAsDirty
- true if the connector should automatically be marked dirty,
false otherwise
AbstractClientConnector.getState()
public com.vaadin.shared.ui.BorderStyle getTargetBorder()
public int getTargetHeight()
public java.lang.String getTargetName()
public int getTargetWidth()
public void setTargetBorder(com.vaadin.shared.ui.BorderStyle targetBorder)
targetBorder
- the targetBorder to set.public void setTargetHeight(int targetHeight)
targetHeight
- the targetHeight to set.public void setTargetName(java.lang.String targetName)
targetName
- the targetName to set.public void setTargetWidth(int targetWidth)
targetWidth
- the targetWidth to set.public Resource getResource()
public void setResource(Resource resource)
resource
- the resource to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |