com.sap.ui.commons.client
Class Link

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.sap.ui.core.client.Element
          extended by com.sap.ui.core.client.Control
              extended by com.sap.ui.commons.client.Link

public class Link
extends com.sap.ui.core.client.Control

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.

Version:
0.18.0-SNAPSHOT
Author:
GENERATOR (JavaScript control: sap.ui.commons.Link)

Constructor Summary
protected Link()
          constructs the class Link
hidden 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 enabled
Default value is: true
 Link setHelpId(String value)
          Setter for property helpId
Default 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 text
Default value is: ''
 Link setVisible(boolean value)
          Setter for property visible
Default 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

Link

protected Link()
constructs the class Link
hidden due to JavaScriptObject restriction

Method Detail

create

public static Link create()
creates a new instance of the class Link


create

public static Link create(String idOrConfig)
creates a new instance of the class Link

Parameters:
id - id of the Link or configuration JSON string

create

public static Link create(String id,
                          String config)
creates a new instance of the class Link

Parameters:
id - id of the Link
config - configuration JSON string

getText

public final String getText()
Getter for property text Link text to be displayed.

Returns:
the value of property text

setText

public final Link setText(String value)
Setter for property text
Default value is: ''

Parameters:
value - String
Returns:
this to allow method chaining

isEnabled

public final boolean isEnabled()
Getter for property enabled Disabled controls have different colors, depending on customer settings.

Returns:
the value of property enabled

setEnabled

public final Link setEnabled(boolean value)
Setter for property enabled
Default value is: true

Parameters:
value - boolean
Returns:
this to allow method chaining

isVisible

public final boolean isVisible()
Getter for property visible Invisible links are not rendered.

Returns:
the value of property visible

setVisible

public final Link setVisible(boolean value)
Setter for property visible
Default value is: true

Parameters:
value - boolean
Returns:
this to allow method chaining

getHelpId

public final String getHelpId()
Getter for property helpId Unique identifier used for help service.

Returns:
the value of property helpId

setHelpId

public final Link setHelpId(String value)
Setter for property helpId
Default value is: ''

Parameters:
value - String
Returns:
this to allow method chaining

getHref

public final String getHref()
Getter for property href Supports standard hyperlink behavior.

Returns:
the value of property href

setHref

public final Link setHref(String value)
Setter for property href

Parameters:
value - String
Returns:
this to allow method chaining

getTarget

public final String getTarget()
Getter for property target Options are _self, _top, _blank, _parent, _search. Alternatively, a frame name can be entered.

Returns:
the value of property target

setTarget

public final Link setTarget(String value)
Setter for property target

Parameters:
value - String
Returns:
this to allow method chaining

attachPressEvent

public final Link attachPressEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener Event is fired when the user clicks the control.

Parameters:
listener - reference to the EventListener
Returns:
this to allow method chaining

detachPressEvent

public final Link detachPressEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener Event is fired when the user clicks the control.

Parameters:
listener - reference to the EventListener
Returns:
this to allow method chaining

focus

public final void focus()
Puts the focus to the link.



Copyright © 2011 SAP. All Rights Reserved.