Search in sources :

Example 1 with HeaderDecorator

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);
}
Also used : HeaderDecorator(com.evolveum.midpoint.studio.ui.HeaderDecorator) TraceTreeViewColumn(com.evolveum.midpoint.studio.ui.trace.lens.TraceTreeViewColumn)

Example 2 with HeaderDecorator

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);
}
Also used : HeaderDecorator(com.evolveum.midpoint.studio.ui.HeaderDecorator)

Example 3 with HeaderDecorator

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);
}
Also used : HeaderDecorator(com.evolveum.midpoint.studio.ui.HeaderDecorator)

Example 4 with HeaderDecorator

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);
}
Also used : HeaderDecorator(com.evolveum.midpoint.studio.ui.HeaderDecorator) PerformanceCategory(com.evolveum.midpoint.schema.traces.PerformanceCategory)

Example 5 with HeaderDecorator

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);
}
Also used : HeaderDecorator(com.evolveum.midpoint.studio.ui.HeaderDecorator) OpType(com.evolveum.midpoint.schema.traces.OpType)

Aggregations

HeaderDecorator (com.evolveum.midpoint.studio.ui.HeaderDecorator)5 OpType (com.evolveum.midpoint.schema.traces.OpType)1 PerformanceCategory (com.evolveum.midpoint.schema.traces.PerformanceCategory)1 TraceTreeViewColumn (com.evolveum.midpoint.studio.ui.trace.lens.TraceTreeViewColumn)1