Changeset 7246


Ignore:
Timestamp:
2004-04-29T11:13:25+12:00 (20 years ago)
Author:
kjdon
Message:

changed the title and tooltip for the non-editable case of viewing extracted metadata values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/EditorDialog.java

    r6318 r7246  
    8989    setSize(SIZE);
    9090    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    }
    9396    // Create
    9497    text = new JTextArea(value);
     
    97100    text.setLineWrap(true);
    98101    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    }
    100107
    101108    cancel = new GLIButton();
     
    133140    }
    134141
    135    /** Specify if this text dialog should be editable or readonly
    136     * @param editable true to allow editing, false otherwise
    137     */
    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) {
    139146      if(text == null) {
    140147     this.editable = editable;
Note: See TracChangeset for help on using the changeset viewer.