csheets.ui.ctrl
Class ActionManager.ActionEnabler

java.lang.Object
  extended by csheets.ui.ctrl.ActionManager.ActionEnabler
All Implemented Interfaces:
SpreadsheetAppListener, EditListener, EventListener
Enclosing class:
ActionManager

public class ActionManager.ActionEnabler
extends Object
implements SpreadsheetAppListener, EditListener

A workbook listener that sets the enabled state of actoins depending on whether the current workbook has been modified and/or is stored in a file.


Constructor Summary
ActionManager.ActionEnabler()
          Creates a new action enabler.
 
Method Summary
 void workbookCreated(SpreadsheetAppEvent event)
          Invoked by the spreadsheet application to indicate that a new workbook has been created.
 void workbookLoaded(SpreadsheetAppEvent event)
          Invoked by the spreadsheet application to indicate that a workbook has been loaded from the given file.
 void workbookModified(EditEvent event)
          Invoked when a workbook is modified.
 void workbookSaved(SpreadsheetAppEvent event)
          Invoked by the spreadsheet application to indicate that a workbook was saved to the given file.
 void workbookUnloaded(SpreadsheetAppEvent event)
          Invoked by the spreadsheet application to indicate that a workbook has been unloaded (closed).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionManager.ActionEnabler

public ActionManager.ActionEnabler()
Creates a new action enabler.

Method Detail

workbookCreated

public void workbookCreated(SpreadsheetAppEvent event)
Description copied from interface: SpreadsheetAppListener
Invoked by the spreadsheet application to indicate that a new workbook has been created.

Specified by:
workbookCreated in interface SpreadsheetAppListener
Parameters:
event - the spreadsheet application event that occured

workbookLoaded

public void workbookLoaded(SpreadsheetAppEvent event)
Description copied from interface: SpreadsheetAppListener
Invoked by the spreadsheet application to indicate that a workbook has been loaded from the given file.

Specified by:
workbookLoaded in interface SpreadsheetAppListener
Parameters:
event - the spreadsheet application event that occured

workbookUnloaded

public void workbookUnloaded(SpreadsheetAppEvent event)
Description copied from interface: SpreadsheetAppListener
Invoked by the spreadsheet application to indicate that a workbook has been unloaded (closed).

Specified by:
workbookUnloaded in interface SpreadsheetAppListener
Parameters:
event - the spreadsheet application event that occured

workbookSaved

public void workbookSaved(SpreadsheetAppEvent event)
Description copied from interface: SpreadsheetAppListener
Invoked by the spreadsheet application to indicate that a workbook was saved to the given file.

Specified by:
workbookSaved in interface SpreadsheetAppListener
Parameters:
event - the spreadsheet application event that occured

workbookModified

public void workbookModified(EditEvent event)
Description copied from interface: EditListener
Invoked when a workbook is modified. param event the edit event that was fired

Specified by:
workbookModified in interface EditListener