use of org.geosdi.geoplatform.gui.configuration.action.event.ActionEnableEvent in project geo-platform by geosdi.
the class GPSecureButton method initializeSecureAction.
private void initializeSecureAction(GeoPlatformSecureAction<ButtonEvent> action) {
action.addActionEnableHandler(new ActionEnableHandler() {
@Override
public void onActionEnabled(ActionEnableEvent event) {
if (event.isEnabled()) {
GPSecureButton.super.enable();
} else {
GPSecureButton.super.disable();
}
}
});
this.secureAction = action;
this.enable();
}
use of org.geosdi.geoplatform.gui.configuration.action.event.ActionEnableEvent in project geo-platform by geosdi.
the class AddModifyTimeFilterAction method manageTreeSelection.
/**
* @param selection
*/
@Override
public void manageTreeSelection(List<GPBeanTreeModel> selection) {
boolean selectionEnabled = ((selection != null) && (selection.size() == 1) ? this.manageTreeInternalSelection(selection.get(0)) : TRUE);
this.handlerManager.fireEvent(new ActionEnableEvent((this.isEnabled() ? selectionEnabled : this.isEnabled())));
}
use of org.geosdi.geoplatform.gui.configuration.action.event.ActionEnableEvent in project geo-platform by geosdi.
the class RemoveTimeFilterAction method manageTreeSelection.
/**
* @param selection
*/
@Override
public void manageTreeSelection(List<GPBeanTreeModel> selection) {
boolean selectionEnabled = ((selection != null) && (selection.size() == 1) ? this.manageTreeInternalSelection(selection.get(0)) : TRUE);
this.handlerManager.fireEvent(new ActionEnableEvent((this.isEnabled() ? selectionEnabled : this.isEnabled())));
}
use of org.geosdi.geoplatform.gui.configuration.action.event.ActionEnableEvent in project geo-platform by geosdi.
the class FeatureAttributesWidget method resetAttributes.
@Override
public void resetAttributes() {
grid.stopEditing(true);
store.rejectChanges();
bus.fireEvent(new ActionEnableEvent(false));
}
use of org.geosdi.geoplatform.gui.configuration.action.event.ActionEnableEvent in project geo-platform by geosdi.
the class FeatureAttributesWidget method successfulTransaction.
@Override
public void successfulTransaction() {
this.bus.fireEvent(new FeatureStatusBarEvent("Successful Transaction", STATUS_OK));
store.commitChanges();
bus.fireEvent(new ActionEnableEvent(Boolean.FALSE));
}
Aggregations