home *** CD-ROM | disk | FTP | other *** search
- package javax.swing;
-
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.beans.PropertyChangeListener;
-
- final class JComponent$ActionStandin implements Action {
- private final ActionListener actionListener;
- private final String command;
- private final Action action;
- // $FF: synthetic field
- private final JComponent this$0;
-
- JComponent$ActionStandin(JComponent var1, ActionListener var2, String var3) {
- this.this$0 = var1;
- this.actionListener = var2;
- if (var2 instanceof Action) {
- this.action = (Action)var2;
- } else {
- this.action = null;
- }
-
- this.command = var3;
- }
-
- public Object getValue(String var1) {
- if (var1 != null) {
- if (var1.equals("ActionCommandKey")) {
- return this.command;
- }
-
- if (this.action != null) {
- return this.action.getValue(var1);
- }
-
- if (var1.equals("Name")) {
- return "ActionStandin";
- }
- }
-
- return null;
- }
-
- public boolean isEnabled() {
- return this.action == null ? true : this.action.isEnabled();
- }
-
- public void actionPerformed(ActionEvent var1) {
- this.actionListener.actionPerformed(var1);
- }
-
- public void putValue(String var1, Object var2) {
- }
-
- public void setEnabled(boolean var1) {
- }
-
- public void addPropertyChangeListener(PropertyChangeListener var1) {
- }
-
- public void removePropertyChangeListener(PropertyChangeListener var1) {
- }
-
- // $FF: synthetic method
- static ActionListener access$000(JComponent$ActionStandin var0) {
- return var0.actionListener;
- }
- }
-