echopoint.ui
Class LabelUI

java.lang.Object
  extended by nextapp.echoservlet.AbstractComponentPeer
      extended by echopoint.ui.util.EchoPointComponentPeer
          extended by echopoint.ui.LabelUI
All Implemented Interfaces:
PeerDelegate, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, ChangeListener, ImageUpdateListener, Alignment, ComponentPeer

public class LabelUI
extends EchoPointComponentPeer
implements Alignment

A peer for Label components.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface nextapp.echoservlet.ComponentPeer
IGNORE_PROPERTY_CHANGE
 
Constructor Summary
LabelUI()
           
 
Method Summary
protected  Element createIconElement(RenderingContext rc)
          Creates the image Element that will reference the label's image.
 int getHorizontalAlignment()
          Returns the horizontal alignment of a represented component.
 int getVerticalAlignment()
          Returns the vertical alignment of a represented component.
static void register()
          Register the peer bindings.
 void registered()
          This adds itself as a property change listener to the component, which calls redraw(), and then creates a ToolTipPopUpSupportHelper.
 void render(RenderingContext rc, Element parent)
          A method that should be overridden for the ComponentPeer to produce HTML output.
 
Methods inherited from class echopoint.ui.util.EchoPointComponentPeer
addOnce, addOnce, addScriptInclude, copyChildrenExcept, copyChildrenExcept, forComponent, forComponent, forComponent, forComponent, getChildren, getImage, getImageManager, getImageUri, getPeer, getPeer, getToolTipHelper, getUri, hasBeenAdded, imageUpdate, propertyChange, removeAllImages, removeAllManagedImages, removeNewLinesAndJSQuote, removeNewLinesAndJSQuote, setImage, stateChanged, trackImage, unregistered
 
Methods inherited from class nextapp.echoservlet.AbstractComponentPeer
addAncillaryService, generateId, getCalculatedBackground, getCalculatedFont, getCalculatedForeground, getChildCount, getComponent, getFocusedElementId, getId, getInstancePeer, getParentComponentPeer, redraw, registerAncillaryServices, removeAncillaryService, setComponent, setId, setInstancePeer, unregisterAncillaryServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface echopoint.ui.util.PeerDelegate
getId
 

Constructor Detail

LabelUI

public LabelUI()
Method Detail

createIconElement

protected Element createIconElement(RenderingContext rc)
Creates the image Element that will reference the label's image.

Parameters:
rc - The RenderingContext on which this label is being rendered.
Returns:
An <img> element reference the label's image.

getHorizontalAlignment

public int getHorizontalAlignment()
Description copied from interface: Alignment
Returns the horizontal alignment of a represented component.

Specified by:
getHorizontalAlignment in interface Alignment
Returns:
The horizontal alignment of a represented component, one of the following values:
  • EchoConstants.LEFT
  • EchoConstants.CENTER
  • EchoConstants.RIGHT
  • 0 (use default)
See Also:
Alignment.getHorizontalAlignment()

getVerticalAlignment

public int getVerticalAlignment()
Description copied from interface: Alignment
Returns the vertical alignment of a represented component.

Specified by:
getVerticalAlignment in interface Alignment
Returns:
The vertical alignment of a represented component, one of the following values:
  • EchoConstants.TOP
  • EchoConstants.CENTER
  • EchoConstants.BOTTOM
  • 0 (use default)
See Also:
Alignment.getVerticalAlignment()

registered

public void registered()
Description copied from class: EchoPointComponentPeer
This adds itself as a property change listener to the component, which calls redraw(), and then creates a ToolTipPopUpSupportHelper.

Specified by:
registered in interface ComponentPeer
Overrides:
registered in class EchoPointComponentPeer
See Also:
EchoPointComponentPeer.registered()

register

public static void register()
Register the peer bindings.


render

public void render(RenderingContext rc,
                   Element parent)
Description copied from interface: ComponentPeer
A method that should be overridden for the ComponentPeer to produce HTML output.

Specified by:
render in interface ComponentPeer
Overrides:
render in class AbstractComponentPeer
Parameters:
rc - A rendering context provided by the Connection.
parent - The element that will contain content rendered by this ComponentPeer.
See Also:
ComponentPeer.render(RenderingContext, Element)