EchoPoint
1.0

echopoint.positionable
Class ScrollableDelegate

java.lang.Object
  extended byechopoint.positionable.AbstractComponentDelegate
      extended byechopoint.positionable.ScrollableDelegate
All Implemented Interfaces:
Scrollable, java.io.Serializable

public class ScrollableDelegate
extends AbstractComponentDelegate
implements Scrollable, java.io.Serializable

ScrollableDelegate is a simple delegate object than can be used inside a component that implements Scrollable.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class echopoint.positionable.Scrollable
Scrollable.NestedStyleInfo
 
Field Summary
 
Fields inherited from interface echopoint.positionable.Scrollable
HEIGHT_CHANGED_PROPERTY, SCROLL_BAR_X_CHANGED_PROPERTY, SCROLL_BAR_Y_CHANGED_PROPERTY, SCROLLBAR_POLICY_CHANGED_PROPERTY, SCROLLBARS_ALWAYS, SCROLLBARS_AUTO, SCROLLBARS_CLIPHIDE, SCROLLBARS_NEVER, STYLE_HEIGHT, STYLE_SCROLL_BAR_POLICY, STYLE_WIDTH, UNDEFINED, undefinedSymbolic, WIDTH_CHANGED_PROPERTY
 
Constructor Summary
ScrollableDelegate(nextapp.echo.Component delegatee)
           
 
Method Summary
 void applyStyle(nextapp.echo.Style style)
           
 int getHeight()
          Returns the height of the component
 int getScrollBarPolicy()
          Returns the ScrollBarPolicy in place This can be one of : SCOLLBARS_NONE SCOLLBARS_ALWAYS SCOLLBARS_AUTO
 int getScrollBarX()
          Returns the position of the horizontal scroll bar, in pixels offset from the left of the component.
 int getScrollBarY()
          Returns the position of the vertical scroll bar, in pixels offset from the top the component.
 int getWidth()
          Returns the width of the component
 void setHeight(int newValue)
          Sets the height of the component
 void setScrollBarPolicy(int newScrollBarPolicy)
          Sets the scroll bar policy of the component This can be one of : SCOLLBARS_NONE SCOLLBARS_ALWAYS SCOLLBARS_AUTO
 void setScrollBarX(int newValue)
          Sets the position of the horizontal scroll bar, in pixels offset from the left of the component.
 void setScrollBarY(int newValue)
          Sets the position of the vertical scroll bar, in pixels offset from the top of the component.
 void setWidth(int newValue)
          Set the width of the component
 
Methods inherited from class echopoint.positionable.AbstractComponentDelegate
firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getDelegatee
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScrollableDelegate

public ScrollableDelegate(nextapp.echo.Component delegatee)
Method Detail

applyStyle

public void applyStyle(nextapp.echo.Style style)
Specified by:
applyStyle in interface Scrollable
See Also:
Scrollable.applyStyle(nextapp.echo.Style)

getHeight

public int getHeight()
Description copied from interface: Scrollable
Returns the height of the component

Specified by:
getHeight in interface Scrollable
See Also:
Scrollable.getHeight()

getScrollBarPolicy

public int getScrollBarPolicy()
Description copied from interface: Scrollable
Returns the ScrollBarPolicy in place This can be one of :

Specified by:
getScrollBarPolicy in interface Scrollable
See Also:
Scrollable.getScrollBarPolicy()

getScrollBarX

public int getScrollBarX()
Description copied from interface: Scrollable
Returns the position of the horizontal scroll bar, in pixels offset from the left of the component.

Specified by:
getScrollBarX in interface Scrollable
Returns:
The position of the horizontal scroll bar.
See Also:
Scrollable.getScrollBarX()

getScrollBarY

public int getScrollBarY()
Description copied from interface: Scrollable
Returns the position of the vertical scroll bar, in pixels offset from the top the component.

Specified by:
getScrollBarY in interface Scrollable
Returns:
The position of the vertical scroll bar.
See Also:
Scrollable.getScrollBarY()

getWidth

public int getWidth()
Description copied from interface: Scrollable
Returns the width of the component

Specified by:
getWidth in interface Scrollable
See Also:
Scrollable.getWidth()

setHeight

public void setHeight(int newValue)
Description copied from interface: Scrollable
Sets the height of the component

Specified by:
setHeight in interface Scrollable
See Also:
Scrollable.setHeight(int)

setScrollBarPolicy

public void setScrollBarPolicy(int newScrollBarPolicy)
Description copied from interface: Scrollable
Sets the scroll bar policy of the component This can be one of :

Specified by:
setScrollBarPolicy in interface Scrollable
See Also:
Scrollable.setScrollBarPolicy(int)

setScrollBarX

public void setScrollBarX(int newValue)
Description copied from interface: Scrollable
Sets the position of the horizontal scroll bar, in pixels offset from the left of the component.

Specified by:
setScrollBarX in interface Scrollable
Parameters:
newValue - The new position of the horizontal scroll bar, in pixels.
See Also:
Scrollable.setScrollBarX(int)

setScrollBarY

public void setScrollBarY(int newValue)
Description copied from interface: Scrollable
Sets the position of the vertical scroll bar, in pixels offset from the top of the component.

Specified by:
setScrollBarY in interface Scrollable
Parameters:
newValue - The new position of the vertical scroll bar, in pixels.
See Also:
Scrollable.setScrollBarY(int)

setWidth

public void setWidth(int newValue)
Description copied from interface: Scrollable
Set the width of the component

Specified by:
setWidth in interface Scrollable
See Also:
Scrollable.setWidth(int)

EchoPoint
1.0