/** * Creates a button. * * @return the created button. */ protected ULCButton createULCButton() { ULCButton ulcButton = new ULCExtendedButton(); return ulcButton; }
private ULCExtendedButton createOptionButton(final ULCDialog callbackDialog, final ConfirmationCallback cc, final int option, String text, final List<IActionListener> proceedActions) { ULCExtendedButton optionButton = new ULCExtendedButton(); optionButton.setText(text); if (option == ConfirmationCallback.YES || option == ConfirmationCallback.OK) {
final ULCExtendedButton backButton = new ULCExtendedButton(getIconFactory( context).getBackwardIcon(IIconFactory.SMALL_ICON_SIZE)); final ULCExtendedButton nextButton = new ULCExtendedButton(getIconFactory( context).getForwardIcon(IIconFactory.SMALL_ICON_SIZE)); final ULCExtendedButton finishButton = new ULCExtendedButton( getIconFactory(context).getIcon(finishAction.getIconImageURL(), IIconFactory.SMALL_ICON_SIZE)); finishButton.setText(finishAction.getI18nName( getTranslationProvider(context), getLocale(context))); ULCExtendedButton cancelButton = new ULCExtendedButton(getIconFactory( context).getCancelIcon(IIconFactory.SMALL_ICON_SIZE)); cancelButton.setText(getTranslationProvider(context).getTranslation(
final int optionIndex = i; ULCExtendedButton optionButton = new ULCExtendedButton(); optionButton.setText(cc.getOptions()[i]); optionButton.addActionListener(new IActionListener() {
ULCExtendedButton actionButton = new ULCExtendedButton(); actionButton.setAction(getActionFactory(context).createAction(action, actionHandler, mainView, getLocale(context)));