org.gcn.plinguaplugin.simulatorCreator
Class CheckBoxSelectionListener

java.lang.Object
  extended by org.gcn.plinguaplugin.simulatorCreator.CheckBoxSelectionListener
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener
Direct Known Subclasses:
AlternativeStepsCheckBoxSelectionListener, OpenConsoleCheckBoxSelectionListener, StepsBackCheckBoxSelectionListener

abstract class CheckBoxSelectionListener
extends java.lang.Object
implements org.eclipse.swt.events.SelectionListener

This abstract class describes a check box selection behavior which consists of enabling and disabling the simulator supported actions

Author:
Manuel Garcia-Quismondo-Fernandez

Constructor Summary
CheckBoxSelectionListener(org.eclipse.swt.widgets.Button checkBox, SimulatorCreatorDisplayer displayer)
          Creates a new CheckBoxSelectionListener which describes a check box selection behavior which consists of enabling and disabling the simulator supported actions
 
Method Summary
protected  SimulatorCreatorDisplayer getSimulatorCreatorDisplayer()
           
protected abstract  void setValue(boolean value)
           
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
           
 void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
          Sets the check box value as the one depending on the specific class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckBoxSelectionListener

public CheckBoxSelectionListener(org.eclipse.swt.widgets.Button checkBox,
                                 SimulatorCreatorDisplayer displayer)
Creates a new CheckBoxSelectionListener which describes a check box selection behavior which consists of enabling and disabling the simulator supported actions

Parameters:
checkBox - the check box this instances describes a behavior for
displayer - the SimulatorCreatorDisplayer the check box belongs to
Method Detail

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener
See Also:
SelectionListener.widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)

getSimulatorCreatorDisplayer

protected SimulatorCreatorDisplayer getSimulatorCreatorDisplayer()

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Sets the check box value as the one depending on the specific class

Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener
Parameters:
e - the event which triggers the value check box setting

setValue

protected abstract void setValue(boolean value)