|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.UIInput
javax.faces.component.UISelectMany
javax.faces.component.html.HtmlSelectManyCheckbox
org.apache.myfaces.component.html.ext.HtmlSelectManyCheckbox
org.apache.myfaces.custom.inputAjax.HtmlSelectManyCheckboxAjax
public class HtmlSelectManyCheckboxAjax
Current limitations - Bound value must be a Collection of Strings!
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
DEFAULT_RENDERER_TYPE
|
Fields inherited from class javax.faces.component.UISelectMany |
---|
COMPONENT_FAMILY, INVALID_MESSAGE_ID |
Fields inherited from class javax.faces.component.UIInput |
---|
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID |
Fields inherited from interface org.apache.myfaces.component.UserRoleAware |
---|
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR |
Fields inherited from interface org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable |
---|
DISPLAY_VALUE_ONLY_ATTR, DISPLAY_VALUE_ONLY_STYLE_ATTR, DISPLAY_VALUE_ONLY_STYLE_CLASS_ATTR |
Constructor Summary | |
---|---|
HtmlSelectManyCheckboxAjax()
|
Method Summary | |
---|---|
void |
decodeAjax(javax.faces.context.FacesContext context)
Decode ajax request and apply value changes |
void |
encodeAjax(javax.faces.context.FacesContext context)
|
java.lang.String |
getOnFailure()
|
java.lang.String |
getOnStart()
|
java.lang.String |
getOnSuccess()
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setOnFailure(java.lang.String onFailure)
|
void |
setOnStart(java.lang.String onStart)
|
void |
setOnSuccess(java.lang.String onSuccess)
|
void |
updateChosenValue(java.util.Collection c,
java.lang.String elname,
java.lang.String elvalue,
boolean checked)
Will find the chosen value in the chosenValues list and update set or unset accordingly. |
Methods inherited from class org.apache.myfaces.component.html.ext.HtmlSelectManyCheckbox |
---|
getClientId, getDisplayValueOnlyStyle, getDisplayValueOnlyStyleClass, getEnabledOnUserRole, getLayoutWidth, getVisibleOnUserRole, isDisplayValueOnly, isEscape, isForceId, isRendered, isSetDisplayValueOnly, setDisplayValueOnly, setDisplayValueOnlyStyle, setDisplayValueOnlyStyleClass, setEnabledOnUserRole, setEscape, setForceId, setLayoutWidth, setVisibleOnUserRole |
Methods inherited from class javax.faces.component.html.HtmlSelectManyCheckbox |
---|
getAccesskey, getBorder, getDir, getDisabledClass, getEnabledClass, getLang, getLayout, getOnblur, getOnchange, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnselect, getStyle, getStyleClass, getTabindex, getTitle, isDisabled, isReadonly, setAccesskey, setBorder, setDir, setDisabled, setDisabledClass, setEnabledClass, setLang, setLayout, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setReadonly, setStyle, setStyleClass, setTabindex, setTitle |
Methods inherited from class javax.faces.component.UISelectMany |
---|
compareValues, getConvertedValue, getFamily, getSelectedValues, getValueBinding, setSelectedValues, setValueBinding, validate, validateValue |
Methods inherited from class javax.faces.component.UIInput |
---|
addValidator, addValueChangeListener, broadcast, decode, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel |
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, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, 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 |
---|
public static final java.lang.String COMPONENT_TYPE
public static final java.lang.String DEFAULT_RENDERER_TYPE
Constructor Detail |
---|
public HtmlSelectManyCheckboxAjax()
Method Detail |
---|
public void decodeAjax(javax.faces.context.FacesContext context)
decodeAjax
in interface AjaxComponent
context
- public void updateChosenValue(java.util.Collection c, java.lang.String elname, java.lang.String elvalue, boolean checked)
c
- elname
- elvalue
- checked
- public void encodeAjax(javax.faces.context.FacesContext context) throws java.io.IOException
encodeAjax
in interface AjaxComponent
java.io.IOException
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class HtmlSelectManyCheckbox
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class HtmlSelectManyCheckbox
public java.lang.String getOnSuccess()
getOnSuccess
in interface AjaxCallbacks
public void setOnSuccess(java.lang.String onSuccess)
setOnSuccess
in interface AjaxCallbacks
public java.lang.String getOnFailure()
getOnFailure
in interface AjaxCallbacks
public void setOnFailure(java.lang.String onFailure)
setOnFailure
in interface AjaxCallbacks
public java.lang.String getOnStart()
getOnStart
in interface AjaxCallbacks
public void setOnStart(java.lang.String onStart)
setOnStart
in interface AjaxCallbacks
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |