borland Packages  Class Hierarchy  jbcl.control Package  Index 

ButtonDescriptor class

java.lang.Object
   +----borland.jbcl.control.ButtonDescriptor

About the ButtonDescriptor class

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.


ButtonDescriptor constructors

ButtonDescriptor properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in java.lang.Object

ButtonDescriptor methods

Methods implemented in java.lang.Object


ButtonDescriptor constructors

ButtonDescriptor(java.lang.String, java.lang.String, int, boolean)

  public ButtonDescriptor(java.lang.String command, java.lang.String label, int id, boolean closeDialog)
Creates a descriptor that contains the attributes for a button.

Parameters:

command
The command the button responds to. 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
The label that appears on the button.
id
The int that identifies this button. 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
Determines whether this button closes the dialog box. If closeDialog is true, clicking the button closes the dialog box.

ButtonDescriptor properties

ID

 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.