All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class guinea.ui.ControlButton
java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Button
                   |
                   +----guinea.ui.ControlButton
  -  public class ControlButton
  
-  extends Button
  
-  implements ControlInterface, PropertyLoader
   
The ControlButton is a simple control button.
When the button is pressed, a control message is sent.
    -  See Also:
    
 -  Button
 
  Constructor Index
  -   · 
	ControlButton()
  
 -  Construct a new control button.
  
 -   · 
	ControlButton(String)
  
 -  Construct a new control button with a button text as the
parameter.
 
  Method Index
  -   · 
	addControlListener(ControlListener)
  
 -  Adds the specified control listener to receive control events
from this component.
  
 -   · 
	getControlValue()
  
 -  Get the control value of the controller.
  
 -   · 
	isControlEnabled()
  
 -  Test whether control is enabled or disabled.
  
 -   · 
	processControlEvent(ControlEvent)
  
 -  
  
 -   · 
	processEvent(AWTEvent)
  
 -  Process AWT event from the button.
  
 -   · 
	propertyLoad(Properties, String)
  
 -  
  
 -   · 
	removeControlListener(ControlListener)
  
 -  Removes the specified listener so it no longer receives
control motion events from this component.
  
 -   · 
	reset()
  
 -  Reset control to default value.
  
 -   · 
	setControlEnabled(boolean)
  
 -  Enable or disable control component.
  
 -   · 
	setControlValue(Object)
  
 -  Set the value of this controller.
 
  Constructors
 · 
ControlButton
 public ControlButton()
  -  Construct a new control button.
 
 · 
ControlButton
 public ControlButton(String label)
  -  Construct a new control button with a button text as the
parameter.
  
    -  Parameters:
    
 -  label - Text for button.
  
 
 
 
  Methods
 · 
processEvent
 protected void processEvent(AWTEvent e)
  -  Process AWT event from the button.  When button is pressed, a
control event is created and send to listeners.
  
    -  Parameters:
    
 -  e - An AWT event.
    
 -  Overrides:
    
 -  processEvent in class Button
  
 
 
 
 · 
setControlEnabled
 public void setControlEnabled(boolean enable)
  -  Enable or disable control component.
  
    -  Parameters:
    
 -  enabled - Use 
true to enable,
false to disable the controller.
   
 
 
 · 
isControlEnabled
 public boolean isControlEnabled()
  -  Test whether control is enabled or disabled.
  
    -  Returns:
    
 -  
true if controller is enabled,
false if not.
   
 
 
 · 
reset
 public void reset()
  -  Reset control to default value.
 
 · 
setControlValue
 public void setControlValue(Object value)
  -  Set the value of this controller.  For now this method of the
control button does nothing.
  
    -  Parameters:
    
 -  value - the value to set.
  
 
 
 
 · 
getControlValue
 public Object getControlValue()
  -  Get the control value of the controller.
  
    -  Parameters:
    
 -  controlID - The ID of the controller component.
    
 -  Returns:
    
 -  The value of the controlled variable.
  
 
 
 
 · 
addControlListener
 public synchronized void addControlListener(ControlListener listener)
  -  Adds the specified control listener to receive control events
from this component.
  
    -  Parameters:
    
 -  listener - A control listener.
  
 
 
 
 · 
removeControlListener
 public synchronized void removeControlListener(ControlListener listener)
  -  Removes the specified listener so it no longer receives
control motion events from this component.
  
    -  Parameters:
    
 -  listener - A control listener.
  
 
 
 
 · 
processControlEvent
 protected void processControlEvent(ControlEvent evt)
 · 
propertyLoad
 public void propertyLoad(Properties p,
                          String name) throws IllegalArgumentException
All Packages  Class Hierarchy  This Package  Previous  Next  Index