com.sun.rave.web.ui.component
Class Label

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UIOutput
              extended bycom.sun.rave.web.ui.component.LabelBase
                  extended bycom.sun.rave.web.ui.component.Label
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.component.ValueHolder

public class Label
extends LabelBase

Component that represents an input field label.


Field Summary
static java.lang.String ERROR_FACET
           
static java.lang.String ERROR_ID
           
static java.lang.String REQUIRED_FACET
           
static java.lang.String REQUIRED_ID
           
 
Fields inherited from class javax.faces.component.UIOutput
COMPONENT_FAMILY, COMPONENT_TYPE
 
Constructor Summary
Label()
           
 
Method Summary
 java.lang.String getElement()
           
 javax.faces.component.UIComponent getErrorIcon(com.sun.rave.web.ui.theme.Theme theme, javax.faces.context.FacesContext context, boolean valid)
           
 javax.faces.component.EditableValueHolder getLabeledComponent()
           
 java.lang.String getLabeledComponentId(javax.faces.context.FacesContext context)
           
 int getLabelLevel()
          Style level for this label, where lower values typically specify progressively larger font sizes, and/or bolder font weights.
 javax.faces.component.UIComponent getRequiredIcon(com.sun.rave.web.ui.theme.Theme theme, javax.faces.context.FacesContext context)
           
 void setLabeledComponent(javax.faces.component.UIComponent comp)
           
 
Methods inherited from class com.sun.rave.web.ui.component.LabelBase
getFamily, getFor, getOnClick, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getStyle, getStyleClass, getText, getToolTip, getValueBinding, isHideIndicators, isRequiredIndicator, isVisible, restoreState, saveState, setFor, setHideIndicators, setLabelLevel, setOnClick, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setRequiredIndicator, setStyle, setStyleClass, setText, setToolTip, setValueBinding, setVisible
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUIRED_ID

public static final java.lang.String REQUIRED_ID
See Also:
Constant Field Values

REQUIRED_FACET

public static final java.lang.String REQUIRED_FACET
See Also:
Constant Field Values

ERROR_ID

public static final java.lang.String ERROR_ID
See Also:
Constant Field Values

ERROR_FACET

public static final java.lang.String ERROR_FACET
See Also:
Constant Field Values
Constructor Detail

Label

public Label()
Method Detail

setLabeledComponent

public void setLabeledComponent(javax.faces.component.UIComponent comp)

getLabeledComponent

public javax.faces.component.EditableValueHolder getLabeledComponent()

getLabeledComponentId

public java.lang.String getLabeledComponentId(javax.faces.context.FacesContext context)

getRequiredIcon

public javax.faces.component.UIComponent getRequiredIcon(com.sun.rave.web.ui.theme.Theme theme,
                                                         javax.faces.context.FacesContext context)

getErrorIcon

public javax.faces.component.UIComponent getErrorIcon(com.sun.rave.web.ui.theme.Theme theme,
                                                      javax.faces.context.FacesContext context,
                                                      boolean valid)

getElement

public java.lang.String getElement()

getLabelLevel

public int getLabelLevel()
Description copied from class: LabelBase

Style level for this label, where lower values typically specify progressively larger font sizes, and/or bolder font weights. Valid values are 1, 2, and 3. The default label level is 2. Any label level outside this range will result in no label level being added.

Overrides:
getLabelLevel in class LabelBase