JUICe

com.lafros.juice.cmds
Interface Exe

All Known Subinterfaces:
Exe.Tog

public interface Exe

implemented by classes which execute commands (ICmds).

Version:
$Id: Exe.java 2754 2008-02-09 10:48:02Z rob $
Author:
Rob Dickens
See Also:
Exes

Nested Class Summary
static interface Exe.Tog
          implemented by classes which execute pairs of commands (ICmds) representing toggles.
 
Method Summary
 boolean executeCmd()
          executes the associated ICmd, provided isEnabled() (otherwise does nothing).
 boolean executeCmd(ActionEvent e)
          as above, but provides an ICmd.IActionDependent with access to the java.awt.event.ActionEvent.
 Action getAction()
          returns the corresponding Action.
 boolean isEnabled()
          property controlling the behaviour of executeCmd(), and affecting any triggers which have been added.
 void setEnabled(boolean b)
          sets this property.
 

Method Detail

executeCmd

boolean executeCmd()
executes the associated ICmd, provided isEnabled() (otherwise does nothing).

Returns:
where the associated ICmd implements ICmd.IDisj, whether or not ICmd.execute() was called; otherwise, whether or not it returned

executeCmd

boolean executeCmd(ActionEvent e)
as above, but provides an ICmd.IActionDependent with access to the java.awt.event.ActionEvent.


isEnabled

boolean isEnabled()
property controlling the behaviour of executeCmd(), and affecting any triggers which have been added.


setEnabled

void setEnabled(boolean b)
sets this property.


getAction

Action getAction()
returns the corresponding Action.


JUICe

Copyright © 2001-2008 Latterfrosken Software Development Limited. All Rights Reserved.