/** * Convenience method for returning the ServerAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public ServerAction getServerAction(Object id) { Action a = getAction(id); if (a instanceof ServerAction) { return (ServerAction)a; } return null; }
/** * Convenience method for returning the CompositeAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public CompositeAction getCompositeAction(Object id) { Action a = getAction(id); if (a instanceof CompositeAction) { return (CompositeAction)a; } return null; }
/** * Convenience method for returning the TargetableAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public TargetableAction getTargetableAction(Object id) { Action a = getAction(id); if (a instanceof TargetableAction) { return (TargetableAction)a; } return null; }
/** * Convenience method for returning the CompositeAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public CompositeAction getCompositeAction(Object id) { Action a = getAction(id); if (a instanceof CompositeAction) { return (CompositeAction)a; } return null; }
/** * Convenience method for returning the TargetableAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public TargetableAction getTargetableAction(Object id) { Action a = getAction(id); if (a instanceof TargetableAction) { return (TargetableAction)a; } return null; }
/** * Convenience method for returning the CompositeAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public CompositeAction getCompositeAction(Object id) { Action a = getAction(id); if (a instanceof CompositeAction) { return (CompositeAction)a; } return null; }
/** * Convenience method for returning the TargetableAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public TargetableAction getTargetableAction(Object id) { Action a = getAction(id); if (a instanceof TargetableAction) { return (TargetableAction)a; } return null; }
/** * Convenience method for returning the BoundAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public BoundAction getBoundAction(Object id) { Action a = getAction(id); if (a instanceof BoundAction) { return (BoundAction)a; } return null; }
/** * Convenience method for returning the BoundAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public BoundAction getBoundAction(Object id) { Action a = getAction(id); if (a instanceof BoundAction) { return (BoundAction)a; } return null; }
/** * Convenience method for returning the ServerAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public ServerAction getServerAction(Object id) { Action a = getAction(id); if (a instanceof ServerAction) { return (ServerAction)a; } return null; }
/** * Convenience method for returning the BoundAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public BoundAction getBoundAction(Object id) { Action a = getAction(id); if (a instanceof BoundAction) { return (BoundAction)a; } return null; }
/** * Convenience method for returning the ServerAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public ServerAction getServerAction(Object id) { Action a = getAction(id); if (a instanceof ServerAction) { return (ServerAction)a; } return null; }
/** * Convenience method for returning the ServerAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public ServerAction getServerAction(Object id) { Action a = getAction(id); if (a instanceof ServerAction) { return (ServerAction)a; } return null; }
/** * Convenience method for returning the TargetableAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public TargetableAction getTargetableAction(Object id) { Action a = getAction(id); if (a instanceof TargetableAction) { return (TargetableAction)a; } return null; }
/** * Convenience method for returning the BoundAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public BoundAction getBoundAction(Object id) { Action a = getAction(id); if (a instanceof BoundAction) { return (BoundAction)a; } return null; }
/** * Convenience method for returning the CompositeAction * * @param id value of the action id * @return the TargetableAction referenced by the named id or null */ public CompositeAction getCompositeAction(Object id) { Action a = getAction(id); if (a instanceof CompositeAction) { return (CompositeAction)a; } return null; }
/** * Convenience method to get the action from an ActionManager. */ private Action getAction(Object id) { Action action = getActionManager().getAction(id); if (action == null) { throw new RuntimeException("ERROR: No Action for " + id); } return action; }
/** * Determines if the Action corresponding to the action id is a state changed * action (toggle, group type action). * * @param id value of the action id * @return true if the action id represents a multi state action; false otherwise */ public boolean isStateAction(Object id) { Action action = getAction(id); if (action != null && action instanceof AbstractActionExt) { return ((AbstractActionExt)action).isStateAction(); } return false; }
/** * Determines if the Action corresponding to the action id is a state changed * action (toggle, group type action). * * @param id value of the action id * @return true if the action id represents a multi state action; false otherwise */ public boolean isStateAction(Object id) { Action action = getAction(id); if (action != null && action instanceof AbstractActionExt) { return ((AbstractActionExt)action).isStateAction(); } return false; }
/** * Determines if the Action corresponding to the action id is a state changed * action (toggle, group type action). * * @param id value of the action id * @return true if the action id represents a multi state action; false otherwise */ public boolean isStateAction(Object id) { Action action = getAction(id); if (action != null && action instanceof AbstractActionExt) { return ((AbstractActionExt)action).isStateAction(); } return false; }