use of pcgen.facade.core.InfoFactory in project pcgen by PCGen.
the class ChooserDialog method valueChanged.
@Override
public void valueChanged(ListSelectionEvent e) {
if (availTable != null && !e.getValueIsAdjusting()) {
if (e.getSource() == availTable.getSelectionModel() && availTable.getSelectedObject() instanceof InfoFacade) {
InfoFacade target = (InfoFacade) availTable.getSelectedObject();
InfoFactory factory = chooser.getInfoFactory();
if (factory != null && target != null) {
infoPane.setText(factory.getHTMLInfo(target));
}
}
}
}
Aggregations