Search in sources :

Example 1 with DetermineStatementComponentEvent

use of org.archcnl.ui.inputview.rulesormappingeditorview.architectureruleeditor.events.DetermineStatementComponentEvent in project ArchCNL by Mari-Wie.

the class SubjectComponent method updateUI.

private void updateUI() {
    subjectLayout.add(two_ConceptCombobox);
    showFirstConcept = true;
    String descriptorValue = one_DescriptorCombobox.getValue();
    switch(descriptorValue) {
        case "Nothing":
            subjectLayout.remove(two_ConceptCombobox);
            showFirstConcept = false;
        case "Fact:":
            subjectLayout.remove(three_ConditionCheckbox);
            showCondition(false);
            break;
        default:
            subjectLayout.add(three_ConditionCheckbox);
            showCondition(three_ConditionCheckbox.getValue());
            break;
    }
    fireEvent(new DetermineStatementComponentEvent(this, true));
}
Also used : DetermineStatementComponentEvent(org.archcnl.ui.inputview.rulesormappingeditorview.architectureruleeditor.events.DetermineStatementComponentEvent)

Aggregations

DetermineStatementComponentEvent (org.archcnl.ui.inputview.rulesormappingeditorview.architectureruleeditor.events.DetermineStatementComponentEvent)1