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

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UIOutput
              extended byjavax.faces.component.UIInput
                  extended bycom.sun.rave.web.ui.component.HiddenFieldBase
                      extended bycom.sun.rave.web.ui.component.HiddenField
                          extended bycom.sun.rave.web.ui.component.FieldBase
                              extended bycom.sun.rave.web.ui.component.Field
All Implemented Interfaces:
ComplexComponent, javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder
Direct Known Subclasses:
CalendarBase, PasswordFieldBase, TextAreaBase, TextFieldBase, UploadBase

public class Field
extends FieldBase
implements ComplexComponent

Author:
avk

Field Summary
static java.lang.String INPUT_ID
           
static java.lang.String LABEL_FACET
           
static java.lang.String LABEL_ID
           
static java.lang.String READONLY_FACET
           
static java.lang.String READONLY_ID
           
 
Fields inherited from class javax.faces.component.UIInput
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
 
Constructor Summary
Field()
          Creates a new instance of FieldBase
 
Method Summary
 int getColumns()
          Number of character columns used to render this field.
 javax.faces.component.UIComponent getLabelComponent(javax.faces.context.FacesContext context, java.lang.String style)
           
 java.lang.String getPrimaryElementID(javax.faces.context.FacesContext context)
          Retrieves the DOM ID for the HTML input element.
 javax.faces.component.UIComponent getReadOnlyComponent(javax.faces.context.FacesContext context)
           
protected  void log(java.lang.String s)
          Log an error - only used during development time.
 void setText(java.lang.Object text)
          Literal value to be rendered in this input field.
 
Methods inherited from class com.sun.rave.web.ui.component.FieldBase
getFamily, getLabel, getLabelLevel, getMaxLength, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyle, getStyleClass, getTabIndex, getText, getToolTip, getValueBinding, isDisabled, isReadOnly, isTrim, isVisible, restoreState, saveState, setColumns, setDisabled, setLabel, setLabelLevel, setMaxLength, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setReadOnly, setStyle, setStyleClass, setTabIndex, setToolTip, setTrim, setValueBinding, setVisible
 
Methods inherited from class com.sun.rave.web.ui.component.HiddenField
getConvertedValue, getReadOnlyValueString, getValueAsString
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, broadcast, compareValues, decode, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validate, validateValue
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, isRendered, isTransient, processRestoreState, processSaveState, 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
 
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, getValue, setConverter
 

Field Detail

READONLY_ID

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

LABEL_ID

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

INPUT_ID

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

READONLY_FACET

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

LABEL_FACET

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

Field

public Field()
Creates a new instance of FieldBase

Method Detail

getLabelComponent

public javax.faces.component.UIComponent getLabelComponent(javax.faces.context.FacesContext context,
                                                           java.lang.String style)

getReadOnlyComponent

public javax.faces.component.UIComponent getReadOnlyComponent(javax.faces.context.FacesContext context)

log

protected void log(java.lang.String s)
Log an error - only used during development time.

Overrides:
log in class HiddenField

getPrimaryElementID

public java.lang.String getPrimaryElementID(javax.faces.context.FacesContext context)
Retrieves the DOM ID for the HTML input element. To be used by Label component as a value for the "for" attribute.

Specified by:
getPrimaryElementID in interface ComplexComponent
Parameters:
context - The FacesContext for the request
Returns:
The client id, also the JavaScript element id

getColumns

public int getColumns()
Description copied from class: FieldBase

Number of character columns used to render this field.

Overrides:
getColumns in class FieldBase

setText

public void setText(java.lang.Object text)
Description copied from class: FieldBase

Literal value to be rendered in this input field. If this property is specified by a value binding expression, the corresponding value will be updated if validation succeeds.

Overrides:
setText in class FieldBase
See Also:
FieldBase.getText()