org.openfaces.component.util
Class ScrollPosition

java.lang.Object
  extended by UIComponentBase
      extended by org.openfaces.component.util.ScrollPosition

public class ScrollPosition
extends UIComponentBase

The ScrollPosition component is a non-visual component that controls the scroll position of the page or an associated component. By using it, you can specify the position of the scroll when the page is loaded and save the scroll position between page submissions.


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
 
Constructor Summary
ScrollPosition()
           
 
Method Summary
 void decode(FacesContext context)
           
 void encodeBegin(FacesContext context)
           
 boolean getAutoSaveScrollPos()
           
 java.lang.String getFamily()
           
 java.lang.String getFor()
           
 java.awt.Point getValue()
           
 void processUpdates(FacesContext context)
           
 void restoreState(FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(FacesContext context)
           
 void setAutoSaveScrollPos(boolean autoSaveScrollPos)
           
 void setFor(java.lang.String aFor)
           
 void setValue(java.awt.Point value)
           
 
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

ScrollPosition

public ScrollPosition()
Method Detail

getFamily

public java.lang.String getFamily()

getValue

public java.awt.Point getValue()

setValue

public void setValue(java.awt.Point value)

getAutoSaveScrollPos

public boolean getAutoSaveScrollPos()

setAutoSaveScrollPos

public void setAutoSaveScrollPos(boolean autoSaveScrollPos)

getFor

public java.lang.String getFor()

setFor

public void setFor(java.lang.String aFor)

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.