01: /*
02: *
03: * (c) Copyright 2004 - 2007 osbl development team.
04: *
05: * This file is part of the osbl (http://osbl.wilken.de).
06: *
07: * the osbl is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU General Public License
09: * as published by the Free Software Foundation; either version 2.1
10: * of the License, or (at your option) any later version.
11: *
12: * Please see COPYING for the complete licence.
13: */
14: package org.osbl.client.wings.action;
15:
16: import org.wings.*;
17: import org.osbl.client.wings.shell.Client;
18:
19: import javax.swing.*;
20: import java.awt.event.ActionEvent;
21: import java.util.Map;
22:
23: /**
24: * @author hengels
25: * @version $Revision: 1.3 $
26: */
27: public class NoAction extends NavigationAction {
28: public NoAction(String command, String name, SIcon icon) {
29: this (command, name);
30: putValue(Action.SMALL_ICON, icon);
31: }
32:
33: public NoAction(String command, String name) {
34: putValue(Action.ACTION_COMMAND_KEY, command);
35: putValue(Action.NAME, name);
36: putValue(Action.SHORT_DESCRIPTION, "not implemented");
37: }
38:
39: public void actionPerformed(ActionEvent e) {
40: Client.getInstance().show(
41: "main",
42: new SLabel(getValue(Action.NAME)
43: + " is not implemented"));
44: }
45:
46: public void navigate(Object object) {
47: actionPerformed(new ActionEvent(this , -1, toString()));
48: }
49:
50: public void navigate(Map<String, String> query) {
51: actionPerformed(new ActionEvent(this , -1, toString()));
52: }
53: }
|