Groovy Documentation

com.wordpress.tipsforjava.swing
[Java] Enum ScrollablePanel.IncrementType

java.lang.Object
  com.wordpress.tipsforjava.swing.ScrollablePanel.IncrementType

public enum ScrollablePanel.IncrementType

A panel that implements the Scrollable interface. This class allows you to customize the scrollable features by using newly provided setter methods so you don't have to extend this class every time. Scrollable amounts can be specifed as a percentage of the viewport size or as an actual pixel value. The amount can be changed for both unit and block scrolling for both horizontal and vertical scrollbars. The Scrollable interface only provides a boolean value for determining whether or not the viewport size (width or height) should be used by the scrollpane when determining if scrollbars should be made visible. This class supports the concept of dynamically changing this value based on the size of the viewport. In this case the viewport size will only be used when it is larger than the panels size. This has the effect of ensuring the viewport is always full as components added to the panel will be size to fill the area available, based on the rules of the applicable layout manager of course.

Authors:
Rob Camick
Darryl Burke


Enum Constant Summary
PERCENT

PIXELS

 
Method Summary
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Enum Constant Detail

PERCENT

ScrollablePanel.IncrementType PERCENT


PIXELS

ScrollablePanel.IncrementType PIXELS


 

Groovy Documentation