jbcl.control Package
java.lang.Object +----com.borland.jbcl.control.ButtonDescriptor
Constructors Properties Methods
Implements Serializable
Stores the command
, label
, id
, and closeDialog
properties for a button. Together, these define the attributes for a button that is used in a ButtonDialog
or a class that extends ButtonDialog
.
public ButtonDescriptor(String command, String label, int id, boolean closeDialog)Creates a descriptor that contains the attributes for a button.
Parameters:
command
ButtonDialog
has several predefined commands: APPLY_COMMAND, CANCEL_COMMAND, DETAILS_COMMAND, DONE_COMMAND, HELP_COMMAND, NEXT_COMMAND, NONE_COMMAND, NO_COMMAND, OK_COMMAND, PREVIOUS_COMMAND, and YES_COMMAND.
label
id
ButtonDialog
has several predefined IDs: OK, YES, NO, CANCEL, DONE, HELP, APPLY, NEXT PREVIOUS, DETAILS, OK_CANCEL, YES_NO, YES_NO_CANCEL, OK_CANCEL_APPLY, APPLY_DONE, and ALL.
closeDialog
public int getID()Read-only property that returns the
id
, the int that identifies this
button, of this button descriptor. ButtonDialog
has several predefined IDs: OK, YES,
NO, CANCEL, DONE, HELP, APPLY, NEXT PREVIOUS, DETAILS, OK_CANCEL, YES_NO, YES_NO_CANCEL,
OK_CANCEL_APPLY, APPLY_DONE, and ALL.