当前位置: 首页>>代码示例>>Java>>正文


Java Binding.setBindingType方法代码示例

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


在下文中一共展示了Binding.setBindingType方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createTabForModel

import org.pentaho.ui.xul.binding.Binding; //导入方法依赖的package包/类
public void createTabForModel(final ModelerWorkspace aModel, String name) throws ModelerException {

    try {
      SpoonPerspectiveManager.getInstance().activatePerspective(getClass());
      
      XulTabAndPanel tabAndPanel = createTab();
      Spoon spoon = ((Spoon)SpoonFactory.getInstance());
      XulUI xul = new XulUI(spoon.getShell(), aModel);
      metas.put(tabAndPanel.tab, xul.getMeta());
      if(selectedMeta != xul.getMeta()){
        setSelectedMeta(xul.getMeta());
      }
  
      Composite parentComposite = (Composite) tabAndPanel.panel.getManagedObject();
      xul.getMainPanel().setParent(parentComposite);
      parentComposite.layout(true);
      
      setNameForTab(tabAndPanel.tab, name);
      
      Binding bind = new DefaultBinding(aModel, "shortFileName", tabAndPanel.tab, "label"); //$NON-NLS-1$ //$NON-NLS-2$
      bind.setConversion(new NameBindingConvertor(this, tabAndPanel.tab));
      bind.setBindingType(Binding.Type.ONE_WAY);
      document.addBinding(bind);
      models.add(aModel);
    	model = aModel;
    	setSelectedMeta(xul.getMeta());
    	Spoon.getInstance().enableMenus();
      
   } catch(KettleException e){
      throw new ModelerException(e);
    }
  }
 
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:33,代码来源:AgileBiModelerPerspective.java

示例2: bind

import org.pentaho.ui.xul.binding.Binding; //导入方法依赖的package包/类
@Override
public void bind() throws BindingException, XulException, InvocationTargetException {

  unbind();
  elementBindings = new ArrayList<Binding>();

  Binding b = bf.createBinding( this, "principal", "principal", "value" );
  b.setBindingType( Binding.Type.BI_DIRECTIONAL );
  elementBindings.add( b );

  addBindings( elementBindings, bf );
  fireBindingsChanged();

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

示例3: addBindings

import org.pentaho.ui.xul.binding.Binding; //导入方法依赖的package包/类
@Override
protected void addBindings( List<Binding> bindings, BindingFactory bf ) {

  super.addBindings( bindings, bf );

  Binding b = bf.createBinding( this, "keytabFile", "keytab", "value" );
  b.setBindingType( Binding.Type.BI_DIRECTIONAL );
  bindings.add( b );

  b = bf.createBinding( this, "useKeytab", "useKeytab", "checked" );
  b.setBindingType( Binding.Type.BI_DIRECTIONAL );
  bindings.add( b );

  b = bf.createBinding( "useKeytab", "checked", "keytab", "!disabled" );
  b.setBindingType( Binding.Type.ONE_WAY );
  bindings.add( b );

  b = bf.createBinding( "useKeytab", "checked", "browse", "!disabled" );
  b.setBindingType( Binding.Type.ONE_WAY );
  bindings.add( b );

  b = bf.createBinding( "useKeytab", "checked", "password", "disabled" );
  b.setBindingType( Binding.Type.ONE_WAY );
  bindings.add( b );

  b = bf.createBinding( "useKeytab", "checked", "principal", "disabled" );
  b.setBindingType( Binding.Type.ONE_WAY );
  bindings.add( b );

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

示例4: addBindings

import org.pentaho.ui.xul.binding.Binding; //导入方法依赖的package包/类
@Override
protected void addBindings( List<Binding> bindings, BindingFactory bf ) {

  Binding b = bf.createBinding( this, "password", "password", "value" );
  b.setBindingType( Binding.Type.BI_DIRECTIONAL );
  bindings.add( b );

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


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