예제 #1
0
 /**
  * Selects the given column.
  *
  * @param index
  */
 private void actionColumnSelected(int index) {
   DataHandle handle = getHandle();
   if (handle != null && index < handle.getNumColumns()) {
     final String attr = handle.getAttributeName(index);
     model.setSelectedAttribute(attr);
     table.setSelectedAttribute(attr);
     controller.update(new ModelEvent(this, ModelPart.SELECTED_ATTRIBUTE, attr));
   }
 }
예제 #2
0
 /** Handle a selection event. */
 private void selectionEvent() {
   int index = folder.getSelectionIndex();
   if (index >= 0) {
     final String name = names.get(index);
     if (model != null) {
       model.setSelectedAttribute(name);
       controller.update(new ModelEvent(this, ModelPart.SELECTED_ATTRIBUTE, name));
     }
   }
 }