org.openfaces.component.util
Class Focus
java.lang.Object
UIComponentBase
org.openfaces.component.util.Focus
public class Focus
- extends UIComponentBase
The Focus component is a non-visual component that controls the focus on the page.
With Focus, you can specify the component that is focused when the page is loaded.
You can also set that the focus is saved between page submissions.
Constructor Summary |
Focus()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Focus
public Focus()
getFamily
public java.lang.String getFamily()
getFocusedComponentId
public java.lang.String getFocusedComponentId()
setFocusedComponentId
public void setFocusedComponentId(java.lang.String focusedComponentId)
getAutoSaveFocus
public boolean getAutoSaveFocus()
setAutoSaveFocus
public void setAutoSaveFocus(boolean autoSaveFocus)
encodeBegin
public void encodeBegin(FacesContext context)
throws java.io.IOException
- Throws:
java.io.IOException
decode
public void decode(FacesContext context)
saveState
public java.lang.Object saveState(FacesContext context)
restoreState
public void restoreState(FacesContext context,
java.lang.Object state)
processUpdates
public void processUpdates(FacesContext context)
Copyright © 1998-2009 TeamDev Ltd. All Rights Reserved.