use of org.pentaho.ui.xul.stereotype.Bindable in project data-access by pentaho.
the class DatasourceModel method setDatasourceType.
@Bindable
public void setDatasourceType(DatasourceType datasourceType) {
DatasourceType previousVal = this.datasourceType;
this.datasourceType = datasourceType;
// $NON-NLS-1$
this.firePropertyChange("datasourceType", previousVal, datasourceType);
validate();
}
use of org.pentaho.ui.xul.stereotype.Bindable in project data-access by pentaho.
the class DatasourceModel method setSelectedRelationalConnection.
@Bindable
public void setSelectedRelationalConnection(IDatabaseConnection value) {
try {
IDatabaseConnection previousValue = this.selectedRelationalConnection;
this.selectedRelationalConnection = value;
if (value != null) {
this.firePropertyChange("selectedRelationalConnection", previousValue, value);
validate();
}
} catch (BindingException e) {
// ignore since any binding issues with datasource parameters will be more obviously caught elsewhere
}
}
use of org.pentaho.ui.xul.stereotype.Bindable in project pentaho-platform by pentaho.
the class MantleController method showNavigatorClicked.
@Bindable
public void showNavigatorClicked() {
boolean show = !model.isShowNavigatorSelected();
// toggle first
model.setShowNavigatorSelected(show);
ShowBrowserCommand showBrowserCommand = new ShowBrowserCommand(show);
showBrowserCommand.execute();
}
use of org.pentaho.ui.xul.stereotype.Bindable in project pentaho-platform by pentaho.
the class MantleController method editContentClicked.
@Bindable
public /*
* Notifies currently active Javascript callback of an edit event.
*/
void editContentClicked() {
// set delay for edit/view mode switching
setContentEditEnabled(false);
Timer loadOverlayTimer = new Timer() {
public void run() {
setContentEditEnabled(true);
}
};
loadOverlayTimer.schedule(1800);
model.setContentEditToggled();
executeEditContentCallback(SolutionBrowserPanel.getInstance().getContentTabPanel().getCurrentFrame().getFrame().getElement(), model.isContentEditSelected());
}
use of org.pentaho.ui.xul.stereotype.Bindable in project pentaho-platform by pentaho.
the class MantleModel method showSchedules.
@Bindable
public void showSchedules() {
IPluginPerspective perspective = PerspectiveManager.getInstance().getActivePerspective();
boolean showing = perspective.getId().equalsIgnoreCase(PerspectiveManager.SCHEDULES_PERSPECTIVE);
if (!showing || !this.showBrowserSelected) {
PerspectiveManager.getInstance().setPerspective(PerspectiveManager.SCHEDULES_PERSPECTIVE);
}
}
Aggregations