|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.commons.client.Link
public class Link
The class Link is the GWT wrapper
for the Phoenix control: sap.ui.commons.Link.
Using this control, you provide an absolute or relative reference to an internal or external URL. The classical target parameters are supported. Another usage scenario is triggering an action, for example to open a popup window. In both cases, the link is a hypertext link.
| Constructor Summary | |
|---|---|
protected |
Link()
constructs the class Linkhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
Link |
attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user clicks the control. |
static Link |
create()
creates a new instance of the class Link |
static Link |
create(String idOrConfig)
creates a new instance of the class Link |
static Link |
create(String id,
String config)
creates a new instance of the class Link |
Link |
detachPressEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user clicks the control. |
void |
focus()
Puts the focus to the link. |
String |
getHelpId()
Getter for property helpId
Unique identifier used for help service. |
String |
getHref()
Getter for property href
Supports standard hyperlink behavior. |
String |
getTarget()
Getter for property target
Options are _self, _top, _blank, _parent, _search. |
String |
getText()
Getter for property text
Link text to be displayed. |
boolean |
isEnabled()
Getter for property enabled
Disabled controls have different colors, depending on customer settings. |
boolean |
isVisible()
Getter for property visible
Invisible links are not rendered. |
Link |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
Link |
setHelpId(String value)
Setter for property helpIdDefault value is: '' |
Link |
setHref(String value)
Setter for property href |
Link |
setTarget(String value)
Setter for property target |
Link |
setText(String value)
Setter for property textDefault value is: '' |
Link |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Link()
LinkJavaScriptObject restriction
| Method Detail |
|---|
public static Link create()
Link
public static Link create(String idOrConfig)
Link
id - id of the Link or configuration JSON string
public static Link create(String id,
String config)
Link
id - id of the Linkconfig - configuration JSON stringpublic final String getText()
text
Link text to be displayed.
public final Link setText(String value)
text''
value - String
this to allow method chainingpublic final boolean isEnabled()
enabled
Disabled controls have different colors, depending on customer settings.
public final Link setEnabled(boolean value)
enabledtrue
value - boolean
this to allow method chainingpublic final boolean isVisible()
visible
Invisible links are not rendered.
public final Link setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final String getHelpId()
helpId
Unique identifier used for help service.
public final Link setHelpId(String value)
helpId''
value - String
this to allow method chainingpublic final String getHref()
href
Supports standard hyperlink behavior.
public final Link setHref(String value)
href
value - String
this to allow method chainingpublic final String getTarget()
target
Options are _self, _top, _blank, _parent, _search. Alternatively, a frame name can be entered.
public final Link setTarget(String value)
target
value - String
this to allow method chainingpublic final Link attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user clicks the control.
listener - reference to the EventListener
this to allow method chainingpublic final Link detachPressEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user clicks the control.
listener - reference to the EventListener
this to allow method chainingpublic final void focus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||