01: /*
02: * Copyright 2001-2006 C:1 Financial Services GmbH
03: *
04: * This software is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License Version 2.1, as published by the Free Software Foundation.
07: *
08: * This software is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
16: */
17:
18: package de.finix.contelligent.client.util;
19:
20: import javax.swing.Action;
21:
22: public class ActionBundle {
23:
24: public final static String CONTELLIGENT_ACTIONS = "contelligent-actions";
25:
26: public final static String MODULE_ACTIONS = "module-actions";
27:
28: public final static String WINDOW_ACTIONS = "window-actions";
29:
30: public final static String TRANSACTION_ACTIONS = "transaction-actions";
31:
32: public final static String EDITOR_ACTIONS = "editor-actions";
33:
34: public final static String NAVIGATOR_ACTIONS = "navigator-actions";
35:
36: public final static String BOOKMARK_ACTIONS = "bookmark-actions";
37:
38: public ActionBundle(String name, Action[] actions) {
39: this .name = name;
40: this .actions = actions;
41: }
42:
43: public boolean equals(Object o) {
44: return (o instanceof ActionBundle && ((ActionBundle) o)
45: .getName().equals(name));
46: }
47:
48: public int hashCode() {
49: return -1;
50: }
51:
52: public Action[] getActions() {
53: return actions;
54: }
55:
56: public String getName() {
57: return name;
58: }
59:
60: private String name;
61:
62: private Action[] actions;
63: }
|