com.sap.ui.commons.client
Class LinkWidget

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.sap.ui.core.client.ControlWidget
              extended by com.sap.ui.commons.client.LinkWidget
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget

public class LinkWidget
extends com.sap.ui.core.client.ControlWidget

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 AG)

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 enabled
Default value is: true
 void setHelpId(String value)
          Setter for property helpId
Default 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 text
Default value is: ''
 void setVisible(boolean value)
          Setter for property visible
Default 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

LinkWidget

public LinkWidget()
constructs the class LinkWidget


LinkWidget

public LinkWidget(String id)
constructs the class LinkWidget

Parameters:
id - id of the LinkWidget

LinkWidget

protected LinkWidget(Link control)
constructs the class LinkWidget

Parameters:
control - reference to an existing Link
Method Detail

getControl

public Link getControl()
returns the reference to the Phoenix Control

Overrides:
getControl in class com.sap.ui.core.client.ControlWidget
Returns:
reference to the Phoenix Control

getText

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

Returns:
the value of property text

setText

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

Parameters:
value - String

isEnabled

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

Returns:
the value of property enabled

setEnabled

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

Parameters:
value - boolean

isVisible

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

Overrides:
isVisible in class com.google.gwt.user.client.ui.UIObject
Returns:
the value of property visible

setVisible

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

Overrides:
setVisible in class com.google.gwt.user.client.ui.UIObject
Parameters:
value - boolean

getHelpId

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

Returns:
the value of property helpId

setHelpId

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

Parameters:
value - String

getHref

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

Returns:
the value of property href

setHref

public void setHref(String value)
Setter for property href

Parameters:
value - String

getTarget

public 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 void setTarget(String value)
Setter for property target

Parameters:
value - String

attachPressEvent

public void 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

detachPressEvent

public void 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

focus

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



Copyright © 2011 SAP. All Rights Reserved.