swingwtx.swing
Class JScrollBar

java.lang.Object
  extended byswingwt.awt.Component
      extended byswingwt.awt.Container
          extended byswingwtx.swing.JComponent
              extended byswingwtx.swing.JScrollBar
All Implemented Interfaces:
Adjustable, ImageObserver, MenuContainer
Direct Known Subclasses:
Scrollbar

public class JScrollBar
extends JComponent
implements Adjustable


Nested Class Summary
 
Nested classes inherited from class swingwtx.swing.JComponent
JComponent.InternalFrameSelectionListener
 
Field Summary
protected  java.util.Vector adjustmentListeners
           
protected  int blockIncrement
           
protected  int extent
           
static int HORIZONTAL
           
protected  int increment
           
protected  int max
           
protected  int min
           
protected  int orientation
           
protected  org.eclipse.swt.widgets.Slider ppeer
           
protected  int value
           
static int VERTICAL
           
 
Fields inherited from class swingwtx.swing.JComponent
accessibleContext, actionMap, ancestorInputMap, border, clientProperties, descendantHasPeer, focusInputMap, internalFrameAdapter, internalFrameParent, opaque, propertyChangeListeners, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, windowInputMap
 
Fields inherited from class swingwt.awt.Container
composite, comps, containerListeners, layout, queuedValidateRequest
 
Fields inherited from class swingwt.awt.Component
actionCommand, actionListeners, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListeners, componentName, consumeAvailableHeight, consumeAvailableWidth, focusable, focusListeners, graphicsConfig, inputMethodListeners, isUserSetFont, keyListeners, layoutModifier, LEFT_ALIGNMENT, LOCK, mouseListeners, mouseMotionListeners, mouseWheelListeners, parent, pBackground, pCursor, pDoubleBuffered, peer, pEnabled, pFont, pForeground, pLayoutData, pLocation, pMaxSize, pMinSize, pPrefSize, pSize, pToolTipText, pVisible, RIGHT_ALIGNMENT, swingWTDefaultActionEventAdapter, swingWTEventAdapter, TOP_ALIGNMENT
 
Fields inherited from interface swingwt.awt.Adjustable
NO_ORIENTATION
 
Fields inherited from interface swingwt.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JScrollBar()
           
JScrollBar(int orientation)
           
JScrollBar(int orientation, int value, int extent, int min, int max)
           
 
Method Summary
 void addAdjustmentListener(AdjustmentListener l)
           
 int getBlockIncrement()
           
 int getBlockIncrement(int direction)
           
 int getMaximum()
           
 int getMinimum()
           
 int getOrientation()
           
 int getUnitIncrement()
           
 int getUnitIncrement(int direction)
           
 int getValue()
           
 boolean getValueIsAdjusting()
           
 int getVisibleAmount()
           
protected  void processAdjustmentEvent(AdjustmentEvent e)
           
protected  void registerBarEvents()
           
 void removeAdjustmentListener(AdjustmentListener l)
           
 void setBlockIncrement(int blockIncrement)
           
 void setMaximum(int maximum)
           
 void setMinimum(int minimum)
           
 void setOrientation(int orientation)
           
 void setSwingWTParent(Container parent)
          Once a parent component receives an "add" call for a child, this being the child, this should be called to tell us to instantiate the peer and load in any cached properties.
 void setUnitIncrement(int unitIncrement)
           
 void setValue(int value)
           
 void setValueIsAdjusting(boolean b)
           
 void setValues(int newValue, int newExtent, int newMin, int newMax)
           
 void setVisibleAmount(int extent)
           
protected  void updateBar()
           
 
Methods inherited from class swingwtx.swing.JComponent
add, add, add, add, add, addPropertyChangeListener, addPropertyChangeListener, checkInternalFrameChild, dispose, getAccessibleContext, getActionMap, getAutoscrolls, getBorder, getClientProperty, getInputMap, getInsets, getToolTipLocation, getToolTipText, getTopLevelAncestor, getVisibleRect, isDoubleBuffered, isOpaque, isOptimizedDrawingEnabled, isValidateRoot, paint, paintBackground, paintChildren, paintComponent, paintImmediately, paintImmediately, putClientProperty, remove, remove, removePropertyChangeListener, removePropertyChangeListener, repaint, revalidate, scrollRectToVisible, setActionMap, setAutoscrolls, setBorder, setDoubleBuffered, setInputMap, setMargin, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled
 
Methods inherited from class swingwt.awt.Container
addComponentToLayout, addContainerListener, debug_showContainmentTree, doAdd, doLayout, getComponent, getComponentCount, getComponentOrientation, getComponents, getComposite, getLayout, getMaximumSize, getMinimumSize, getParent, getPreferredSize, invalidate, minimumSize, preferredSize, processContainerEvent, processEvent, queuedValidate, removeAll, removeComponentFromCache, removeContainerListener, setLayout, setLayoutImpl, validate
 
Methods inherited from class swingwt.awt.Component
add, addActionListener, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, calculatePreferredSize, componentOnlyDispose, computePreferredSize, contains, contains, createImage, createListenerArrayFromVector, createVolatileImage, dispatchEvent, getActionCommand, getAlignmentX, getAlignmentY, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getListeners, getLocation, getLocationOnScreen, getName, getPeer, getPeerSize, getSize, getSize, getSWTPeer, getToolkit, getToolTipText, getTreeLock, getWidth, getX, getY, grabFocus, hasFocus, hasSetFont, hide, imageUpdate, inside, isEnabled, isFocusable, isMinimumSizeSet, isShowing, isVisible, processActionEvent, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processTraverseEvent, registerActionEvents, registerComponentEvents, registerEvents, registerExtendedModifyEvents, registerFocusEvents, registerKeyEvents, registerModifyEvents, registerMouseEvents, registerPaintEvents, registerTraversalEvents, remove, removeActionListener, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, repaint, repaint, repaint, requestFocus, setActionCommand, setAlignmentX, setAlignmentY, setBackground, setBounds, setBounds, setCachedProperties, setComponentOrientation, setComponentRemoved, setCursor, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setFont, setForeground, setHeight, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setSize, setSize, setToolTipText, setVisible, setWidth, show, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ppeer

protected org.eclipse.swt.widgets.Slider ppeer

VERTICAL

public static final int VERTICAL
See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
See Also:
Constant Field Values

orientation

protected int orientation

value

protected int value

extent

protected int extent

blockIncrement

protected int blockIncrement

increment

protected int increment

min

protected int min

max

protected int max

adjustmentListeners

protected java.util.Vector adjustmentListeners
Constructor Detail

JScrollBar

public JScrollBar()

JScrollBar

public JScrollBar(int orientation)

JScrollBar

public JScrollBar(int orientation,
                  int value,
                  int extent,
                  int min,
                  int max)
Method Detail

addAdjustmentListener

public void addAdjustmentListener(AdjustmentListener l)
Specified by:
addAdjustmentListener in interface Adjustable

removeAdjustmentListener

public void removeAdjustmentListener(AdjustmentListener l)
Specified by:
removeAdjustmentListener in interface Adjustable

getOrientation

public int getOrientation()
Specified by:
getOrientation in interface Adjustable

setOrientation

public void setOrientation(int orientation)

getUnitIncrement

public int getUnitIncrement(int direction)

setUnitIncrement

public void setUnitIncrement(int unitIncrement)
Specified by:
setUnitIncrement in interface Adjustable

getBlockIncrement

public int getBlockIncrement(int direction)

setBlockIncrement

public void setBlockIncrement(int blockIncrement)
Specified by:
setBlockIncrement in interface Adjustable

getUnitIncrement

public int getUnitIncrement()
Specified by:
getUnitIncrement in interface Adjustable

getBlockIncrement

public int getBlockIncrement()
Specified by:
getBlockIncrement in interface Adjustable

getValue

public int getValue()
Specified by:
getValue in interface Adjustable

setValue

public void setValue(int value)
Specified by:
setValue in interface Adjustable

getVisibleAmount

public int getVisibleAmount()
Specified by:
getVisibleAmount in interface Adjustable

setVisibleAmount

public void setVisibleAmount(int extent)
Specified by:
setVisibleAmount in interface Adjustable

getMinimum

public int getMinimum()
Specified by:
getMinimum in interface Adjustable

setMinimum

public void setMinimum(int minimum)
Specified by:
setMinimum in interface Adjustable

getMaximum

public int getMaximum()
Specified by:
getMaximum in interface Adjustable

setMaximum

public void setMaximum(int maximum)
Specified by:
setMaximum in interface Adjustable

getValueIsAdjusting

public boolean getValueIsAdjusting()

setValueIsAdjusting

public void setValueIsAdjusting(boolean b)

setValues

public void setValues(int newValue,
                      int newExtent,
                      int newMin,
                      int newMax)

updateBar

protected void updateBar()

setSwingWTParent

public void setSwingWTParent(Container parent)
                      throws java.lang.Exception
Once a parent component receives an "add" call for a child, this being the child, this should be called to tell us to instantiate the peer and load in any cached properties.

Overrides:
setSwingWTParent in class JComponent
Throws:
java.lang.Exception

registerBarEvents

protected void registerBarEvents()

processAdjustmentEvent

protected void processAdjustmentEvent(AdjustmentEvent e)