org.apache.fop.render.awt.viewer
Class Command
AbstractAction
org.apache.fop.render.awt.viewer.Command
public class Command
extends AbstractAction
This class represents UI-commands, which can be used as menu or toolbar
items
.
When the Command
object receives action event, that object's
doit
method is invoked. doit
method by default
does nothing and the class customer have to override it to implement
any action handling logic.
Originally contributed by:
Juergen Verwohlt: Juergen.Verwohlt@jcatalog.com,
Rainer Steinkuhle: Rainer.Steinkuhle@jcatalog.com,
Stanislav Gorkhover: Stanislav.Gorkhover@jcatalog.com
Command(String name, String iconName) - Creates
Command object with a given name, the same
tooltip text and icon image if appropriate image file is found.
|
Command(String name, int mnemonic) - Creates
Command object with a given name and
sets the name as a tooltip text.
|
void | actionPerformed(ActionEvent e)
|
void | doit() - Action handler, have to be overrided by subclasses.
|
Command
public Command(String name,
String iconName)
Creates Command
object with a given name, the same
tooltip text and icon image if appropriate image file is found.
name
- name of the commandiconName
- name of the icon
Command
public Command(String name,
int mnemonic)
Creates Command
object with a given name and
sets the name as a tooltip text. No associated icon image.
name
- of the commandmnemonic
- A Key
actionPerformed
public void actionPerformed(ActionEvent e)
java.awt.event.ActionListener.actionPerformed(ActionEvent)
doit
public void doit()
Action handler, have to be overrided by subclasses.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.