/** * 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)); } }
/** 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)); } } }