return col;
}
}
private UiProvider createTitlePanel() {
TitlePanelFactory factory = new TitlePanelFactory() {
@Override
protected JButton[] getToolBarButtons() {
List<JButton> buttons = Lists.newArrayList();
buttons.add(new KongaButton(transferAction).makeToolbarButton());
if (allowBuiltInVariablesToBeHidden) {
ToggleAction showReferencedDEs = new IncludeBuiltInDataElementsToggle(
ShowReferencedDataElementsOnlyPreference.INSTANCE);
PopupMenuButton pm = new PopupMenuButton(ApplicationResources.ICONS.getIcon("ArrowDown.16"),
new Action[] { showReferencedDEs });
buttons.add(pm);
}
return buttons.toArray(new JButton[buttons.size()]);
}
@Override
protected JComponent[] getAdditionalToolbarComponents() {
if (isTabBased()) {
return new JComponent[] { InvisiblePanel.newPanel(createFilterField(null)) };
} else {
return new JComponent[0];
}
}
};
if (!isTabBased()) {
factory.setTitle(getString("DataElementSelector.Title"));
}
return factory.createPanel();
}