org.uispec4j
Class ToggleButton

java.lang.Object
  extended by org.uispec4j.AbstractUIComponent
      extended by org.uispec4j.AbstractSwingUIComponent
          extended by org.uispec4j.AbstractButton
              extended by org.uispec4j.ToggleButton
All Implemented Interfaces:
TooltipComponent, UIComponent

public class ToggleButton
extends AbstractButton

Wrapper for JToggleButton components.


Field Summary
static java.lang.Class[] SWING_CLASSES
           
static java.lang.String TYPE_NAME
           
 
Constructor Summary
ToggleButton(javax.swing.JToggleButton jToggleButton)
           
 
Method Summary
 javax.swing.JToggleButton getAwtComponent()
          Returns the Java GUI component represented by this object.
 java.lang.String getDescriptionTypeName()
          Returns the name of the component as it will appear in the XML representation returned by UIComponent.getDescription().
 Assertion isSelected()
           
 void select()
           
 void unselect()
           
 
Methods inherited from class org.uispec4j.AbstractButton
click, getLabel, iconEquals, textEquals, triggerClick
 
Methods inherited from class org.uispec4j.AbstractSwingUIComponent
tooltipContains, tooltipEquals
 
Methods inherited from class org.uispec4j.AbstractUIComponent
addAttributes, backgroundEquals, backgroundNear, foregroundEquals, foregroundNear, getContainer, getContainer, getDescription, getDescription, getName, getSubDescription, isEnabled, isVisible, pressKey, releaseKey, typeKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NAME

public static final java.lang.String TYPE_NAME
See Also:
Constant Field Values

SWING_CLASSES

public static final java.lang.Class[] SWING_CLASSES
Constructor Detail

ToggleButton

public ToggleButton(javax.swing.JToggleButton jToggleButton)
Method Detail

getAwtComponent

public javax.swing.JToggleButton getAwtComponent()
Description copied from interface: UIComponent
Returns the Java GUI component represented by this object.

Specified by:
getAwtComponent in interface UIComponent
Specified by:
getAwtComponent in class AbstractSwingUIComponent

getDescriptionTypeName

public java.lang.String getDescriptionTypeName()
Description copied from interface: UIComponent
Returns the name of the component as it will appear in the XML representation returned by UIComponent.getDescription().


isSelected

public Assertion isSelected()

select

public void select()

unselect

public void unselect()


Copyright © 2004-2010. All Rights Reserved.