d.setToolTip(PackageResources.Wizard.ClassSelector.SEARCH_TOOLTIP);
return d;
}
private SourceAndTargetList createClassLists() {
SourceAndTargetList lists = new SourceAndTargetList(ComponentFactories.newKongaListFactory(),
ComponentFactories.newKongaListFactory());
lists.setTransferPolicy(new ClassListTransferPolicy());
lists.setTitles(PackageResources.Wizard.ClassSelector.AVAILABLE, PackageResources.Wizard.ClassSelector.SELECTED);
lists.setTitleDecorator(new LabelDecorator() {
@Override
public void decorate(Label label) {
label.setBackgroundColor(StyleSheet.ComponentTableHeader.getBackground());
label.setTextColor(TextStyles.ComponentTableHeaderText.getColor());
label.setFont(TextStyles.ComponentTableHeaderText.getFont());
label.setBorder(StyleSheet.ComponentTableHeader.getBorder());
}
});
lists.setPrototypeCellValue("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
lists.setVisibleRowCount(15);
lists.addListener(new ListListener());
lists.setCellRenderer(new DefaultListDecorRenderer());
return lists;
}