Class SetWidgetPropertyCommand

java.lang.Object
org.eclipse.gef.commands.Command
org.csstudio.opibuilder.commands.SetWidgetPropertyCommand

public class SetWidgetPropertyCommand extends org.eclipse.gef.commands.Command
A Command to set a property value of a widget. Use command can help to realize redo/undo.
  • Constructor Details

    • SetWidgetPropertyCommand

      public SetWidgetPropertyCommand(AbstractWidgetModel widget, String prop_id, Object newValue)
      Constructor.
      Parameters:
      widget - The widget, whose property value should be set
      prop_id - The id of the property
      newValue - The new value for the property
  • Method Details

    • execute

      public void execute()
      Overrides:
      execute in class org.eclipse.gef.commands.Command
    • undo

      public void undo()
      Overrides:
      undo in class org.eclipse.gef.commands.Command