Changeset 8842


Ignore:
Timestamp:
2004-12-17T11:16:23+13:00 (19 years ago)
Author:
kjdon
Message:

put dublin core at the top of the list - it is selected and should therefore be visible, but I couldn't get it to be definitely visible any other way. also if you click on a partially visible row, it now becomes fully visible

File:
1 edited

Legend:

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

    r8606 r8842  
    7979        continue;
    8080        }
    81 
    82         metadata_set_list_entries.add(new MetadataSetListEntry(metadata_set));
     81        // Hack: add dublin caore at the top
     82        if (metadata_set.getNamespace().equals("dc")) {
     83        metadata_set_list_entries.add(0, new MetadataSetListEntry(metadata_set));
     84        } else {
     85        metadata_set_list_entries.add(new MetadataSetListEntry(metadata_set));
     86        }
    8387    }
    8488
     
    218222            metadata_set_list_entry.grabFocus();
    219223            setSelectedIndex(i);
     224            break;
    220225        }
    221226        }
     
    253258        metadata_set_list_entry.setSelected(!metadata_set_list_entry.isSelected());
    254259        metadata_set_list_entry.grabFocus();
     260        list.ensureIndexIsVisible(index);
    255261
    256262        // Fire a selection changed event
Note: See TracChangeset for help on using the changeset viewer.