Class CreationClassDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class CreationClassDialog extends Dialog
A Dialog which displays a list of classes that implement the FolderEntry interface. This dialog supports choosing a single entry from the list of classes.
    CreationClassDialog dialog = new CreationClassDialog( my_frame, true );
    dialog.show();
    if( !dialog.isCanceled() ) {
           createNewObject( dialog.getSelectedClass() );
        }
  


Supported API: true

Extendable: false
See Also:
  • Constructor Details

    • CreationClassDialog

      public CreationClassDialog(Frame parent, boolean modal)
      Constructor for CreationClassDialog.
      Parameters:
      parent - the owner of this dialog
      modal - if true, actions on the parent frame are blocked

      Supported API: true
    • CreationClassDialog

      public CreationClassDialog(Frame parent, String title, boolean modal)
      Constructor for CreationClassDialog.
      Parameters:
      parent - the owner of this dialog
      title - title of this dialog
      modal - if true, actions on the parent frame are blocked

      Supported API: true
  • Method Details

    • getSelectedClass

      public Class getSelectedClass()
      Method getSelectedClass returns the Class the user of this dialog has selected. The returned class will implement the FolderEntry interface.
      Returns:
      the Class selected by the user
      See Also:
    • isCanceled

      public boolean isCanceled()
      Method isCanceled returns a boolean indicating whether or not this dialog was canceled.
      Returns:
      if true, this dialog was canceled

      Supported API: true