Search in sources :

Example 1 with VariableListUpdateRequestedEvent

use of org.archcnl.ui.common.andtriplets.triplet.events.VariableListUpdateRequestedEvent in project ArchCNL by Mari-Wie.

the class VariableSelectionComponent method addListeners.

private void addListeners() {
    addCustomValueSetListener(event -> {
        setInvalid(false);
        fireEvent(new VariableCreationRequestedEvent(this, true, event.getDetail()));
    });
    addValueChangeListener(event -> {
        setInvalid(false);
        fireEvent(new VariableSelectedEvent(this, true));
    });
    addFocusListener(e -> fireEvent(new VariableListUpdateRequestedEvent(this, true)));
}
Also used : VariableListUpdateRequestedEvent(org.archcnl.ui.common.andtriplets.triplet.events.VariableListUpdateRequestedEvent) VariableSelectedEvent(org.archcnl.ui.common.andtriplets.triplet.events.VariableSelectedEvent) VariableCreationRequestedEvent(org.archcnl.ui.common.andtriplets.triplet.events.VariableCreationRequestedEvent)

Aggregations

VariableCreationRequestedEvent (org.archcnl.ui.common.andtriplets.triplet.events.VariableCreationRequestedEvent)1 VariableListUpdateRequestedEvent (org.archcnl.ui.common.andtriplets.triplet.events.VariableListUpdateRequestedEvent)1 VariableSelectedEvent (org.archcnl.ui.common.andtriplets.triplet.events.VariableSelectedEvent)1