Interface IButtonHandler
-
public interface IButtonHandlerHandler for custom button inWizardBase. If users want to add more buttons inWizardBase, need to implement this interface and add it in by invokingWizardBase.addCustomButton().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.swt.widgets.ButtongetButton()Returns the button control.org.eclipse.swt.graphics.ImagegetIcon()Returns button icon.intgetId()Returns ID for the custom button.java.lang.StringgetLabel()Returns Label for the custom button.java.lang.StringgetTooltip()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 Detail
-
getId
int getId()
Returns ID for the custom button. ID must be unique inWizardBase.- Returns:
- ID for the button
- See Also:
IDialogConstants
-
getLabel
java.lang.String getLabel()
Returns Label for the custom button.- Returns:
- Label for the custom button.
-
getTooltip
java.lang.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.
-
-