/** * Add an action id to the action list. This action will be invoked * when this composite action is invoked. */ @SuppressWarnings("unchecked") public void addAction(String id) { List<String> list = (List<String>) getValue(LIST_IDS); if (list == null) { list = new ArrayList<String>(); putValue(LIST_IDS, list); } list.add(id); }
/** * Callback for composite actions. This method will redispatch the * ActionEvent to all the actions held in the list. */ public void actionPerformed(ActionEvent evt) { ActionManager manager = ActionManager.getInstance(); Iterator<String> iter = getActionIDs().iterator(); while (iter.hasNext()) { String id = iter.next(); Action action = manager.getAction(id); if (action != null) { action.actionPerformed(evt); } } }
public static CompositeAction createCompositeAction(String id, String name, String mnemonic, boolean toggle, String group) { return (CompositeAction)configureAction(new CompositeAction(name, id), mnemonic, toggle, group); }
/** * Returns a list of action ids which indicates that this is a composite * action. * @return a valid list of action ids or null */ @SuppressWarnings("unchecked") public List<String> getActionIDs() { return (List<String>) getValue(LIST_IDS); }
/** * Callback for composite actions. This method will redispatch the * ActionEvent to all the actions held in the list. */ @Override public void actionPerformed(ActionEvent evt) { ActionManager manager = ActionManager.getInstance(); Iterator<String> iter = getActionIDs().iterator(); while (iter.hasNext()) { String id = iter.next(); Action action = manager.getAction(id); if (action != null) { action.actionPerformed(evt); } } }
public static CompositeAction createCompositeAction(String id, String name, String mnemonic, boolean toggle, String group) { return (CompositeAction)configureAction(new CompositeAction(name, id), mnemonic, toggle, group); }
/** * Returns a list of action ids which indicates that this is a composite * action. * @return a valid list of action ids or null */ @SuppressWarnings("unchecked") public List<String> getActionIDs() { return (List<String>) getValue(LIST_IDS); }
/** * Add an action id to the action list. This action will be invoked * when this composite action is invoked. */ @SuppressWarnings("unchecked") public void addAction(String id) { List<String> list = (List<String>) getValue(LIST_IDS); if (list == null) { list = new ArrayList<String>(); putValue(LIST_IDS, list); } list.add(id); }
/** * Callback for composite actions. This method will redispatch the * ActionEvent to all the actions held in the list. */ @Override public void actionPerformed(ActionEvent evt) { ActionManager manager = ActionManager.getInstance(); Iterator<String> iter = getActionIDs().iterator(); while (iter.hasNext()) { String id = iter.next(); Action action = manager.getAction(id); if (action != null) { action.actionPerformed(evt); } } }
public static CompositeAction createCompositeAction(String id, String name, String mnemonic, boolean toggle, String group) { return (CompositeAction)configureAction(new CompositeAction(name, id), mnemonic, toggle, group); }
/** * Returns a list of action ids which indicates that this is a composite * action. * @return a valid list of action ids or null */ @SuppressWarnings("unchecked") public List<String> getActionIDs() { return (List<String>) getValue(LIST_IDS); }
/** * Add an action id to the action list. This action will be invoked * when this composite action is invoked. */ @SuppressWarnings("unchecked") public void addAction(String id) { List<String> list = (List<String>) getValue(LIST_IDS); if (list == null) { list = new ArrayList<String>(); putValue(LIST_IDS, list); } list.add(id); }
/** * Callback for composite actions. This method will redispatch the * ActionEvent to all the actions held in the list. */ @Override public void actionPerformed(ActionEvent evt) { ActionManager manager = ActionManager.getInstance(); Iterator<String> iter = getActionIDs().iterator(); while (iter.hasNext()) { String id = iter.next(); Action action = manager.getAction(id); if (action != null) { action.actionPerformed(evt); } } }
public static CompositeAction createCompositeAction(String id, String name, String mnemonic, boolean toggle, String group) { return (CompositeAction)configureAction(new CompositeAction(name, id), mnemonic, toggle, group); }
/** * Returns a list of action ids which indicates that this is a composite * action. * @return a valid list of action ids or null */ @SuppressWarnings("unchecked") public List<String> getActionIDs() { return (List<String>) getValue(LIST_IDS); }
/** * Add an action id to the action list. This action will be invoked * when this composite action is invoked. */ @SuppressWarnings("unchecked") public void addAction(String id) { List<String> list = (List<String>) getValue(LIST_IDS); if (list == null) { list = new ArrayList<String>(); putValue(LIST_IDS, list); } list.add(id); }
/** * Callback for toggle actions. */ public void itemStateChanged(ItemEvent evt) { ActionManager manager = ActionManager.getInstance(); Iterator<String> iter = getActionIDs().iterator(); while (iter.hasNext()) { String id = iter.next(); Action action = manager.getAction(id); if (action != null && action instanceof AbstractActionExt) { ((AbstractActionExt)action).itemStateChanged(evt); } } } }
/** * Callback for toggle actions. */ @Override public void itemStateChanged(ItemEvent evt) { ActionManager manager = ActionManager.getInstance(); Iterator<String> iter = getActionIDs().iterator(); while (iter.hasNext()) { String id = iter.next(); Action action = manager.getAction(id); if (action != null && action instanceof AbstractActionExt) { ((AbstractActionExt)action).itemStateChanged(evt); } } } }
/** * Callback for toggle actions. */ @Override public void itemStateChanged(ItemEvent evt) { ActionManager manager = ActionManager.getInstance(); Iterator<String> iter = getActionIDs().iterator(); while (iter.hasNext()) { String id = iter.next(); Action action = manager.getAction(id); if (action != null && action instanceof AbstractActionExt) { ((AbstractActionExt)action).itemStateChanged(evt); } } } }
/** * Callback for toggle actions. */ @Override public void itemStateChanged(ItemEvent evt) { ActionManager manager = ActionManager.getInstance(); Iterator<String> iter = getActionIDs().iterator(); while (iter.hasNext()) { String id = iter.next(); Action action = manager.getAction(id); if (action != null && action instanceof AbstractActionExt) { ((AbstractActionExt)action).itemStateChanged(evt); } } } }