Search in sources :

Example 1 with LockRequiredEvent

use of org.uberfire.client.mvp.LockRequiredEvent in project kie-wb-common by kiegroup.

the class DependencySelectorPopupViewImpl method init.

@PostConstruct
public void init() {
    dependencyPagedJarTable = dependencyPagedJarTables.get();
    dependencyPagedJarTable.addOnSelect(parameter -> {
        presenter.onPathSelection(parameter);
        lockRequired.fire(new LockRequiredEvent());
    });
    setTitle("Artifacts");
    setBody(dependencyPagedJarTable);
    setSize(ModalSize.LARGE);
    // Need to refresh the grid to load content after the popup is shown
    addShownHandler(shownEvent -> dependencyPagedJarTable.search());
}
Also used : LockRequiredEvent(org.uberfire.client.mvp.LockRequiredEvent) PostConstruct(javax.annotation.PostConstruct)

Example 2 with LockRequiredEvent

use of org.uberfire.client.mvp.LockRequiredEvent in project kie-wb-common by kiegroup.

the class DataObjectBrowser method onNewProperty.

@Override
public void onNewProperty() {
    lockRequiredEvent.fire(new LockRequiredEvent());
    if (getContext() != null) {
        newFieldPopup.init(getContext());
        newFieldPopup.show();
    }
}
Also used : LockRequiredEvent(org.uberfire.client.mvp.LockRequiredEvent)

Aggregations

LockRequiredEvent (org.uberfire.client.mvp.LockRequiredEvent)2 PostConstruct (javax.annotation.PostConstruct)1