|
|||||||||
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.UISelectOne
org.alfresco.web.ui.repo.component.UILanguageSelector
public class UILanguageSelector
Component that holds a list of languages avalaiable to make a node multilingual.
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
Fields inherited from class javax.faces.component.UISelectOne |
---|
INVALID_MESSAGE_ID |
Fields inherited from class javax.faces.component.UIInput |
---|
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID |
Constructor Summary | |
---|---|
UILanguageSelector()
|
Method Summary | |
---|---|
protected javax.faces.model.SelectItem[] |
createList()
Creates the list of SelectItem components to represent the list of Langages the user can select from |
void |
encodeBegin(javax.faces.context.FacesContext context)
|
boolean |
isOnlyAvailableLanguages()
|
boolean |
isReturnCurrentLanguage()
|
void |
setOnlyAvailableLanguages(boolean onlyAvailableLanguages)
|
void |
setReturnCurrentLanguage(boolean returnCurrentLanguage)
Without effect if onlyAvailableLanguages is false |
Methods inherited from class javax.faces.component.UISelectOne |
---|
getFamily, validateValue |
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, restoreState, saveState, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel, validate |
Methods inherited from class javax.faces.component.UIOutput |
---|
getConverter, getLocalValue, setConverter |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, 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 |
---|
public static final java.lang.String COMPONENT_TYPE
public static final java.lang.String COMPONENT_FAMILY
Constructor Detail |
---|
public UILanguageSelector()
Method Detail |
---|
public void encodeBegin(javax.faces.context.FacesContext context) throws java.io.IOException
encodeBegin
in class javax.faces.component.UIComponentBase
java.io.IOException
protected javax.faces.model.SelectItem[] createList()
public boolean isOnlyAvailableLanguages()
public void setOnlyAvailableLanguages(boolean onlyAvailableLanguages)
onlyAvailableLanguages
- the list of languages is filteredpublic boolean isReturnCurrentLanguage()
public void setReturnCurrentLanguage(boolean returnCurrentLanguage)
returnCurrentLanguage
- the list must contain the language of the current node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |