org.uispec4j
Class AbstractButton

java.lang.Object
  extended byorg.uispec4j.AbstractUIComponent
      extended byorg.uispec4j.AbstractButton
All Implemented Interfaces:
UIComponent
Direct Known Subclasses:
Button, CheckBox, RadioButton, ToggleButton

public abstract class AbstractButton
extends AbstractUIComponent

Base class for button-like components (toggle buttons, check boxes, etc.)


Constructor Summary
protected AbstractButton(AbstractButton abstractButton)
           
 
Method Summary
 void click()
           
 String getLabel()
          Returns the label displayed on this component, or null if this has no sense for this kind of components.
 Assertion textEquals(String text)
           
 Trigger triggerClick()
           
 
Methods inherited from class org.uispec4j.AbstractUIComponent
addAttributes, backgroundEquals, foregroundEquals, getDescription, getDescription, getName, getSubDescription, isEnabled, isVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.uispec4j.UIComponent
getAwtComponent, getDescriptionTypeName
 

Constructor Detail

AbstractButton

protected AbstractButton(AbstractButton abstractButton)
Method Detail

click

public void click()

textEquals

public Assertion textEquals(String text)

getLabel

public String getLabel()
Description copied from interface: UIComponent
Returns the label displayed on this component, or null if this has no sense for this kind of components.

Specified by:
getLabel in interface UIComponent
Overrides:
getLabel in class AbstractUIComponent

triggerClick

public Trigger triggerClick()


Copyright © 2004-2007 Design-up. All Rights Reserved.