Changeset 13531 for trunk/gli/src/org/greenstone/gatherer/gui/Filter.java
- Timestamp:
- 2006-12-20T14:10:13+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/Filter.java
r12119 r13531 126 126 add(combobox, BorderLayout.CENTER); 127 127 } 128 /** Retrieve the combobox associated with this filter.129 * @return A <strong>GComboBox</strong>.130 */131 public GComboBox getComboBox() {132 return combobox;133 }134 128 135 129 /** Used to restore the filter state to enabled, the normal state during collection editing. … … 170 164 public void setFirst(boolean first) { 171 165 this.first = first; 172 }173 174 /** Spawn produces a copy of this filter, which has new controls, but shares listeners with this filter, and vice versa. Thus we can have two synchronized, but differing sets of controls.175 * @param tree_spawn The <strong>JTree</strong> this filter will affect.176 * @return A new <strong>Filter</strong> which is in the same run as this filter.177 */178 public Filter spawn(DragTree tree_spawn) {179 Filter filter = new Filter(tree_spawn, others);180 filter.setFirst(false); // No spawned copies should generate error messages, but fail silently.181 filter.setComboBoxModel(combobox.getModel());182 filter.setComboBoxSelection((Entry)combobox.getSelectedItem());183 return filter;184 166 } 185 167
Note:
See TracChangeset
for help on using the changeset viewer.