Search in sources :

Example 1 with InfoFactory

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));
            }
        }
    }
}
Also used : InfoFacade(pcgen.facade.core.InfoFacade) InfoFactory(pcgen.facade.core.InfoFactory)

Aggregations

InfoFacade (pcgen.facade.core.InfoFacade)1 InfoFactory (pcgen.facade.core.InfoFactory)1