01 /*
02 * Copyright 2010-2013 the original author or authors.
03 *
04 * Licensed under the Apache License, Version 2.0 (the "License");
05 * you may not use this file except in compliance with the License.
06 * You may obtain a copy of the License at
07 *
08 * http://www.apache.org/licenses/LICENSE-2.0
09 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package griffon.core.controller;
18
19 import griffon.core.GriffonController;
20
21 /**
22 * @author Andres Almiray
23 * @since 1.1.0
24 */
25 public interface GriffonControllerAction {
26 String KEY_NAME = "name";
27 String KEY_SHORT_DESCRIPTION = "shortDescription";
28 String KEY_LONG_DESCRIPTION = "longDescription";
29 String KEY_SMALL_ICON = "smallIcon";
30 String KEY_LARGE_ICON = "largeIcon";
31 String KEY_ENABLED = "enabled";
32 String KEY_SELECTED = "selected";
33 String KEY_ACCELERATOR = "accelerator";
34 String KEY_MNEMONIC = "mnemonic";
35
36 String getName();
37
38 String getShortDescription();
39
40 String getLongDescription();
41
42 String getSmallIcon();
43
44 String getLargeIcon();
45
46 String getAccelerator();
47
48 String getMnemonic();
49
50 boolean isEnabled();
51
52 boolean isSelected();
53
54 GriffonController getController();
55
56 Object getToolkitAction();
57
58 void execute(Object... args);
59
60 void setAccelerator(String accelerator);
61
62 void setEnabled(boolean enabled);
63
64 void setLargeIcon(String largeIcon);
65
66 void setLongDescription(String longDescription);
67
68 void setMnemonic(String mnemonic);
69
70 void setName(String name);
71
72 void setSelected(boolean selected);
73
74 void setShortDescription(String shortDescription);
75
76 void setSmallIcon(String smallIcon);
77 }
|