KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > discRack > actions > ActionBase


1 package discRack.actions;
2
3 import discRack.*;
4
5 import javax.swing.AbstractAction JavaDoc;
6 import javax.swing.Action JavaDoc;
7 import javax.swing.Icon JavaDoc;
8
9 /**
10 * The base class for discRack actions.
11  *
12  * @author Sasa Bojanic
13  * @version 1.0
14 */

15 public abstract class ActionBase
16    extends AbstractAction JavaDoc {
17
18    /**
19     * A reference to the editor class.
20     */

21    protected DiscRack discRack;
22
23    /**
24     * The Abstract action uses unqualified class name as action name.
25     *
26     * @param editor The reference to the editor for this action
27     */

28    public ActionBase(DiscRack discRack) {
29       this.discRack = discRack;
30       putValue(Action.NAME,Utils.getUnqualifiedClassName(getClass()));
31    }
32
33 }
34
Popular Tags