org.openfaces.component.util
Class Focus

java.lang.Object
  extended by UIComponentBase
      extended by 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.


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
Constructor Summary
Focus()
           
 
Method Summary
 void decode(FacesContext context)
           
 void encodeBegin(FacesContext context)
           
 boolean getAutoSaveFocus()
           
 java.lang.String getFamily()
           
 java.lang.String getFocusedComponentId()
           
 void processUpdates(FacesContext context)
           
 void restoreState(FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(FacesContext context)
           
 void setAutoSaveFocus(boolean autoSaveFocus)
           
 void setFocusedComponentId(java.lang.String focusedComponentId)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Focus

public Focus()
Method Detail

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.