Search in sources :

Example 31 with Bindable

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();
}
Also used : DatasourceType(org.pentaho.platform.dataaccess.datasource.DatasourceType) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Example 32 with Bindable

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
    }
}
Also used : IDatabaseConnection(org.pentaho.database.model.IDatabaseConnection) BindingException(org.pentaho.ui.xul.binding.BindingException) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Example 33 with Bindable

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();
}
Also used : ShowBrowserCommand(org.pentaho.mantle.client.commands.ShowBrowserCommand) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Example 34 with Bindable

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());
}
Also used : Timer(com.google.gwt.user.client.Timer) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Example 35 with Bindable

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);
    }
}
Also used : IPluginPerspective(org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Aggregations

Bindable (org.pentaho.ui.xul.stereotype.Bindable)71 Request (com.google.gwt.http.client.Request)15 RequestBuilder (com.google.gwt.http.client.RequestBuilder)15 RequestCallback (com.google.gwt.http.client.RequestCallback)15 RequestException (com.google.gwt.http.client.RequestException)15 Response (com.google.gwt.http.client.Response)15 IDatabaseConnection (org.pentaho.database.model.IDatabaseConnection)15 ArrayList (java.util.ArrayList)10 List (java.util.List)7 OpenFileCommand (org.pentaho.mantle.client.commands.OpenFileCommand)5 IDatasourceInfo (org.pentaho.platform.dataaccess.datasource.IDatasourceInfo)5 XulHbox (org.pentaho.ui.xul.containers.XulHbox)4 SaveCommand (org.pentaho.mantle.client.commands.SaveCommand)3 XulComponent (org.pentaho.ui.xul.XulComponent)3 XulException (org.pentaho.ui.xul.XulException)3 XulLabel (org.pentaho.ui.xul.components.XulLabel)3 IDatabaseType (org.pentaho.database.model.IDatabaseType)2 DatabaseTypeHelper (org.pentaho.database.util.DatabaseTypeHelper)2 FilePropertiesCommand (org.pentaho.mantle.client.commands.FilePropertiesCommand)2 NewDropdownCommand (org.pentaho.mantle.client.commands.NewDropdownCommand)2