org.apache.myfaces.custom.statechangednotifier
Class StateChangedNotifier

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 javax.faces.component.html.HtmlInputHidden
                      extended by org.apache.myfaces.custom.statechangednotifier.AbstractStateChangedNotifier
                          extended by org.apache.myfaces.custom.statechangednotifier.StateChangedNotifier
All Implemented Interfaces:
javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder

public class StateChangedNotifier
extends AbstractStateChangedNotifier


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String DEFAULT_RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIInput
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
 
Constructor Summary
StateChangedNotifier()
           
 
Method Summary
 java.lang.String getConfirmationMessage()
          Confirmation message to show if something in the form has changed
 java.lang.Boolean getDisabled()
          If disabled, the confirmation window will not be shown
 java.lang.String getExcludedIds()
          Comma-separated list of cliend id of the commands which will be excluded from the confirmation message
 java.lang.String getFamily()
           
 void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setConfirmationMessage(java.lang.String confirmationMessage)
           
 void setDisabled(java.lang.Boolean disabled)
           
 void setExcludedIds(java.lang.String excludedIds)
           
 
Methods inherited from class org.apache.myfaces.custom.statechangednotifier.AbstractStateChangedNotifier
enableStateChanged, reset
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, broadcast, compareValues, decode, getConvertedValue, getSubmittedValue, getValidator, getValidators, getValue, 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, 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, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, 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
 
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, setConverter
 

Field Detail

COMPONENT_FAMILY

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

COMPONENT_TYPE

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

DEFAULT_RENDERER_TYPE

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

StateChangedNotifier

public StateChangedNotifier()
Method Detail

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class javax.faces.component.UIInput

getConfirmationMessage

public java.lang.String getConfirmationMessage()
Description copied from class: AbstractStateChangedNotifier
Confirmation message to show if something in the form has changed

Specified by:
getConfirmationMessage in class AbstractStateChangedNotifier

setConfirmationMessage

public void setConfirmationMessage(java.lang.String confirmationMessage)

getDisabled

public java.lang.Boolean getDisabled()
Description copied from class: AbstractStateChangedNotifier
If disabled, the confirmation window will not be shown

Specified by:
getDisabled in class AbstractStateChangedNotifier

setDisabled

public void setDisabled(java.lang.Boolean disabled)

getExcludedIds

public java.lang.String getExcludedIds()
Description copied from class: AbstractStateChangedNotifier
Comma-separated list of cliend id of the commands which will be excluded from the confirmation message

Specified by:
getExcludedIds in class AbstractStateChangedNotifier

setExcludedIds

public void setExcludedIds(java.lang.String excludedIds)

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIInput

restoreState

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


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.