Class that implements some common behavior for Konga dialogs.
The KongaDialog can generate a JPanel containing the suitable buttons that should appear in the dialog. There are 6 different button modes, with self-describing names:
OK_ONLY
OK_CANCEL
OK_CANCEL_APPLY
YES_NO
YES_NO_CANCEL
CLOSE_ONLY
Each button has a corresponding onXX() function that will be invoked when the user presses the button. The KongaDialog class provides a default implementation - that calls the protected method
onDialogClose()
which simply closes the dialog -- for each such button function. A derived class that chooses to use any of these preconfigured button modes is responsible for overriding the corresponding button method, and the
onDialogClose()
method if any different behavior is wanted.
Each of the preconfigured buttons can also be created individually by a subclass by calling the corresponding createXXButton() function, method.
@author Torgil Zethson