org.apache.fop.viewer
Class Command

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.apache.fop.viewer.Command
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class Command
extends AbstractAction

Klasse f?r UI-Kommandos. Die Kommandos k?nnen in das Men?system oder in eine Toolbar eingef?gt werden.
Commands unterst?tzen mehrsprachigkeit.
Durch ?berschreiben der Methode doit kann die Klasse customisiert werden. ?ber die Methode undoit kann Undo-Funktionalit?t unterst?tzt werden.

Version:
1.0 18.03.99
Author:
Juergen.Verwohlt@jcatalog.com
See Also:
Serialized Form

Field Summary
static String IMAGE_DIR
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
Command(String name)
           
Command(String name, ImageIcon anIcon)
           
Command(String name, String iconName)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void doit()
           
 void undoit()
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE_DIR

public static String IMAGE_DIR
Constructor Detail

Command

public Command(String name)

Command

public Command(String name,
               ImageIcon anIcon)

Command

public Command(String name,
               String iconName)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

doit

public void doit()

undoit

public void undoit()


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.