Changeset 4415
- Timestamp:
- 2003-05-30T12:05:46+12:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/cdm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ArgumentConfiguration.java
r4366 r4415 88 88 import org.greenstone.gatherer.util.Utility; 89 89 import org.greenstone.gatherer.valuetree.GValueModel; 90 import org.greenstone.gatherer.gui.SimpleMenuBar; 91 import org.greenstone.gatherer.gui.ModalDialog; 92 90 93 /** This class provides us with a dialog box which allows us to edit the arguments of either a PlugIn or a Classifier. 91 94 * @author John Thompson, Greenstone Digital Library, University of Waikato … … 103 106 104 107 public class ArgumentConfiguration 105 extends JDialog108 extends ModalDialog 106 109 implements ActionListener { 107 110 /** The data whose arguments we are editing. */ … … 132 135 static final private Dimension LIST_SIZE = new Dimension(380, 50); 133 136 /** The size used for the dialog. */ 134 static final private Dimension SIZE = new Dimension(800, 4 00);137 static final private Dimension SIZE = new Dimension(800, 425); 135 138 /** Constructor. 136 139 * @param gatherer A reference to the <strong>Gatherer</strong>. … … 150 153 setSize(SIZE); 151 154 setTitle(get("Title")); 155 setJMenuBar(new SimpleMenuBar("7.0")); // can we tell whether 156 // we are doing a classifier or plugin, to make the help 157 //more specific?? 152 158 JPanel button_pane = new JPanel(); 153 159 cancel = new JButton(get("General.Cancel")); … … 251 257 */ 252 258 public boolean display() { 253 s how();259 setVisible(true); 254 260 return success; 255 261 } -
trunk/gli/src/org/greenstone/gatherer/cdm/TranslationManager.java
r4366 r4415 86 86 import org.greenstone.gatherer.cdm.Language; 87 87 import org.greenstone.gatherer.cdm.LanguageManager; 88 import org.greenstone.gatherer.gui.SimpleMenuBar; 89 import org.greenstone.gatherer.gui.ModalDialog; 90 88 91 /** This class provides a graphical interface to allow a user to quickly and conviently (ie all in one place) translate the text fragments associated with general metadata and indexes into each of the assigned languages in the collection. It should provide clear controls for the editing of these text fragments, plus clear indicate what languages still need further translation, which it will do through a combination of coloring and other visual indicators. 89 92 * @author John Thompson, Greenstone Digital Library, University of Waikato … … 91 94 */ 92 95 public class TranslationManager 93 extends JDialog {96 extends ModalDialog { 94 97 /** A reference to our creator, the CollectionDesignManager. */ 95 98 private CollectionDesignManager manager = null; … … 147 150 static final private Dimension FEATURE_SIZE = new Dimension(200, 400); 148 151 /** The default size of the translation dialog. */ 149 static final private Dimension SIZE = new Dimension(800, 4 50);152 static final private Dimension SIZE = new Dimension(800, 475); 150 153 /** Constructor. 151 154 * @param gatherer A reference to the <strong>Gatherer</strong>. … … 156 159 */ 157 160 public TranslationManager(Gatherer gatherer, CollectionDesignManager manager) { 158 super( );161 super(gatherer.g_man); 159 162 this.dialog = this; 160 163 this.gatherer = gatherer; … … 181 184 setModal(true); 182 185 setSize(SIZE); 186 setJMenuBar(new SimpleMenuBar("7.5")); 183 187 close_button = new JButton(get("General.Close")); 184 188 content_pane = (JPanel) getContentPane(); … … 260 264 } 261 265 setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2); 262 s how();266 setVisible(true); 263 267 } 264 268 /** Destructor
Note:
See TracChangeset
for help on using the changeset viewer.