com.atlassian.gwt
Class ConfluenceLabel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.atlassian.gwt.ConfluenceLabel
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasText

public class ConfluenceLabel
extends com.google.gwt.user.client.ui.Widget
implements com.google.gwt.user.client.ui.HasText


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
ConfluenceLabel()
          Creates an empty label.
ConfluenceLabel(String text)
          Creates a label with the specified text.
 
Method Summary
 String getForAttribute()
          Gets the "for" attribute of the label's DOM element.
 String getId()
          Gets the id of the label's root DOM element.
 String getText()
          Returns the label's text.
 void setForAttribute(String elementName)
          Sets the "for" attribute of the label's DOM element.
 void setId(String id)
          Sets the id of the label's DOM element
 void setText(String text)
          Sets the label's text.
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, 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, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfluenceLabel

@UiConstructor
public ConfluenceLabel()
Creates an empty label.


ConfluenceLabel

public ConfluenceLabel(String text)
Creates a label with the specified text.

Parameters:
text - the new label's text
Method Detail

setId

public void setId(String id)
Sets the id of the label's DOM element


getId

public String getId()
Gets the id of the label's root DOM element.


setForAttribute

public void setForAttribute(String elementName)
Sets the "for" attribute of the label's DOM element.


getForAttribute

public String getForAttribute()
Gets the "for" attribute of the label's DOM element.

Returns:
the for attribute.

getText

public String getText()
Returns the label's text.

Specified by:
getText in interface com.google.gwt.user.client.ui.HasText

setText

public void setText(String text)
Sets the label's text.

Specified by:
setText in interface com.google.gwt.user.client.ui.HasText


Copyright © 2003-2011 Atlassian. All Rights Reserved.