Interface IButtonHandler
public interface IButtonHandler
Handler for custom button in
WizardBase. If users want to add
more buttons in WizardBase, need to implement this interface and
add it in by invoking WizardBase.addCustomButton().-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.ButtonReturns the button control.org.eclipse.swt.graphics.ImagegetIcon()Returns button icon.intgetId()Returns ID for the custom button.getLabel()Returns Label for the custom button.Returns tool-tip text of this button.voidrun()Runs the operation user defined when pressing the button.voidsetButton(org.eclipse.swt.widgets.Button button) Restores the button control for later use.
-
Method Details
-
getId
int getId()Returns ID for the custom button. ID must be unique inWizardBase.- Returns:
- ID for the button
- See Also:
-
IDialogConstants
-
getLabel
String getLabel()Returns Label for the custom button.- Returns:
- Label for the custom button.
-
getTooltip
String getTooltip()Returns tool-tip text of this button.- Returns:
- tool-tip text of this button.
-
getIcon
org.eclipse.swt.graphics.Image getIcon()Returns button icon.- Returns:
- button icon.
-
setButton
void setButton(org.eclipse.swt.widgets.Button button) Restores the button control for later use. This method will be invoked byWizardBase- Parameters:
button- button control
-
getButton
org.eclipse.swt.widgets.Button getButton()Returns the button control.- Returns:
- button control
-
run
void run()Runs the operation user defined when pressing the button.
-