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
-
HORIZONTAL
-
-
VERTICAL
-
-
ScrollbarGadget()
- Constructs a Scrollbar with no label.
-
ScrollbarGadget(int)
- ScrollbarGadget
-
ScrollbarGadget(int, int, int, int, int)
- ScrollbarGadget
-
addAdjustmentListener(AdjustmentListener)
- Adds the specified listener to be notified when component
events occur on this component.
-
adjustBubble(int)
- adjustBubble
-
delay()
- delay
-
doLayout()
- Does a layout on this Container.
-
getBlockIncrement()
- Gets the block increment for this scrollbar.
-
getGutterColor()
- getGutterColor
-
getMaximum()
- Returns the maximum value of this Scrollbar.
-
getMinimum()
- Returns the minimum value of this Scrollbar.
-
getOrientation()
- Gets the orientation of the button.
-
getUnitIncrement()
- Gets the line increment for this scrollbar.
-
getValue()
- Returns the current value of this Scrollbar.
-
getVisibleAmount()
- Returns the visibleAmount amount of the Scrollbar.
-
isAutoScrolling()
- True if holding down mouse causes scrollbar to scroll automatically
-
mouseClicked(MouseEvent)
- mouseClicked
-
mouseDragged(MouseEvent)
- mouseDragged
-
mouseEntered(MouseEvent)
- mouseEntered
-
mouseExited(MouseEvent)
- mouseExcited
-
mouseMoved(MouseEvent)
- mouseMoved
-
mousePressed(MouseEvent)
- mousePressed
-
mouseReleased(MouseEvent)
- mouseReleased
-
paint(GadgetGraphics)
- Paints the gadget.
-
posToValue(int)
- posToValue
-
processAdjustmentEvent(AdjustmentEvent)
-
-
processEvent(AWTEvent)
- Processes events occurring on this action.
-
processMouseEvent(MouseEvent)
- processMouseEvent
-
removeAdjustmentListener(AdjustmentListener)
- Removes the specified listener so it no longer receives
adjustment events on this adjustment.
-
run()
- run
-
scroll(Thread, boolean)
- scroll
-
setActiveUpdate(boolean)
- Sets the scrollbar's active update flag
-
setAutoScrolling(boolean)
- True if holding down mouse causes scrollbar to scroll automatically
-
setBlockIncrement(int)
- Sets the block increment for this scrollbar.
-
setGutterColor(Color)
- setGutterColor
-
setMaximum(int)
- setMaximum
-
setMinimum(int)
- setMinumum
-
setOrientation(int)
- Sets the button with the specified orientation.
-
setUnitIncrement(int)
- Sets the line increment for this scrollbar.
-
setValue(int)
- Sets the value of this Scrollbar to the specified value.
-
setValue(int, Event, int)
- setValue
-
setValues(int, int, int, int)
- Sets the values for this Scrollbar.
-
setVisibleAmount(int)
- setVisibleAmount
-
startAdjust(int, Event, int)
- startAdjust
-
stopAdjust()
- stopAdjust
-
valueToPos(int)
- valueToPos
HORIZONTAL
public static final int HORIZONTAL
VERTICAL
public static final int VERTICAL
ScrollbarGadget
public ScrollbarGadget()
- Constructs a Scrollbar with no label.
ScrollbarGadget
public ScrollbarGadget(int orientation)
- ScrollbarGadget
- Parameters:
- orientation - description
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
run
public void run()
- run
delay
public void delay()
- delay
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.
scroll
public void scroll(Thread thisThread,
boolean update)
- scroll
- Parameters:
- thisThread - description
startAdjust
public void startAdjust(int delta,
Event evt,
int eventType)
- startAdjust
- Parameters:
- delta - description
- evt - description
- eventType - description
stopAdjust
public void stopAdjust()
- stopAdjust
isAutoScrolling
public final boolean isAutoScrolling()
- True if holding down mouse causes scrollbar to scroll automatically
- Returns:
- boolean
- See Also:
- setAutoScrolling
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
getOrientation
public final int getOrientation()
- Gets the orientation of the button.
- Returns:
- int
- See Also:
- setOrientation
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
getValue
public final int getValue()
- Returns the current value of this Scrollbar.
- Returns:
- int
- See Also:
- getMinimum, getMaximum
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
setValue
public void setValue(int value,
Event evt,
int eventType)
- setValue
- Parameters:
- value - description
- evt - description
- eventType - description
getMinimum
public final int getMinimum()
- Returns the minimum value of this Scrollbar.
- Returns:
- int
- See Also:
- getMaximum, getValue
getMaximum
public final int getMaximum()
- Returns the maximum value of this Scrollbar.
- Returns:
- int
- See Also:
- getMinimum, getValue
getVisibleAmount
public final int getVisibleAmount()
- Returns the visibleAmount amount of the Scrollbar.
- Returns:
- int
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.
getUnitIncrement
public int getUnitIncrement()
- Gets the line increment for this scrollbar.
- Returns:
- int
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.
getBlockIncrement
public int getBlockIncrement()
- Gets the block increment for this scrollbar.
- Returns:
- int
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
setMinimum
public void setMinimum(int minimum)
- setMinumum
- Parameters:
- minumum - description
setMaximum
public void setMaximum(int maximum)
- setMaximum
- Parameters:
- maximum - description
setVisibleAmount
public void setVisibleAmount(int visibleAmount)
- setVisibleAmount
- Parameters:
- visibleAmount - description
setGutterColor
public void setGutterColor(Color g)
- setGutterColor
- Parameters:
- g - description
getGutterColor
public Color getGutterColor()
- getGutterColor
- Returns:
- Color
posToValue
public int posToValue(int pos)
- posToValue
- Parameters:
- pos - description
- Returns:
- int
valueToPos
public int valueToPos(int value)
- valueToPos
- Parameters:
- value - description
- Returns:
- int
adjustBubble
protected void adjustBubble(int bubbleValue)
- adjustBubble
doLayout
public void doLayout()
- Does a layout on this Container.
- Overrides:
- doLayout in class ContainerGadget
- See Also:
- setLayout
paint
public void paint(GadgetGraphics g)
- Paints the gadget.
- Parameters:
- g - - the specified GadgetGraphics window
- Overrides:
- paint in class Gadget
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
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
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
processAdjustmentEvent
protected void processAdjustmentEvent(AdjustmentEvent e)
processMouseEvent
protected void processMouseEvent(MouseEvent e)
- processMouseEvent
- Parameters:
- e - description
- Overrides:
- processMouseEvent in class Gadget
mouseClicked
public void mouseClicked(MouseEvent e)
- mouseClicked
- Parameters:
- e - description
mousePressed
public void mousePressed(MouseEvent e)
- mousePressed
- Parameters:
- e - description
mouseReleased
public void mouseReleased(MouseEvent e)
- mouseReleased
- Parameters:
- e - description
mouseEntered
public void mouseEntered(MouseEvent e)
- mouseEntered
- Parameters:
- e - description
mouseExited
public void mouseExited(MouseEvent e)
- mouseExcited
- Parameters:
- e - description
mouseDragged
public void mouseDragged(MouseEvent e)
- mouseDragged
- Parameters:
- e - description
mouseMoved
public void mouseMoved(MouseEvent e)
- mouseMoved
- Parameters:
- e - description
All Packages Class Hierarchy This Package Previous Next Index