Search in sources :

Example 36 with Bindable

use of org.pentaho.ui.xul.stereotype.Bindable in project pentaho-platform by pentaho.

the class MantleModel method showBrowser.

@Bindable
public void showBrowser() {
    IPluginPerspective perspective = PerspectiveManager.getInstance().getActivePerspective();
    boolean showing = perspective.getId().equalsIgnoreCase(PerspectiveManager.OPENED_PERSPECTIVE);
    if (!showing) {
        PerspectiveManager.getInstance().setPerspective(PerspectiveManager.OPENED_PERSPECTIVE);
    }
}
Also used : IPluginPerspective(org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Example 37 with Bindable

use of org.pentaho.ui.xul.stereotype.Bindable in project pentaho-platform by pentaho.

the class MantleModel method executeShareContent.

@Bindable
public void executeShareContent() {
    OpenFileCommand cmd = new OpenFileCommand(COMMAND.SHARE);
    cmd.execute();
}
Also used : OpenFileCommand(org.pentaho.mantle.client.commands.OpenFileCommand) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Example 38 with Bindable

use of org.pentaho.ui.xul.stereotype.Bindable in project pentaho-platform by pentaho.

the class MantleModel method launchNewDropdownCommand.

@Bindable
public void launchNewDropdownCommand(XulToolbarbutton button) {
    NewDropdownCommand launchNewDropdownCommand = new NewDropdownCommand(((ToolbarButton) button.getManagedObject()).getPushButton());
    launchNewDropdownCommand.execute();
}
Also used : NewDropdownCommand(org.pentaho.mantle.client.commands.NewDropdownCommand) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Example 39 with Bindable

use of org.pentaho.ui.xul.stereotype.Bindable in project pentaho-platform by pentaho.

the class MantleModel method executeSaveCommand.

@Bindable
public void executeSaveCommand() {
    SaveCommand saveCommand = new SaveCommand();
    saveCommand.execute();
}
Also used : SaveCommand(org.pentaho.mantle.client.commands.SaveCommand) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Example 40 with Bindable

use of org.pentaho.ui.xul.stereotype.Bindable in project pentaho-platform by pentaho.

the class MantleModel method executeOpenFileCommand.

@Bindable
public void executeOpenFileCommand() {
    OpenFileCommand openFileCommand = new OpenFileCommand();
    openFileCommand.execute();
}
Also used : OpenFileCommand(org.pentaho.mantle.client.commands.OpenFileCommand) 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