@Override public String getToolTipText(MouseEvent evt) { int index = locationToIndex(evt.getPoint()); if (index == -1) { return ""; } else { ListItem<T> item = (ListItem<T>) model.getElementAt(index); return item.dataItem.toString(); } }
public void selectinVector(Vector<String> vec) { model.selectInVector(vec); }
/** Deselects all items in the list */ public void selectNone() { model.selectNone(); revalidate(); repaint(); }
/** * Returns the list of items in the CheckBoxList * * @return The list of items in the CheckBoxList */ public LinkedHashMap<T, Boolean> getItems() { return model.getItems(); }