Changeset 5760
- Timestamp:
- 2003-10-29T12:24:39+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/table/GTableModel.java
r5593 r5760 283 283 } 284 284 285 285 /** Determine if the given metadata is common to all selected file nodes given the context of the current view. */ 286 public boolean isCommon(Metadata entry) { 287 return (entry.getCount() == file_nodes.length); 288 } 289 286 290 /** Determine if the given metadata is common to all selected file nodes given the context of the current view. */ 287 291 public boolean isCommon(int row) { 288 292 if(0 <= row && row < current_metadata.size()) { 289 293 Metadata entry = (Metadata) current_metadata.get(row); 290 ///ystem.err.println("Of the " + file_nodes.length + " selected files, " + entry + " is attached to " + entry.getCount() + " of them."); 291 if (entry.getCount() == file_nodes.length) { 292 return true; 293 } 294 return isCommon(entry); 294 295 } 295 296 return false;
Note:
See TracChangeset
for help on using the changeset viewer.