All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.ScrollbarGadget

java.lang.Object
   |
   +----dtai.gwt.Gadget
           |
           +----dtai.gwt.ContainerGadget
                   |
                   +----dtai.gwt.PanelGadget
                           |
                           +----dtai.gwt.ScrollbarGadget

public class ScrollbarGadget
extends PanelGadget
implements Adjustable, MouseListener, MouseMotionListener, Runnable
ScrollbarGadget


Variable Index

 o HORIZONTAL
 o VERTICAL

Constructor Index

 o ScrollbarGadget()
Constructs a Scrollbar with no label.
 o ScrollbarGadget(int)
ScrollbarGadget
 o ScrollbarGadget(int, int, int, int, int)
ScrollbarGadget

Method Index

 o addAdjustmentListener(AdjustmentListener)
Adds the specified listener to be notified when component events occur on this component.
 o adjustBubble(int)
adjustBubble
 o delay()
delay
 o doLayout()
Does a layout on this Container.
 o getBlockIncrement()
Gets the block increment for this scrollbar.
 o getGutterColor()
getGutterColor
 o getMaximum()
Returns the maximum value of this Scrollbar.
 o getMinimum()
Returns the minimum value of this Scrollbar.
 o getOrientation()
Gets the orientation of the button.
 o getUnitIncrement()
Gets the line increment for this scrollbar.
 o getValue()
Returns the current value of this Scrollbar.
 o getVisibleAmount()
Returns the visibleAmount amount of the Scrollbar.
 o isAutoScrolling()
True if holding down mouse causes scrollbar to scroll automatically
 o mouseClicked(MouseEvent)
mouseClicked
 o mouseDragged(MouseEvent)
mouseDragged
 o mouseEntered(MouseEvent)
mouseEntered
 o mouseExited(MouseEvent)
mouseExcited
 o mouseMoved(MouseEvent)
mouseMoved
 o mousePressed(MouseEvent)
mousePressed
 o mouseReleased(MouseEvent)
mouseReleased
 o paint(GadgetGraphics)
Paints the gadget.
 o posToValue(int)
posToValue
 o processAdjustmentEvent(AdjustmentEvent)
 o processEvent(AWTEvent)
Processes events occurring on this action.
 o processMouseEvent(MouseEvent)
processMouseEvent
 o removeAdjustmentListener(AdjustmentListener)
Removes the specified listener so it no longer receives adjustment events on this adjustment.
 o run()
run
 o scroll(Thread, boolean)
scroll
 o setActiveUpdate(boolean)
Sets the scrollbar's active update flag
 o setAutoScrolling(boolean)
True if holding down mouse causes scrollbar to scroll automatically
 o setBlockIncrement(int)
Sets the block increment for this scrollbar.
 o setGutterColor(Color)
setGutterColor
 o setMaximum(int)
setMaximum
 o setMinimum(int)
setMinumum
 o setOrientation(int)
Sets the button with the specified orientation.
 o setUnitIncrement(int)
Sets the line increment for this scrollbar.
 o setValue(int)
Sets the value of this Scrollbar to the specified value.
 o setValue(int, Event, int)
setValue
 o setValues(int, int, int, int)
Sets the values for this Scrollbar.
 o setVisibleAmount(int)
setVisibleAmount
 o startAdjust(int, Event, int)
startAdjust
 o stopAdjust()
stopAdjust
 o valueToPos(int)
valueToPos

Variables

 o HORIZONTAL
 public static final int HORIZONTAL
 o VERTICAL
 public static final int VERTICAL

Constructors

 o ScrollbarGadget
 public ScrollbarGadget()
Constructs a Scrollbar with no label.

 o ScrollbarGadget
 public ScrollbarGadget(int orientation)
ScrollbarGadget

Parameters:
orientation - description
 o ScrollbarGadget
 public ScrollbarGadget(int orientation,
                        int value,
                        int visibleAmount,
                        int minimum,
                        int maximum)
ScrollbarGadget

Parameters:
orientation - description
value - description
visibleAmount - description
minumum - description
maximum - description

Methods

 o run
 public void run()
run

 o delay
 public void delay()
delay

 o setActiveUpdate
 public void setActiveUpdate(boolean activeUpdate)
Sets the scrollbar's active update flag

Parameters:
activeUpdate - if true (usually the default) the scrollbar will not update anything while dragging.
 o scroll
 public void scroll(Thread thisThread,
                    boolean update)
scroll

Parameters:
thisThread - description
 o startAdjust
 public void startAdjust(int delta,
                         Event evt,
                         int eventType)
startAdjust

Parameters:
delta - description
evt - description
eventType - description
 o stopAdjust
 public void stopAdjust()
stopAdjust

 o isAutoScrolling
 public final boolean isAutoScrolling()
True if holding down mouse causes scrollbar to scroll automatically

Returns:
boolean
See Also:
setAutoScrolling
 o setAutoScrolling
 public void setAutoScrolling(boolean autoScrolling)
True if holding down mouse causes scrollbar to scroll automatically

Parameters:
autoScrolling - - the autoScrolling to set the button with
 o getOrientation
 public final int getOrientation()
Gets the orientation of the button.

Returns:
int
See Also:
setOrientation
 o setOrientation
 public void setOrientation(int orientation)
Sets the button with the specified orientation.

Parameters:
orientation - - the orientation to set the button with
See Also:
getLabel
 o getValue
 public final int getValue()
Returns the current value of this Scrollbar.

Returns:
int
See Also:
getMinimum, getMaximum
 o setValue
 public void setValue(int value)
Sets the value of this Scrollbar to the specified value.

Parameters:
value - the new value of the Scrollbar. If this value is below the current minimum or above the current maximum, it becomes the new one of those values, respectively.
See Also:
getValue
 o setValue
 public void setValue(int value,
                      Event evt,
                      int eventType)
setValue

Parameters:
value - description
evt - description
eventType - description
 o getMinimum
 public final int getMinimum()
Returns the minimum value of this Scrollbar.

Returns:
int
See Also:
getMaximum, getValue
 o getMaximum
 public final int getMaximum()
Returns the maximum value of this Scrollbar.

Returns:
int
See Also:
getMinimum, getValue
 o getVisibleAmount
 public final int getVisibleAmount()
Returns the visibleAmount amount of the Scrollbar.

Returns:
int
 o setUnitIncrement
 public void setUnitIncrement(int l)
Sets the line increment for this scrollbar. This is the value that will be added (subtracted) when the user hits the line down (up) gadgets.

 o getUnitIncrement
 public int getUnitIncrement()
Gets the line increment for this scrollbar.

Returns:
int
 o setBlockIncrement
 public void setBlockIncrement(int p)
Sets the block increment for this scrollbar. This is the value that will be added (subtracted) when the user hits the block down (up) gadgets.

 o getBlockIncrement
 public int getBlockIncrement()
Gets the block increment for this scrollbar.

Returns:
int
 o setValues
 public void setValues(int value,
                       int visibleAmount,
                       int minimum,
                       int maximum)
Sets the values for this Scrollbar.

Parameters:
value - is the position in the current window.
visibleAmount - is the amount visibleAmount per block
minimum - is the minimum value of the scrollbar
maximum - is the maximum value of the scrollbar
 o setMinimum
 public void setMinimum(int minimum)
setMinumum

Parameters:
minumum - description
 o setMaximum
 public void setMaximum(int maximum)
setMaximum

Parameters:
maximum - description
 o setVisibleAmount
 public void setVisibleAmount(int visibleAmount)
setVisibleAmount

Parameters:
visibleAmount - description
 o setGutterColor
 public void setGutterColor(Color g)
setGutterColor

Parameters:
g - description
 o getGutterColor
 public Color getGutterColor()
getGutterColor

Returns:
Color
 o posToValue
 public int posToValue(int pos)
posToValue

Parameters:
pos - description
Returns:
int
 o valueToPos
 public int valueToPos(int value)
valueToPos

Parameters:
value - description
Returns:
int
 o adjustBubble
 protected void adjustBubble(int bubbleValue)
adjustBubble

 o doLayout
 public void doLayout()
Does a layout on this Container.

Overrides:
doLayout in class ContainerGadget
See Also:
setLayout
 o paint
 public void paint(GadgetGraphics g)
Paints the gadget.

Parameters:
g - - the specified GadgetGraphics window
Overrides:
paint in class Gadget
 o addAdjustmentListener
 public synchronized void addAdjustmentListener(AdjustmentListener l)
Adds the specified listener to be notified when component events occur on this component.

Parameters:
l - the listener to receive the events
 o removeAdjustmentListener
 public synchronized void removeAdjustmentListener(AdjustmentListener l)
Removes the specified listener so it no longer receives adjustment events on this adjustment.

Parameters:
l - the listener to remove
 o processEvent
 protected void processEvent(AWTEvent e)
Processes events occurring on this action. By default this method will call the appropriate "handleXXX" method for the type of event.

Parameters:
e - - TBD
Returns:
boolean
Overrides:
processEvent in class ContainerGadget
 o processAdjustmentEvent
 protected void processAdjustmentEvent(AdjustmentEvent e)
 o processMouseEvent
 protected void processMouseEvent(MouseEvent e)
processMouseEvent

Parameters:
e - description
Overrides:
processMouseEvent in class Gadget
 o mouseClicked
 public void mouseClicked(MouseEvent e)
mouseClicked

Parameters:
e - description
 o mousePressed
 public void mousePressed(MouseEvent e)
mousePressed

Parameters:
e - description
 o mouseReleased
 public void mouseReleased(MouseEvent e)
mouseReleased

Parameters:
e - description
 o mouseEntered
 public void mouseEntered(MouseEvent e)
mouseEntered

Parameters:
e - description
 o mouseExited
 public void mouseExited(MouseEvent e)
mouseExcited

Parameters:
e - description
 o mouseDragged
 public void mouseDragged(MouseEvent e)
mouseDragged

Parameters:
e - description
 o mouseMoved
 public void mouseMoved(MouseEvent e)
mouseMoved

Parameters:
e - description

All Packages  Class Hierarchy  This Package  Previous  Next  Index