/** * Create error message command. * * @return the remote message command */ protected RemoteMessageCommand createErrorMessageCommand() { RemoteMessageCommand errorMessageCommand = new RemoteMessageCommand(); errorMessageCommand.setTitle(getTranslation("error", getLocale())); errorMessageCommand.setTitleIcon(getIconFactory().getErrorIcon(getIconFactory().getTinyIconSize())); errorMessageCommand.setMessageIcon(getIconFactory().getErrorIcon(getIconFactory().getLargeIconSize())); return errorMessageCommand; }
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; }
/** * {@inheritDoc} */ @Override public void popupInfo(RComponent sourceComponent, String title, String iconImageUrl, String message) { RemoteMessageCommand messageCommand = new RemoteMessageCommand(); messageCommand.setTitle(title); messageCommand.setMessage(message); messageCommand.setTitleIcon(getIconFactory().getInfoIcon(getIconFactory().getTinyIconSize())); if (iconImageUrl != null) { messageCommand.setMessageIcon(getIconFactory().getIcon(iconImageUrl, getIconFactory().getLargeIconSize())); } else { messageCommand.setMessageIcon(getIconFactory().getInfoIcon(getIconFactory().getLargeIconSize())); } registerCommand(messageCommand); }