Changeset 7365


Ignore:
Timestamp:
2004-05-21T13:49:56+12:00 (20 years ago)
Author:
kjdon
Message:

removed the beta checkbox from the General desing panel

File:
1 edited

Legend:

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

    r7151 r7365  
    149149    private boolean has_been_warned = false;
    150150    private boolean ready = false;
    151     private CollectionMeta beta_collectionmeta;
     151    //private CollectionMeta beta_collectionmeta;
    152152    private CollectionMeta collection_extra_collectionmeta;
    153153    private CollectionMeta collection_name_collectionmeta;
     
    166166    private JButton browse_home_icon_button;
    167167    /** The checkbox controlling the state of the collection. */
    168     private JCheckBox beta_checkbox;
     168    //private JCheckBox beta_checkbox;
    169169    /** The checkbox controlling public access to the collection. */
    170170    private JCheckBox public_checkbox;
     
    189189        super();
    190190        // Retrieve some of the model elements, those we know aren't language dependant
    191         beta_collectionmeta = new CollectionMeta(CollectionDesignManager.collect_config.getBeta());
     191        //beta_collectionmeta = new CollectionMeta(CollectionDesignManager.collect_config.getBeta());
    192192        public_collectionmeta = new CollectionMeta(CollectionDesignManager.collect_config.getPublic());
    193193
     
    252252        public_checkbox = new JCheckBox("", public_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR));
    253253        Dictionary.registerText(public_checkbox, "CDM.General.Access");
    254         beta_checkbox = new JCheckBox("", beta_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR));
    255         Dictionary.registerText(beta_checkbox, "CDM.General.Beta");
     254        //beta_checkbox = new JCheckBox("", beta_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR));
     255        //Dictionary.registerText(beta_checkbox, "CDM.General.Beta");
    256256
    257257        JPanel description_panel = new JPanel();
     
    262262        Dictionary.registerTooltip(description_textarea, "CDM.General.Collection_Extra_Tooltip");
    263263        // Connection
    264         beta_checkbox.addActionListener(CollectionDesignManager.change_listener);
     264        //beta_checkbox.addActionListener(CollectionDesignManager.change_listener);
    265265        BrowseListener browse_listener = new BrowseListener(StaticStrings.IMAGES_PATH_RELATIVE_TO_GSDL_PREFIX);
    266266        browse_about_icon_button.addActionListener(browse_listener);
     
    326326        small_icon_panel.add(browse_home_icon_button, BorderLayout.EAST);
    327327
    328         box_panel.setLayout(new GridLayout(2,1,5,2));
     328        box_panel.setLayout(new GridLayout(1,1,5,2));
    329329        box_panel.add(public_checkbox);
    330         box_panel.add(beta_checkbox);
     330        //box_panel.add(beta_checkbox);
    331331
    332332        description_panel.setLayout(new BorderLayout());
     
    376376        // I forgot to keep the checkboxes up to date. Why hasn't this caused problems before today?
    377377        public_checkbox.setSelected(public_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR));
    378         beta_checkbox.setSelected(beta_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR));
     378        //beta_checkbox.setSelected(beta_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR));
    379379        ready = true;
    380380    }
     
    418418        if(ready) {
    419419        // Boolean values
    420         beta_collectionmeta.setValue((beta_checkbox.isSelected() ? CollectionConfiguration.TRUE_STR : CollectionConfiguration.FALSE_STR));
     420        //beta_collectionmeta.setValue((beta_checkbox.isSelected() ? CollectionConfiguration.TRUE_STR : CollectionConfiguration.FALSE_STR));
    421421        public_collectionmeta.setValue((public_checkbox.isSelected() ? CollectionConfiguration.TRUE_STR : CollectionConfiguration.FALSE_STR));
    422422        String creator_email_str = creator_emailfield.getText();
Note: See TracChangeset for help on using the changeset viewer.