org.apache.myfaces.custom.dynaForm.component.dynaForm
Class DynaConfig

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.custom.dynaForm.component.dynaForm.DynaConfig
All Implemented Interfaces:
javax.faces.component.StateHolder

public class DynaConfig
extends javax.faces.component.UIComponentBase

the dynaForm configuration component
handles overruled field setup


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
Constructor Summary
DynaConfig()
           
 
Method Summary
 void configureMetaData(MetaData.FieldImpl field)
           
 java.lang.Boolean getDisabled()
           
 java.lang.Boolean getDisplayOnly()
           
 java.lang.Integer getDisplaySize()
           
 java.lang.String getFamily()
           
 java.lang.String getFor()
           
 java.lang.Boolean getReadOnly()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object stateArray)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setDisabled(java.lang.Boolean disabled)
          configure this field as disabled - like readOnly but grayed too
 void setDisplayOnly(java.lang.Boolean displayOnly)
          set the field to display only
 void setDisplaySize(java.lang.Integer displaySize)
          a hint for the size the ui should use when rendering the field
 void setFor(java.lang.String forProperty)
          the name of the property this configuration is for
 void setReadOnly(java.lang.Boolean readOnly)
          configure this field as readOnly - noneditable input field
 
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, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

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

COMPONENT_FAMILY

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

DynaConfig

public DynaConfig()
Method Detail

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

getDisplaySize

public java.lang.Integer getDisplaySize()
See Also:
setDisplaySize(Integer)

setDisplaySize

public void setDisplaySize(java.lang.Integer displaySize)
a hint for the size the ui should use when rendering the field


getDisplayOnly

public java.lang.Boolean getDisplayOnly()
See Also:
setDisplayOnly(Boolean)

setDisplayOnly

public void setDisplayOnly(java.lang.Boolean displayOnly)
set the field to display only


getReadOnly

public java.lang.Boolean getReadOnly()
See Also:
setReadOnly(Boolean)

setReadOnly

public void setReadOnly(java.lang.Boolean readOnly)
configure this field as readOnly - noneditable input field


getDisabled

public java.lang.Boolean getDisabled()
See Also:
setDisabled(Boolean)

setDisabled

public void setDisabled(java.lang.Boolean disabled)
configure this field as disabled - like readOnly but grayed too


getFor

public java.lang.String getFor()
See Also:
setFor(String)

setFor

public void setFor(java.lang.String forProperty)
the name of the property this configuration is for


restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object stateArray)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase

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.UIComponentBase

configureMetaData

public void configureMetaData(MetaData.FieldImpl field)


Copyright © 2009. All Rights Reserved.