org.spiffyui.client.widgets.button
Class FancyButton

java.lang.Object
  extended by Button
      extended by org.spiffyui.client.widgets.button.FancyButton
Direct Known Subclasses:
FancySaveButton

public abstract class FancyButton
extends Button

This is the base class for fancy buttons with or without icons in them


Constructor Summary
FancyButton()
          Creates a new FancyButton
FancyButton(java.lang.String text)
          Creates a new FancyButton with the specified text
 
Method Summary
 boolean isEnabled()
           
 boolean isInProgress()
          Determines if this button is in progress
 void setEnabled(boolean enabled)
           
 void setInProgress(boolean inprogress)
          Sets this button to be in progress.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FancyButton

public FancyButton()
Creates a new FancyButton


FancyButton

public FancyButton(java.lang.String text)
Creates a new FancyButton with the specified text

Parameters:
text - the text for the button
Method Detail

setEnabled

public void setEnabled(boolean enabled)

isEnabled

public boolean isEnabled()

setInProgress

public void setInProgress(boolean inprogress)
Sets this button to be in progress. In progress buttons show a different image and are disabled

Parameters:
inprogress - true if in progress and false otherwise

isInProgress

public boolean isInProgress()
Determines if this button is in progress

Returns:
true if it is in progress and false otherwise