Changeset 7246
- Timestamp:
- 2004-04-29T11:13:25+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/EditorDialog.java
r6318 r7246 89 89 setSize(SIZE); 90 90 setJMenuBar(new SimpleMenuBar("theenrichview")); 91 Dictionary.setText(this, "General.Edit"); 92 91 if (editable) { 92 Dictionary.setText(this, "General.Edit"); 93 } else { 94 Dictionary.setText(this, "General.View"); 95 } 93 96 // Create 94 97 text = new JTextArea(value); … … 97 100 text.setLineWrap(true); 98 101 text.setWrapStyleWord(false); 99 Dictionary.setTooltip(text, "MetaEdit.Value_Field_Tooltip"); 102 if (editable) { 103 Dictionary.setTooltip(text, "MetaEdit.Value_Field_Tooltip"); 104 } else { 105 Dictionary.setTooltip(text, "MetaEdit.Value_Field_Tooltip_Uneditable"); 106 } 100 107 101 108 cancel = new GLIButton(); … … 133 140 } 134 141 135 /** Specify if this text dialog should be editable or readonly136 * @param editable true to allow editing, false otherwise137 */138 public void setEditable(boolean editable) {142 /** Specify if this text dialog should be editable or readonly 143 * @param editable true to allow editing, false otherwise 144 */ 145 public void setEditable(boolean editable) { 139 146 if(text == null) { 140 147 this.editable = editable;
Note:
See TracChangeset
for help on using the changeset viewer.