edu.washington.cs.supple.customization.command
Class ActionSetWidgetType

java.lang.Object
  extended byedu.washington.cs.supple.customization.command.ActionSetWidgetType
All Implemented Interfaces:
Action

public class ActionSetWidgetType
extends java.lang.Object
implements Action

Sets the widget type of a UiObject. For example, integer state variables can be represented as spinners, sliders, etc....

Author:
raphael

Field Summary
protected  WidgetDescriptor[] widgetDescriptors
           
 
Constructor Summary
ActionSetWidgetType(WidgetDescriptor widgetDescriptor)
           
ActionSetWidgetType(WidgetDescriptor[] widgetDescriptors)
           
 
Method Summary
 boolean equals(Action c)
           
 void execute(State state, UiObject location, Command executer)
          Executes an action.
 void executeRedo(State state, HistoryRecord record, Command executer)
          Executes a redo action.
 void executeReversal(State state, HistoryRecord record, Command executer)
          Executes a reverse action.
protected  void removePreviousConstraints(UiObject location)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

widgetDescriptors

protected WidgetDescriptor[] widgetDescriptors
Constructor Detail

ActionSetWidgetType

public ActionSetWidgetType(WidgetDescriptor widgetDescriptor)

ActionSetWidgetType

public ActionSetWidgetType(WidgetDescriptor[] widgetDescriptors)
Method Detail

execute

public void execute(State state,
                    UiObject location,
                    Command executer)
Description copied from interface: Action
Executes an action.

Specified by:
execute in interface Action
Parameters:
state -
location -
executer -

executeReversal

public void executeReversal(State state,
                            HistoryRecord record,
                            Command executer)
Description copied from interface: Action
Executes a reverse action.

Specified by:
executeReversal in interface Action
Parameters:
state -
record -
executer -

executeRedo

public void executeRedo(State state,
                        HistoryRecord record,
                        Command executer)
Description copied from interface: Action
Executes a redo action.

Specified by:
executeRedo in interface Action
Parameters:
state -
record -
executer -

removePreviousConstraints

protected void removePreviousConstraints(UiObject location)

toString

public java.lang.String toString()

equals

public boolean equals(Action c)