org.eclipse.birt.core.ui.frameworks.taskwizard.interfaces
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
 Button getButton()
          Returns the button control.
 int getId()
          Returns ID for the custom button.
 java.lang.String getLabel()
          Returns Label for the custom button.
 void run()
          Runs the operation user defined when pressing the button.
 void setButton(Button button)
          Restores the button control for later use.
 

Method Detail

getId

int getId()
Returns ID for the custom button. ID must be unique in WizardBase.

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.

setButton

void setButton(Button button)
Restores the button control for later use. This method will be invoked by WizardBase

Parameters:
button - button control

getButton

Button getButton()
Returns the button control.

Returns:
button control

run

void run()
Runs the operation user defined when pressing the button.



Copyright © 2008 Actuate Corp. All rights reserved.