Packageorg.aswing
Classpublic class ScrollPaneLayout
InheritanceScrollPaneLayout Inheritance EmptyLayout

The layout manager used by JScrollPane. JScrollPaneLayout is responsible for three components: a viewportable's pane, two scrollbars.

See also

JScrollPane
Viewportable


Public Methods
 MethodDefined by
  
ScrollPaneLayout(style:int)
ScrollPaneLayout
 Inherited
addLayoutComponent(comp:Component, constraints:Object):void
Do nothing Adds the specified component to the layout, using the specified constraint object.
EmptyLayout
 Inherited
return 0
EmptyLayout
 Inherited
return 0
EmptyLayout
 Inherited
do nothing
EmptyLayout
  
ScrollPaneLayout
 Inherited
return IntDimension.createBigDimension();
EmptyLayout
  
ScrollPaneLayout
  
return target.getSize();
ScrollPaneLayout
 Inherited
Do nothing Removes the specified component from the layout.
EmptyLayout
Public Constants
 ConstantDefined by
  BOTTOM_LEFT : int = 1
[static] scrollbar are place at bottom and left
ScrollPaneLayout
  BOTTOM_RIGHT : int = 0
[static] scrollbar are place at bottom and right
ScrollPaneLayout
  TOP_LEFT : int = 3
[static] scrollbar are place at top and left
ScrollPaneLayout
  TOP_RIGHT : int = 2
[static] scrollbar are place at top and right
ScrollPaneLayout
Constructor detail
ScrollPaneLayout()constructor
public function ScrollPaneLayout(style:int)

Parameters
style:int — how to place the scrollbars, default is BOTTOM_RIGHT

See also

Method detail
layoutContainer()method
public override function layoutContainer(target:Container):voidParameters
target:Container
minimumLayoutSize()method 
public override function minimumLayoutSize(target:Container):IntDimensionParameters
target:Container

Returns
IntDimension
preferredLayoutSize()method 
public override function preferredLayoutSize(target:Container):IntDimension

return target.getSize();

Parameters
target:Container

Returns
IntDimension
Constant detail
BOTTOM_LEFTconstant
public static const BOTTOM_LEFT:int = 1

scrollbar are place at bottom and left

BOTTOM_RIGHTconstant 
public static const BOTTOM_RIGHT:int = 0

scrollbar are place at bottom and right

TOP_LEFTconstant 
public static const TOP_LEFT:int = 3

scrollbar are place at top and left

TOP_RIGHTconstant 
public static const TOP_RIGHT:int = 2

scrollbar are place at top and right