@Override protected boolean hasOwnAction(String id) { ActionsHolder actionsHolder = (ActionsHolder) component; return actionsHolder.getAction(id) != null; }
@Nullable @Override default Object getSubPart(String name) { return getAction(name); } }
/** * @return an action by its ID * @throws java.lang.IllegalArgumentException if not found */ @Nonnull default Action getActionNN(String id) { Action action = getAction(id); if (action == null) { throw new IllegalStateException("Unable to find action with id " + id); } return action; }
if (component != null) { if (component instanceof ActionsHolder) { return ((ActionsHolder) component).getAction(id); } else { throw new IllegalArgumentException(
Action action = ((ActionsHolder) holder).getAction(id); if (action == null) { throw new GuiDevelopmentException(String.format(