• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java DefaultBindingFactory类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.pentaho.ui.xul.binding.DefaultBindingFactory的典型用法代码示例。如果您正苦于以下问题:Java DefaultBindingFactory类的具体用法?Java DefaultBindingFactory怎么用?Java DefaultBindingFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DefaultBindingFactory类属于org.pentaho.ui.xul.binding包,在下文中一共展示了DefaultBindingFactory类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:17,代码来源:AbsContextMenuController.java


示例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 );
    }
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:17,代码来源:RevisionController.java


示例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;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:16,代码来源:ConnectionsController.java


示例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();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:9,代码来源:XulPreviewRowsController.java


示例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;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:9,代码来源:XulStepFieldsController.java


示例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;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:9,代码来源:XulDatabaseExplorerController.java


示例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());
}
 
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:15,代码来源:EmbeddedWizard.java


示例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;
}
 
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:12,代码来源:AnalyzerVisualizationController.java


示例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 );
  }
}
 
开发者ID:pentaho,项目名称:mql-editor,代码行数:35,代码来源:AbstractMqlEditor.java


示例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();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:10,代码来源:XulPreviewRowsController.java


示例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;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:10,代码来源:XulStepFieldsController.java


示例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;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:10,代码来源:XulDatabaseExplorerController.java


示例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();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:15,代码来源:RepositoryConfigController.java


示例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 );
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:35,代码来源:RepositoryLockController.java


示例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();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:7,代码来源:FileOverwriteDialogController.java


示例16: PreviewWizardController

import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
public PreviewWizardController(WizardEditorModel aModel, DefaultBindingFactory aFactory, boolean tempModel) {
	super(aModel, aFactory);
	this.tempModel = tempModel;
}
 
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:5,代码来源:PreviewWizardController.java


示例17: 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" );
  this.bf = new DefaultBindingFactory();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:7,代码来源:FileOverwriteDialogController.java


示例18: init

import org.pentaho.ui.xul.binding.DefaultBindingFactory; //导入依赖的package包/类
protected void init() {
  try {
    if ( ( Spoon.getInstance().getRepository() != null )
        && ( Spoon.getInstance().getRepository().hasService( IAbsSecurityProvider.class ) ) ) {
      IAbsSecurityProvider securityService =
          (IAbsSecurityProvider) Spoon.getInstance().getRepository().getService( IAbsSecurityProvider.class );

      setCreateAllowed( allowedActionsContains( securityService, IAbsSecurityProvider.CREATE_CONTENT_ACTION ) );
    }

    shell = ( ( (Spoon) SpoonFactory.getInstance() ).getShell() );
    XulDomContainer container = getXulDomContainer();

    bindingFactory = new DefaultBindingFactory();
    bindingFactory.setDocument( container.getDocumentRoot() );

    bindingFactory.setBindingType( Type.ONE_WAY );

    bindingFactory.createBinding( this, "activeMetaUnlocked", "lock-context-locknotes", "disabled" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    bindingFactory.createBinding( this, "lockingNotAllowed", "lock-context-lock", "disabled" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

    // Get trans* object to gain access to the *Meta object to determine if we are initially locked or not
    // Try transformation
    if ( container.getEventHandlers().containsKey( "transgraph" ) ) { //$NON-NLS-1$
      workingMeta = ( (TransGraph) container.getEventHandler( "transgraph" ) ).getMeta(); //$NON-NLS-1$
    } else if ( container.getEventHandlers().containsKey( "jobgraph" ) ) { //$NON-NLS-1$
      workingMeta = ( (JobGraph) container.getEventHandler( "jobgraph" ) ).getMeta(); //$NON-NLS-1$
    }

    RepositoryLock repoLock = fetchRepositoryLock( workingMeta );
    if ( repoLock != null ) {
      XulMenuitem lockMenuItem = (XulMenuitem) container.getDocumentRoot().getElementById( "lock-context-lock" ); //$NON-NLS-1$
      lockMenuItem.setSelected( true );
      // Permit locking/unlocking if the user owns the lock
      if ( Spoon.getInstance().getRepository() instanceof PurRepository ) {
        setLockingAllowed( new UnifiedRepositoryLockService(
            ( (PurRepository) Spoon.getInstance().getRepository() ).getUnderlyingRepository() )
                .canUnlockFileById( workingMeta.getObjectId() ) );
      } else {
        setLockingAllowed( repoLock.getLogin().equalsIgnoreCase(
            Spoon.getInstance().getRepository().getUserInfo().getLogin() ) );
      }
    } else {
      setLockingAllowed( true );
    }

    firePropertyChange( "activeMetaUnlocked", null, repoLock == null ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
  } catch ( Exception e ) {
    log.error( BaseMessages.getString( PKG, "LockController.NoLockingSupport" ), e );//$NON-NLS-1$
    new ErrorDialog( ( (Spoon) SpoonFactory.getInstance() ).getShell(),
        BaseMessages.getString( PKG, "Dialog.Error" ), e.getMessage(), e ); //$NON-NLS-1$

  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:55,代码来源:SpoonLockController.java



注:本文中的org.pentaho.ui.xul.binding.DefaultBindingFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java RedmineException类代码示例发布时间:2022-05-22
下一篇:
Java BreakType类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap