/** * Constructs a new <code>ULCExtendedButton</code> instance. * * @param icon * the button icon */ public ULCExtendedButton(ULCIcon icon) { super(icon); setBorder(null); }
/** * 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) { optionButton.setIcon(iconFactory .getOkYesIcon(IIconFactory.SMALL_ICON_SIZE)); optionButton.addActionListener(new IActionListener() { } else { if (option == ConfirmationCallback.NO) { optionButton.setIcon(iconFactory .getNoIcon(IIconFactory.SMALL_ICON_SIZE)); } else if (option == ConfirmationCallback.CANCEL) { optionButton.setIcon(iconFactory .getCancelIcon(IIconFactory.SMALL_ICON_SIZE)); optionButton.addActionListener(new IActionListener() {
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( "cancel", getLocale(context))); backButton.addActionListener(new IActionListener() { nextButton.addActionListener(new IActionListener() { finishButton.addActionListener(new IActionListener() { cancelButton.addActionListener(new IActionListener() {
backButton.setEnabled(true); } else { backButton.setEnabled(false); backButton.setText(translationProvider.getTranslation(wizardStep .getPreviousLabelKey(), locale)); } else { backButton.setText(translationProvider.getTranslation( IWizardStepDescriptor.DEFAULT_PREVIOUS_KEY, locale)); nextButton.setEnabled(true); } else { nextButton.setEnabled(false); nextButton.setText(translationProvider.getTranslation(wizardStep .getNextLabelKey(), locale)); } else { nextButton.setText(translationProvider.getTranslation( IWizardStepDescriptor.DEFAULT_NEXT_KEY, locale)); finishButton.setEnabled(true); } else { finishButton.setEnabled(false);
ULCExtendedButton actionButton = new ULCExtendedButton(); actionButton.setAction(getActionFactory(context).createAction(action, actionHandler, mainView, getLocale(context))); buttonBox.add(actionButton);
final int optionIndex = i; ULCExtendedButton optionButton = new ULCExtendedButton(); optionButton.setText(cc.getOptions()[i]); optionButton.addActionListener(new IActionListener() {
/** * Constructs a new <code>ULCExtendedButton</code> instance. */ public ULCExtendedButton() { super(); setBorder(null); }
/** * Constructs a new <code>ULCExtendedButton</code> instance. */ public ULCExtendedButton() { super(); setBorder(null); }
/** * Constructs a new <code>ULCExtendedButton</code> instance. * * @param icon * the button icon */ public ULCExtendedButton(ULCIcon icon) { super(icon); setBorder(null); }