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
-
decButton
- The button used to decrement the spinner value.
-
incButton
- The button used to increment the spinner value.
-
SpinButtonPanel()
- Constructs a spinner with up/down buttons.
-
action(Event, Object)
- Handles internal actions for this component.
-
disable()
- Disables this component so that it doesn't respond to user input.
-
disableDownButton()
- This disables the decrementing button only.
-
disableUpButton()
- This disables the incrementing button only.
-
enable()
- Enables this component so that it will respond to user input.
-
enableDownButton()
- This enables the decrementing button only.
-
enableUpButton()
- This enables the incrementing button only.
-
getDelay()
- Returns the current delay between notification events of the spinner
buttons in milliseconds.
-
getNotifyWhilePressed()
- Gets the current notifyWhilePressed status.
-
setDelay(int)
- Sets the notification event delay of the spinner buttons in milliseconds.
-
setLayout(LayoutManager)
- Takes no action.
-
setNotifyWhilePressed(boolean)
- Sets whether the spinner buttons will continually post notify events
while pressed.
incButton
protected DirectionButton incButton
- The button used to increment the spinner value.
decButton
protected DirectionButton decButton
- The button used to decrement the spinner value.
SpinButtonPanel
public SpinButtonPanel()
- Constructs a spinner with up/down buttons.
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
getNotifyWhilePressed
public boolean getNotifyWhilePressed()
- Gets the current notifyWhilePressed status.
- Returns:
- true if notify events posted while pressed, false otherwise
- See Also:
- setNotifyWhilePressed, setDelay, getDelay
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
getDelay
public int getDelay()
- Returns the current delay between notification events of the spinner
buttons in milliseconds.
- See Also:
- setNotifyWhilePressed, setDelay
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
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
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
enableUpButton
public synchronized void enableUpButton()
- This enables the incrementing button only.
- See Also:
- disableUpButton, enableDownButton
enableDownButton
public synchronized void enableDownButton()
- This enables the decrementing button only.
- See Also:
- disableDownButton, enableUpButton
disableUpButton
public synchronized void disableUpButton()
- This disables the incrementing button only.
- See Also:
- enableUpButton, disableDownButton
disableDownButton
public synchronized void disableDownButton()
- This disables the decrementing button only.
- See Also:
- enableDownButton, disableUpButton
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