Lines Matching refs:command

78     abstract void addMenuItem(String label, String command, String currentSelection);
80 abstract void addMenuItem(Object targetMenu, String label, String command,
86 String command = locator.getActionCommandString();
107 command = locator.deriveLocator(locales[0]).getActionCommandString();
109 addMenuItem(label, command, currentSelection);
123 * Returns whether command indicates the same input method as currentSelection,
124 * taking into account that command may not specify a locale where currentSelection does.
126 static boolean isSelected(String command, String currentSelection) {
127 if (command == null || currentSelection == null) {
130 if (command.equals(currentSelection)) {
133 // currentSelection may indicate a locale where command does not
135 if (index != -1 && currentSelection.substring(0, index).equals(command)) {
201 void addMenuItem(String label, String command, String currentSelection) {
202 addMenuItem(delegate, label, command, currentSelection);
205 void addMenuItem(Object targetMenu, String label, String command, String currentSelection) {
207 if (isSelected(command, currentSelection)) {
212 menuItem.setActionCommand(command);
214 menuItem.setEnabled(command != null);
259 void addMenuItem(String label, String command, String currentSelection) {
260 addMenuItem(delegate, label, command, currentSelection);
263 void addMenuItem(Object targetMenu, String label, String command, String currentSelection) {
265 if (isSelected(command, currentSelection)) {
270 menuItem.setActionCommand(command);
272 menuItem.setEnabled(command != null);