org.apache.myfaces.custom.loadbundle
Class LoadBundle

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

public class LoadBundle
extends AbstractLoadBundle


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
Constructor Summary
LoadBundle()
           
 
Method Summary
 java.lang.String getBasename()
          Path to the bundle-file in the class-path, e.g.: org.apache.myfaces.i18n.myprops
 java.lang.String getFamily()
           
 java.lang.String getVar()
          Variable this bundle will be stored under, e.g.
 void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setBasename(java.lang.String basename)
           
 void setVar(java.lang.String var)
           
 
Methods inherited from class org.apache.myfaces.custom.loadbundle.AbstractLoadBundle
broadcast, encodeBegin, encodeEnd, loadBundle, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, 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.StateHolder
isTransient, setTransient
 

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
Constructor Detail

LoadBundle

public LoadBundle()
Method Detail

getFamily

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

getBasename

public java.lang.String getBasename()
Description copied from class: AbstractLoadBundle
Path to the bundle-file in the class-path, e.g.: org.apache.myfaces.i18n.myprops

Specified by:
getBasename in class AbstractLoadBundle

setBasename

public void setBasename(java.lang.String basename)
Specified by:
setBasename in class AbstractLoadBundle

getVar

public java.lang.String getVar()
Description copied from class: AbstractLoadBundle
Variable this bundle will be stored under, e.g. mybundle. Use #{mybundle.propertykey} or #{mybundle['propertykey']} to access the keys of the bundle.

Specified by:
getVar in class AbstractLoadBundle

setVar

public void setVar(java.lang.String var)
Specified by:
setVar in class AbstractLoadBundle

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

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


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