|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.LinkWidget
public class LinkWidget
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
LinkWidget()
constructs the class LinkWidget |
protected |
LinkWidget(Link control)
constructs the class LinkWidget |
|
LinkWidget(String id)
constructs the class LinkWidget |
| Method Summary | |
|---|---|
void |
attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user clicks the control. |
void |
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. |
Link |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
void |
setHelpId(String value)
Setter for property helpIdDefault value is: '' |
void |
setHref(String value)
Setter for property href |
void |
setTarget(String value)
Setter for property target |
void |
setText(String value)
Setter for property textDefault value is: '' |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LinkWidget()
LinkWidget
public LinkWidget(String id)
LinkWidget
id - id of the LinkWidgetprotected LinkWidget(Link control)
LinkWidget
control - reference to an existing Link| Method Detail |
|---|
public Link getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getText()
text
Link text to be displayed.
public void setText(String value)
text''
value - Stringpublic boolean isEnabled()
enabled
Disabled controls have different colors, depending on customer settings.
public void setEnabled(boolean value)
enabledtrue
value - booleanpublic boolean isVisible()
visible
Invisible links are not rendered.
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic String getHelpId()
helpId
Unique identifier used for help service.
public void setHelpId(String value)
helpId''
value - Stringpublic String getHref()
href
Supports standard hyperlink behavior.
public void setHref(String value)
href
value - Stringpublic String getTarget()
target
Options are _self, _top, _blank, _parent, _search. Alternatively, a frame name can be entered.
public void setTarget(String value)
target
value - Stringpublic void attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user clicks the control.
listener - reference to the EventListenerpublic void detachPressEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user clicks the control.
listener - reference to the EventListenerpublic void focus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||