本文整理汇总了Java中org.pentaho.ui.xul.binding.DefaultBindingFactory类的典型用法代码示例。如果您正苦于以下问题:Java DefaultBindingFactory类的具体用法?Java DefaultBindingFactory怎么用?Java DefaultBindingFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DefaultBindingFactory类属于org.pentaho.ui.xul.binding包,在下文中一共展示了DefaultBindingFactory类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
public void init( Repository repository ) throws ControllerInitializationException {
try {
if ( repository.hasService( IAbsSecurityProvider.class ) ) {
service = (IAbsSecurityProvider) repository.getService( IAbsSecurityProvider.class );
bf = new DefaultBindingFactory();
bf.setDocument( this.getXulDomContainer().getDocumentRoot() );
if ( bf != null ) {
createBindings();
}
setAllowed( allowedActionsContains( service, IAbsSecurityProvider.CREATE_CONTENT_ACTION ) );
}
} catch ( KettleException e ) {
throw new ControllerInitializationException( e );
}
}
示例2: init
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
public void init( Repository repository ) throws ControllerInitializationException {
try {
this.repository = repository;
mainController = (MainController) this.getXulDomContainer().getEventHandler( "mainController" ); //$NON-NLS-1$
browseController = (BrowseController) this.getXulDomContainer().getEventHandler( "browseController" ); //$NON-NLS-1$
bf = new DefaultBindingFactory();
bf.setDocument( this.getXulDomContainer().getDocumentRoot() );
messageBox = (XulMessageBox) document.createElement( "messagebox" ); //$NON-NLS-1$
createBindings();
} catch ( Exception e ) {
if ( mainController == null || !mainController.handleLostRepository( e ) ) {
throw new ControllerInitializationException( e );
}
}
}
示例3: doLazyInit
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
@Override
protected boolean doLazyInit() {
setRepReadOnly(this.repository.getRepositoryMeta().getRepositoryCapabilities().isReadOnly());
// Load the SWT Shell from the explorer dialog
shell = ((SwtDialog) document.getElementById("repository-explorer-dialog")).getShell(); //$NON-NLS-1$
bf = new DefaultBindingFactory();
bf.setDocument(this.getXulDomContainer().getDocumentRoot());
if (bf != null) {
createBindings();
}
enableButtons(true, false, false);
return true;
}
示例4: XulPreviewRowsController
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
public XulPreviewRowsController(Shell aShell, DatabaseMeta aDatabaseMeta, String aSchema, String aTable, int aLimit) {
this.shell = aShell;
this.databaseMeta = aDatabaseMeta;
this.schema = aSchema;
this.table = aTable;
this.limit = aLimit;
this.bf = new DefaultBindingFactory();
}
示例5: XulStepFieldsController
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
public XulStepFieldsController(Shell aShell, DatabaseMeta aDatabaseMeta, String schemaTableCombo, RowMetaInterface anInput) {
this.shell = aShell;
this.databaseMeta = aDatabaseMeta;
this.schemaTableCombo = schemaTableCombo;
this.bf = new DefaultBindingFactory();
this.model = new XulStepFieldsModel();
this.rowMetaInterface = anInput;
}
示例6: XulDatabaseExplorerController
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
public XulDatabaseExplorerController(Shell aShell, DatabaseMeta aMeta, List<DatabaseMeta> aDataBases, boolean aLook) {
this.model = new XulDatabaseExplorerModel(aMeta);
this.shell = aShell;
this.bf = new DefaultBindingFactory();
this.databases = aDataBases;
this.dbcache = DBCache.getInstance();
this.isJustLook = aLook;
}
示例7: init
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
private void init()
{
wizardController = new PreviewWizardController(new WizardEditorModel(), new DefaultBindingFactory(), tempModel);
// add the steps ..
wizardController.addStep(new LookAndFeelStep());
wizardController.addStep(new DataSourceAndQueryStep());
wizardController.addStep(new LayoutStep());
wizardController.addStep(new FormatStep());
wizardController.addPropertyChangeListener(WizardController.CANCELLED_PROPERTY_NAME, new CancelHandler());
wizardController.addPropertyChangeListener(WizardController.FINISHED_PROPERTY_NAME, new FinishedHandler());
}
示例8: AnalyzerVisualizationController
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
public AnalyzerVisualizationController(Composite parent, final AnalyzerVisualization visualization, String xmiFileLocation, String modelId, String aVisFileLocaiton, String fileName) throws SWTError {
this.visualization = visualization;
this.xmiFileLocation = xmiFileLocation;
this.modelId = modelId;
this.visFileLocation = aVisFileLocaiton;
this.meta = new AnalyzerVisualizationMeta(this);
this.spoon = ((Spoon) SpoonFactory.getInstance());
this.location = visualization.generateNewUrl(xmiFileLocation, modelId);
this.bf = new DefaultBindingFactory();
this.fileName = fileName;
}
示例9: init
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
private void init() {
try {
XulLoader loader = getLoader();
loader.setOuterContext( parentWindow );
container = loader.loadXul( "org/pentaho/commons/metadata/mqleditor/editor/xul/mainFrame.xul" );
getRunner().addContainer( container );
BindingFactory bf = new DefaultBindingFactory();
bf.setDocument( container.getDocumentRoot() );
mainController.setBindingFactory( bf );
selectedColumnController.setBindingFactory( bf );
constraintController.setBindingFactory( bf );
orderController.setBindingFactory( bf );
previewController.setBindingFactory( bf );
container.addEventHandler( mainController );
container.addEventHandler( selectedColumnController );
container.addEventHandler( constraintController );
container.addEventHandler( orderController );
container.addEventHandler( previewController );
mainController.setWorkspace( workspace );
selectedColumnController.setWorkspace( workspace );
constraintController.setWorkspace( workspace );
orderController.setWorkspace( workspace );
previewController.setWorkspace( workspace );
} catch ( XulException e ) {
log.error( "error loading Xul application", e );
}
}
示例10: XulPreviewRowsController
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
public XulPreviewRowsController( Shell aShell, DatabaseMeta aDatabaseMeta, String aSchema, String aTable,
int aLimit ) {
this.shell = aShell;
this.databaseMeta = aDatabaseMeta;
this.schema = aSchema;
this.table = aTable;
this.limit = aLimit;
this.bf = new DefaultBindingFactory();
}
示例11: XulStepFieldsController
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
public XulStepFieldsController( Shell aShell, DatabaseMeta aDatabaseMeta, String schemaTableCombo,
RowMetaInterface anInput ) {
this.shell = aShell;
this.databaseMeta = aDatabaseMeta;
this.schemaTableCombo = schemaTableCombo;
this.bf = new DefaultBindingFactory();
this.model = new XulStepFieldsModel();
this.rowMetaInterface = anInput;
}
示例12: XulDatabaseExplorerController
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
public XulDatabaseExplorerController( Shell shell, DatabaseMeta databaseMeta, List<DatabaseMeta> databases,
boolean aLook ) {
this.model = new XulDatabaseExplorerModel( databaseMeta );
this.shell = shell;
this.bf = new DefaultBindingFactory();
this.databases = databases;
this.dbcache = DBCache.getInstance();
this.isJustLook = aLook;
}
示例13: init
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
public void init() throws ControllerInitializationException {
bf = new DefaultBindingFactory();
bf.setDocument( this.getXulDomContainer().getDocumentRoot() );
try {
messageBox = (XulMessageBox) document.createElement( "messagebox" ); //$NON-NLS-1$
} catch ( Throwable th ) {
throw new ControllerInitializationException( th );
}
model = new RepositoryConfigModel();
if ( bf != null ) {
createBindings();
}
initializeModel();
}
示例14: init
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
public void init( Repository rep ) throws ControllerInitializationException {
try {
if ( rep != null && rep.hasService( ILockService.class ) ) {
repository = rep;
service = (ILockService) rep.getService( ILockService.class );
} else {
throw new ControllerInitializationException( BaseMessages.getString( PKG,
"RepositoryLockController.ERROR_0001_UNABLE_TO_INITIAL_REPOSITORY_SERVICE", ILockService.class ) ); //$NON-NLS-1$
}
bindingFactory = new DefaultBindingFactory();
bindingFactory.setDocument( getXulDomContainer().getDocumentRoot() );
XulEventHandler eventHandler = getXulDomContainer().getEventHandler( "browseController" ); //$NON-NLS-1$
if ( eventHandler instanceof BrowseController ) {
browseController = (BrowseController) eventHandler;
}
// Disable row dragging if it is locked and the user does not have permissions
fileTable = (XulTree) getXulDomContainer().getDocumentRoot().getElementById( "file-table" ); //$NON-NLS-1$
folderTree = (XulTree) document.getElementById( "folder-tree" ); //$NON-NLS-1$
lockFileMenuItem = (XulMenuitem) getXulDomContainer().getDocumentRoot().getElementById( "file-context-lock" ); //$NON-NLS-1$
deleteFileMenuItem = (XulMenuitem) getXulDomContainer().getDocumentRoot().getElementById( "file-context-delete" ); //$NON-NLS-1$
renameFileMenuItem = (XulMenuitem) getXulDomContainer().getDocumentRoot().getElementById( "file-context-rename" ); //$NON-NLS-1$
messageBox = (XulMessageBox) document.createElement( "messagebox" ); //$NON-NLS-1$
createBindings();
} catch ( Exception e ) {
throw new RuntimeException( e );
}
}
示例15: FileOverwriteDialogController
import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
protected FileOverwriteDialogController(XulDomContainer container, List<UIRepositoryObject> objects) {
this.container = container;
this.objects = new UIRepositoryObjectsList(objects);
this.dialog = (XulDialog) this.container.getDocumentRoot().getElementById("file-overwrite-dialog"); //$NON-NLS-1$
this.bf = new DefaultBindingFactory();
}