com.sun.webui.jsf.component
Class WebuiInput

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by javax.faces.component.UIInput
                  extended by com.sun.webui.jsf.component.WebuiInput
All Implemented Interfaces:
javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder
Direct Known Subclasses:
EditableList, FileChooser, HiddenField, Login, OrderableList, Rating, Scheduler, Selector, TabSet, Time

public class WebuiInput
extends javax.faces.component.UIInput

Base class for components which need to extend UIInput.


Field Summary
 
Fields inherited from class javax.faces.component.UIInput
COMPONENT_FAMILY, COMPONENT_TYPE, CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID
 
Constructor Summary
WebuiInput()
           
 
Method Summary
 void broadcast(javax.faces.event.FacesEvent event)
          
 javax.faces.el.MethodBinding getValidator()
          
 javax.el.MethodExpression getValidatorExpression()
          Get the validatorExpression.
 javax.faces.el.MethodBinding getValueChangeListener()
          
 javax.el.MethodExpression getValueChangeListenerExpression()
          Get the valueChangeListenerExpression.
 void processDecodes(javax.faces.context.FacesContext context)
          Specialized decode behavior on top of that provided by the superclass.
 void processUpdates(javax.faces.context.FacesContext context)
          Specialized model update behavior on top of that provided by the superclass.
 void processValidators(javax.faces.context.FacesContext context)
          Specialized validation behavior on top of that provided by the superclass.
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
          
 java.lang.Object saveState(javax.faces.context.FacesContext context)
          
 void setConverter(javax.faces.convert.Converter converter)
          Specifies a method to translate native property values to String and back for this component.
 void setId(java.lang.String id)
          The component identifier for this component.
 void setImmediate(boolean immediate)
          Flag indicating that event handling for this component should be handled immediately (in Apply Request Values phase) rather than waiting until Invoke Application phase.
 void setRendered(boolean rendered)
          Indicates whether the HTML code for the component should be included in the rendered HTML page.
 void setRequired(boolean required)
          Flag indicating that an input value for this field is mandatory, and failure to provide one will trigger a validation error.
 void setValidatorExpression(javax.el.MethodExpression me)
          Set the validatorExpression.
 void setValueChangeListenerExpression(javax.el.MethodExpression me)
          Set the valueChangeListenerExpression.
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, decode, getConverterMessage, getFamily, getRequiredMessage, getSubmittedValue, getValidatorMessage, getValidators, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setLocalValueSet, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validate
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue
 
Methods inherited from class javax.faces.component.UIComponentBase
encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, getValueExpression, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, restoreAttachedState, saveAttachedState, setParent, setRendererType, setTransient, setValueBinding, setValueExpression
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, getValue
 

Constructor Detail

WebuiInput

public WebuiInput()
Method Detail

setConverter

public void setConverter(javax.faces.convert.Converter converter)
Specifies a method to translate native property values to String and back for this component. The converter attribute value must be one of the following:

Specified by:
setConverter in interface javax.faces.component.ValueHolder
Overrides:
setConverter in class javax.faces.component.UIOutput

setId

public void setId(java.lang.String id)
The component identifier for this component. This value must be unique within the closest parent component that is a naming container.

Overrides:
setId in class javax.faces.component.UIComponentBase

setImmediate

public void setImmediate(boolean immediate)
Flag indicating that event handling for this component should be handled immediately (in Apply Request Values phase) rather than waiting until Invoke Application phase.

Specified by:
setImmediate in interface javax.faces.component.EditableValueHolder
Overrides:
setImmediate in class javax.faces.component.UIInput

setRendered

public void setRendered(boolean rendered)
Indicates whether the HTML code for the component should be included in the rendered HTML page. If set to false, the rendered HTML page does not include the HTML for the component. If the component is not rendered, it is also not processed on any subsequent form submission.

Overrides:
setRendered in class javax.faces.component.UIComponentBase

setRequired

public void setRequired(boolean required)
Flag indicating that an input value for this field is mandatory, and failure to provide one will trigger a validation error.

Specified by:
setRequired in interface javax.faces.component.EditableValueHolder
Overrides:
setRequired in class javax.faces.component.UIInput

getValidator

public javax.faces.el.MethodBinding getValidator()

Specified by:
getValidator in interface javax.faces.component.EditableValueHolder
Overrides:
getValidator in class javax.faces.component.UIInput

getValueChangeListener

public javax.faces.el.MethodBinding getValueChangeListener()

Specified by:
getValueChangeListener in interface javax.faces.component.EditableValueHolder
Overrides:
getValueChangeListener in class javax.faces.component.UIInput

getValueChangeListenerExpression

public javax.el.MethodExpression getValueChangeListenerExpression()

Get the valueChangeListenerExpression. The corresponding listener will be called from the broadcast method.


setValueChangeListenerExpression

public void setValueChangeListenerExpression(javax.el.MethodExpression me)

Set the valueChangeListenerExpression. The corresponding listener will be called from the broadcast method.


getValidatorExpression

public javax.el.MethodExpression getValidatorExpression()

Get the validatorExpression. The corresponding validator will be called from the validateValue method.


setValidatorExpression

public void setValidatorExpression(javax.el.MethodExpression me)

Set the validatorExpression. The corresponding validator will be called from the validateValue method.


broadcast

public void broadcast(javax.faces.event.FacesEvent event)
               throws javax.faces.event.AbortProcessingException

Overrides:
broadcast in class javax.faces.component.UIComponentBase
Throws:
javax.faces.event.AbortProcessingException

processDecodes

public void processDecodes(javax.faces.context.FacesContext context)

Specialized decode behavior on top of that provided by the superclass.

Overrides:
processDecodes in class javax.faces.component.UIInput
Parameters:
context - FacesContext for this request.

processValidators

public void processValidators(javax.faces.context.FacesContext context)

Specialized validation behavior on top of that provided by the superclass.

Overrides:
processValidators in class javax.faces.component.UIInput
Parameters:
context - FacesContext for this request.

processUpdates

public void processUpdates(javax.faces.context.FacesContext context)

Specialized model update behavior on top of that provided by the superclass.

Overrides:
processUpdates in class javax.faces.component.UIInput
Parameters:
context - FacesContext for this request.

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)

Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIInput

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)

Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIInput


Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.