SORTIE Java Interface
1
|
A panel containing OK, Cancel, and Help buttons. More...
Public Member Functions | |
OKCancelButtonPanel (ActionListener oListener, HelpBroker oHelpBroker, String sHelpID) | |
Constructor. More... | |
OKCancelButtonPanel (ActionListener oListener, HelpBroker oHelpBroker, String sHelpID, boolean bUseCancel) | |
Constructor. More... | |
A panel containing OK, Cancel, and Help buttons.
This allows a reusable panel across our dialogs. The buttons are placed at the right of the panel. The panel is bordered along the top by a black line. The buttons are set to have the action commands "OK" and "Cancel" and are registered with the ActionListener passed in the constructor. The help button gets an ID passed to it and is then registered with the help system.
Copyright: Copyright (c) Charles D. Canham 2003
Company: Cary Institute of Ecosystem Studies
Edit history:
---------------—
April 28, 2004: Submitted in beta version (LEM)
July 21, 2004: Added option to not put in a Cancel button.
January 31, 2007: Made it so the help button was not added if the help broker was null. (LEM)
February 4, 2008: Updated to conform to Java 6 compliance (LEM)
sortie.gui.components.OKCancelButtonPanel.OKCancelButtonPanel | ( | ActionListener | oListener, |
HelpBroker | oHelpBroker, | ||
String | sHelpID | ||
) |
Constructor.
Creates the panel and registers the action listener with the buttons.
oListener | ActionListener to register. |
sHelpID | Help topic ID for the help button. |
oHelpBroker | The help broker to register the help button with. |
sortie.gui.components.OKCancelButtonPanel.OKCancelButtonPanel | ( | ActionListener | oListener, |
HelpBroker | oHelpBroker, | ||
String | sHelpID, | ||
boolean | bUseCancel | ||
) |
Constructor.
Creates the panel and registers the action listener with the buttons.
oListener | ActionListener to register. |
sHelpID | Help topic ID for the help button. |
oHelpBroker | The help broker to register the help button with. |
bUseCancel | Whether or not to include a Cancel button. |