/** * Gets the iconFactory. * * @return the iconFactory. */ protected IIconFactory<F> getIconFactory() { return viewFactory.getIconFactory(); }
/** * Gets the iconFactory. * * @return the iconFactory. */ protected IIconFactory<F> getIconFactory() { return viewFactory.getIconFactory(); }
/** * Gets the iconFactory. * * @param context * the action context. * @return the iconFactory. */ protected IIconFactory<F> getIconFactory(Map<String, Object> context) { return getViewFactory(context).getIconFactory(); }
/** * Gets the iconFactory. * * @param context * the action context. * @return the iconFactory. */ protected IIconFactory<F> getIconFactory(Map<String, Object> context) { return getViewFactory(context).getIconFactory(); }
for (IDisplayableAction action : actionList.getActions()) { JButton button = new JButton(getViewFactory().getActionFactory().createAction(action, getViewFactory().getIconFactory().getSmallIconSize(), this, loginView, getLocale())); buttonBox.add(button); if (i == 0) {
/** * Creates the exit action. * * @return the exit action. */ @Override public IDisplayableAction getExitAction() { if (exitAction == null) { ExitAction<E, F, G> action = new ExitAction<>(); action.setName("quit.name"); action.setDescription("quit.description"); action.setIconImageURL(getViewFactory().getIconFactory().getCancelIconImageURL()); exitAction = action; } return exitAction; }
protected RemoteMessageCommand createErrorMessageCommand() { IIconFactory<RIcon> iconFactory = getFrontendController().getViewFactory() .getIconFactory(); RemoteMessageCommand messageCommand = new RemoteMessageCommand(); messageCommand.setTitle(getFrontendController().getTranslation("error", getFrontendController().getLocale())); messageCommand.setTitleIcon(iconFactory.getErrorIcon(iconFactory .getTinyIconSize())); messageCommand.setMessageIcon(iconFactory.getErrorIcon(iconFactory .getLargeIconSize())); return messageCommand; }