SORTIE Java Interface  1
Public Member Functions | List of all members
sortie.gui.components.OKCancelButtonPanel Class Reference

A panel containing OK, Cancel, and Help buttons. More...

Inheritance diagram for sortie.gui.components.OKCancelButtonPanel:

Public Member Functions

 OKCancelButtonPanel (ActionListener oListener, HelpBroker oHelpBroker, String sHelpID)
 Constructor. More...
 
 OKCancelButtonPanel (ActionListener oListener, HelpBroker oHelpBroker, String sHelpID, boolean bUseCancel)
 Constructor. More...
 

Detailed Description

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

Author
Lora E. Murphy
Version
1.0


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)

Constructor & Destructor Documentation

◆ OKCancelButtonPanel() [1/2]

sortie.gui.components.OKCancelButtonPanel.OKCancelButtonPanel ( ActionListener  oListener,
HelpBroker  oHelpBroker,
String  sHelpID 
)

Constructor.

Creates the panel and registers the action listener with the buttons.

Parameters
oListenerActionListener to register.
sHelpIDHelp topic ID for the help button.
oHelpBrokerThe help broker to register the help button with.

◆ OKCancelButtonPanel() [2/2]

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.

Parameters
oListenerActionListener to register.
sHelpIDHelp topic ID for the help button.
oHelpBrokerThe help broker to register the help button with.
bUseCancelWhether or not to include a Cancel button.

The documentation for this class was generated from the following file: