Changeset 4416


Ignore:
Timestamp:
2003-05-30T12:09:17+12:00 (21 years ago)
Author:
kjdon
Message:

the modal dialog now is one of our special ModalDialogs which only block the parent, enabling the use of help files while the dialog is open. A SimpleMenuBar with help on it has been added to the dialog. - Note there is still a bug in this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/custom/CustomAZList.java

    r4363 r4416  
    5555import org.greenstone.gatherer.valuetree.GValueModel;
    5656import org.greenstone.gatherer.valuetree.GValueNode;
     57import org.greenstone.gatherer.gui.SimpleMenuBar;
     58import org.greenstone.gatherer.gui.ModalDialog;
    5759import org.w3c.dom.*;
    5860/** Provides the functionality for a custom AZList, including a GUI for configuration of this classifier.
     
    9799    final static private Dimension LABEL_SIZE = new Dimension(200,25);
    98100    /** The size of the controls for this pseudo-classifier. */
    99     final static private Dimension SIZE = new Dimension(550,400);
     101    final static private Dimension SIZE = new Dimension(550,425);
    100102    /** An array of values for the separators. */
    101103    final static private String VALUES[] = {"Numbers", "A", "B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
     
    155157    if(controls == null) {
    156158        Vector elements = gatherer.c_man.getCollection().msm.getAssignedElements();
    157                 // Creation
    158         controls = new JDialog();
     159        // Creation
     160        controls = new ModalDialog(gatherer.g_man);
    159161        controls.setModal(true);
    160162        controls.setSize(SIZE);
    161163        controls.setTitle(get("Title_JDialog"));
     164        controls.setJMenuBar(new SimpleMenuBar("7.7"));
    162165        JPanel content_pane = (JPanel) controls.getContentPane();
    163166        JPanel upper_pane = new JPanel();
     
    253256        screen_size = null;
    254257        if(show) {
    255         controls.show();
     258        controls.setVisible(true);
    256259        // Create the new metadata, hierarchy etc.
    257260        if(process) {
     
    268271    else {
    269272        process = false;
    270         controls.show();
     273        controls.setVisible(true);
    271274        if(process) {
    272275        process((ElementWrapper)metadata.getSelectedItem(), getPreview(false));
Note: See TracChangeset for help on using the changeset viewer.