01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin.common;
05:
06: import java.awt.event.ActionEvent;
07:
08: import javax.swing.AbstractAction;
09:
10: public abstract class AbstractResolutionAction extends AbstractAction {
11: protected boolean fSelected;
12: protected boolean fEnabled;
13:
14: public AbstractResolutionAction() {
15: fEnabled = true;
16: }
17:
18: public abstract void showControl(Object parent);
19:
20: public abstract String getText();
21:
22: public void actionPerformed(ActionEvent ae) {/**/
23: }
24:
25: public void apply() {/**/
26: }
27:
28: public void setSelected(boolean selected) {
29: fSelected = selected;
30: }
31:
32: public boolean isSelected() {
33: return fSelected;
34: }
35:
36: public void setEnabled(boolean enabled) {
37: fEnabled = enabled;
38: }
39:
40: public boolean isEnabled() {
41: return fEnabled;
42: }
43:
44: public String toString() {
45: return getText();
46: }
47: }
|