01: /**
02: * Miroslav Popov, Sep 26, 2005
03: * miroslav.popov@gmail.com
04: */package org.enhydra.jawe.base.controller.actions.defaultactions;
05:
06: import java.awt.event.ActionEvent;
07:
08: import org.enhydra.jawe.ActionBase;
09: import org.enhydra.jawe.JaWEComponent;
10: import org.enhydra.jawe.base.controller.JaWEController;
11:
12: /**
13: * @author Miroslav Popov
14: *
15: */
16: public class New extends ActionBase {
17:
18: public New(JaWEComponent jawecomponent) {
19: super (jawecomponent);
20: }
21:
22: public void enableDisableAction() {
23: JaWEController jc = (JaWEController) jawecomponent;
24:
25: if (jc.getSelectionManager().canInsertNew())
26: setEnabled(true);
27: else
28: setEnabled(false);
29: }
30:
31: public void actionPerformed(ActionEvent e) {
32: }
33: }
|