All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.SpinButtonPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----symantec.itools.awt.SpinButtonPanel

public class SpinButtonPanel
extends Panel
This component provides the up/down or right/left buttons used in spinners. It is used by abstract class Spinner and in the HorizontalSpinButtonPanel and VerticalSpinButtonPanel components.

See Also:
Spinner, HorizontalSpinButtonPanel, VerticalSpinButtonPanel

Variable Index

 o decButton
The button used to decrement the spinner value.
 o incButton
The button used to increment the spinner value.

Constructor Index

 o SpinButtonPanel()
Constructs a spinner with up/down buttons.

Method Index

 o action(Event, Object)
Handles internal actions for this component.
 o disable()
Disables this component so that it doesn't respond to user input.
 o disableDownButton()
This disables the decrementing button only.
 o disableUpButton()
This disables the incrementing button only.
 o enable()
Enables this component so that it will respond to user input.
 o enableDownButton()
This enables the decrementing button only.
 o enableUpButton()
This enables the incrementing button only.
 o getDelay()
Returns the current delay between notification events of the spinner buttons in milliseconds.
 o getNotifyWhilePressed()
Gets the current notifyWhilePressed status.
 o setDelay(int)
Sets the notification event delay of the spinner buttons in milliseconds.
 o setLayout(LayoutManager)
Takes no action.
 o setNotifyWhilePressed(boolean)
Sets whether the spinner buttons will continually post notify events while pressed.

Variables

 o incButton
  protected DirectionButton incButton
The button used to increment the spinner value.

 o decButton
  protected DirectionButton decButton
The button used to decrement the spinner value.

Constructors

 o SpinButtonPanel
  public SpinButtonPanel()
Constructs a spinner with up/down buttons.

Methods

 o setNotifyWhilePressed
  public void setNotifyWhilePressed(boolean f)
Sets whether the spinner buttons will continually post notify events while pressed.

Parameters:
f - true = post notify events; false = do not post events
See Also:
getNotifyWhilePressed, setDelay, getDelay
 o getNotifyWhilePressed
  public boolean getNotifyWhilePressed()
Gets the current notifyWhilePressed status.

Returns:
true if notify events posted while pressed, false otherwise
See Also:
setNotifyWhilePressed, setDelay, getDelay
 o setDelay
  public void setDelay(int d)
Sets the notification event delay of the spinner buttons in milliseconds.

Parameters:
d - the delay between notification events in milliseconds
See Also:
setNotifyWhilePressed, getDelay
 o getDelay
  public int getDelay()
Returns the current delay between notification events of the spinner buttons in milliseconds.

See Also:
setNotifyWhilePressed, setDelay
 o action
  public boolean action(Event e,
                        Object o)
Handles internal actions for this component. This is a standard Java AWT method which usually gets called by the AWT method handleEvent() in response to receiving an ACTION_EVENT event. In those cases the o parameter contains the value in the event's arg field.

Parameters:
e - the event that caused this action
o - the action
Returns:
true if the action was handled
Overrides:
action in class Component
See Also:
handleEvent
 o enable
  public synchronized void enable()
Enables this component so that it will respond to user input. This is a standard Java AWT method which gets called to enable this component. Once enabled this component will respond to user input.

Overrides:
enable in class Component
See Also:
disable
 o disable
  public synchronized void disable()
Disables this component so that it doesn't respond to user input. This is a standard Java AWT method which gets called to disable this component. Once disabled this component will not respond to user input.

Overrides:
disable in class Component
See Also:
enable
 o enableUpButton
  public synchronized void enableUpButton()
This enables the incrementing button only.

See Also:
disableUpButton, enableDownButton
 o enableDownButton
  public synchronized void enableDownButton()
This enables the decrementing button only.

See Also:
disableDownButton, enableUpButton
 o disableUpButton
  public synchronized void disableUpButton()
This disables the incrementing button only.

See Also:
enableUpButton, disableDownButton
 o disableDownButton
  public synchronized void disableDownButton()
This disables the decrementing button only.

See Also:
enableDownButton, disableUpButton
 o setLayout
  public void setLayout(LayoutManager l)
Takes no action. This is a standard Java AWT method which gets called to specify which layout manager should be used to layout the components in standard containers. Since layout managers CANNOT BE USED with this container the standard setLayout has been OVERRIDDEN for this container and does nothing.

Parameters:
l - the layout manager to use to layout this container's components (IGNORED)
Overrides:
setLayout in class Container
See Also:
getLayout

All Packages  Class Hierarchy  This Package  Previous  Next  Index