use of com.evolveum.midpoint.studio.ui.HeaderDecorator in project midpoint-studio by Evolveum.
the class TraceOptionsPanel method createColumnsPanel.
private void createColumnsPanel(JPanel root) {
JPanel columnsPanel = createBoxLayoutPanel();
columnsPanel.setBorder(JBUI.Borders.empty(5));
predefinedColumnsBox = new ComboBox<>(PredefinedColumnSet.values());
predefinedColumnsBox.setAlignmentX(Component.LEFT_ALIGNMENT);
predefinedColumnsBox.addActionListener(e -> {
PredefinedColumnSet predefinedSet = (PredefinedColumnSet) predefinedColumnsBox.getSelectedItem();
LOG.info("Buhahaha " + predefinedSet);
if (predefinedSet != null) {
columnsChecks.forEach((column, checkBox) -> checkBox.setSelected(predefinedSet.contains(column)));
}
});
columnsPanel.add(predefinedColumnsBox);
for (TraceTreeViewColumn column : TraceTreeViewColumn.values()) {
JCheckBox check = new JCheckBox();
check.setText(column.getName());
check.setSelected(true);
columnsPanel.add(check);
columnsChecks.put(column, check);
}
root.add(new HeaderDecorator("Columns to show", columnsPanel), BorderLayout.SOUTH);
}
use of com.evolveum.midpoint.studio.ui.HeaderDecorator in project midpoint-studio by Evolveum.
the class TraceGraphPanel method createClockworkGraphPanel.
private void createClockworkGraphPanel(JPanel root) {
JPanel panel = createBoxLayoutPanel();
panel.setBorder(JBUI.Borders.empty(5));
panel.add(showFocusCurrent = new JCheckBox("Show focus current object"));
panel.add(showProjectionCurrent = new JCheckBox("Show projection current object"));
root.add(new HeaderDecorator("Clockwork graph options", panel), BorderLayout.NORTH);
}
use of com.evolveum.midpoint.studio.ui.HeaderDecorator in project midpoint-studio by Evolveum.
the class TraceGraphPanel method createNodeSelectionPanel.
private void createNodeSelectionPanel(JPanel root) {
JPanel panel = createBoxLayoutPanel();
panel.setBorder(JBUI.Borders.empty(5));
panel.add(useSelectedNodes = new JCheckBox("Use selected nodes"));
panel.add(skipDisabledNodes = new JCheckBox("Skip disabled nodes"));
root.add(new HeaderDecorator("Node selection", panel), BorderLayout.CENTER);
}
use of com.evolveum.midpoint.studio.ui.HeaderDecorator in project midpoint-studio by Evolveum.
the class TraceOptionsPanel method createCategoriesPanel.
private void createCategoriesPanel(JPanel root) {
JPanel categories = createBoxLayoutPanel();
categories.setBorder(JBUI.Borders.empty(5));
predefinedCategoriesBox = new ComboBox<>(PredefinedPerformanceCategoriesSet.values());
predefinedCategoriesBox.setAlignmentX(Component.LEFT_ALIGNMENT);
predefinedCategoriesBox.addActionListener(e -> {
PredefinedPerformanceCategoriesSet predefinedSet = (PredefinedPerformanceCategoriesSet) predefinedCategoriesBox.getSelectedItem();
LOG.info("Buhahaha " + predefinedSet);
if (predefinedSet != null) {
categoriesChecks.forEach((category, checkBox) -> checkBox.setSelected(predefinedSet.contains(category)));
alsoParentsCheck.setSelected(predefinedSet.isShowParents());
}
});
categories.add(predefinedCategoriesBox);
for (PerformanceCategory type : PerformanceCategory.values()) {
JCheckBox check = new JCheckBox();
check.setText(type.getLabel());
categories.add(check);
categoriesChecks.put(type, check);
}
alsoParentsCheck = new JCheckBox();
alsoParentsCheck.setText("Show also parents");
categories.add(alsoParentsCheck);
root.add(new HeaderDecorator("Categories to show", categories), BorderLayout.CENTER);
}
use of com.evolveum.midpoint.studio.ui.HeaderDecorator in project midpoint-studio by Evolveum.
the class TraceOptionsPanel method createOpTypesPanel.
private void createOpTypesPanel(JPanel root) {
JPanel opTypesPanel = createBoxLayoutPanel();
opTypesPanel.setBorder(JBUI.Borders.empty(5));
predefinedOpTypesBox = new ComboBox<>(PredefinedOpTypeSet.values());
predefinedOpTypesBox.setAlignmentX(Component.LEFT_ALIGNMENT);
predefinedOpTypesBox.addActionListener(e -> {
PredefinedOpTypeSet predefinedSet = (PredefinedOpTypeSet) predefinedOpTypesBox.getSelectedItem();
LOG.info("Buhahaha " + predefinedSet);
if (predefinedSet != null) {
opTypesChecks.forEach((opType, checkBox) -> checkBox.setSelected(predefinedSet.contains(opType)));
}
});
opTypesPanel.add(predefinedOpTypesBox);
for (OpType type : OpType.values()) {
JCheckBox check = new JCheckBox();
check.setText(type.getLabel());
opTypesPanel.add(check);
opTypesChecks.put(type, check);
}
root.add(new HeaderDecorator("Operation types to show", opTypesPanel), BorderLayout.NORTH);
}
Aggregations