| javax.swing.JPanel de.fho.jump.pirol.ui.panels.OkCancelButtonPanel
OkCancelButtonPanel | public class OkCancelButtonPanel extends JPanel (Code) | | This class is a JPanel with a "Cancel" and a "OK" button.
author: Carsten Schulze author: FH Osnabrück - University of Applied Sciences Osnabrück, author: Project: PIROL (2005), author: Subproject: Daten- und Wissensmanagement |
CANCEL_BUTTON_ACTION_COMMAND | final public static String CANCEL_BUTTON_ACTION_COMMAND(Code) | | The constant ActionCommand String for the cancel-button
|
OK_BUTTON_ACTION_COMMAND | final public static String OK_BUTTON_ACTION_COMMAND(Code) | | The constant ActionCommand String for the ok-button
|
OkCancelButtonPanel | public OkCancelButtonPanel()(Code) | | This is the default constructor
|
addActionListener | public void addActionListener(ActionListener listener)(Code) | | Adds the given ActionListener to both buttons.
Parameters: listener - the listener |
getCancelButton | public JButton getCancelButton()(Code) | | This method initializes cancelButton
javax.swing.JButton |
getOkButton | public JButton getOkButton()(Code) | | This method initializes okButton
javax.swing.JButton |
requestFocus | public void requestFocus()(Code) | | |
setOkButtonEnabled | public void setOkButtonEnabled(boolean enable)(Code) | | Enables/Disables the ok button. May be useful, if the user had to put in values
that may not be correct. You can disable the ok button in this case.
Parameters: enable - enables the ok button if true, else disables it |
|
|