Search in sources :

Example 6 with Bindable

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

the class MantleModel method executeScheduleContent.

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

Example 7 with Bindable

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

the class MantleModel method executeEditContent.

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

Example 8 with Bindable

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

the class MantleModel method executePrintCommand.

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

Example 9 with Bindable

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

the class CsvPhysicalStep method refreshPreview.

@Bindable
public void refreshPreview() throws Exception {
    // $NON-NLS-1$
    csvTextPreview.setValue("");
    CsvFileInfo fileInfo = datasourceModel.getModelInfo().getFileInfo();
    csvTextPreview.setValue(fileInfo.formatSampleContents());
}
Also used : CsvFileInfo(org.pentaho.platform.dataaccess.datasource.wizard.models.CsvFileInfo) Bindable(org.pentaho.ui.xul.stereotype.Bindable)

Example 10 with Bindable

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

the class JoinDefinitionsStep method createJoin.

@Bindable
public void createJoin() {
    JoinRelationshipModel join = new JoinRelationshipModel();
    join.setLeftKeyFieldModel(this.joinGuiModel.getLeftKeyField());
    join.setRightKeyFieldModel(this.joinGuiModel.getRightKeyField());
    if (this.validator.isValid(join)) {
        this.joinGuiModel.addJoin(join);
        this.parentDatasource.setFinishable(this.validator.allTablesJoined());
    } else {
        ((MultiTableDatasource) this.parentDatasource).displayErrors(this.validator.getError());
    }
}
Also used : JoinRelationshipModel(org.pentaho.agilebi.modeler.models.JoinRelationshipModel) 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