本文整理汇总了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);
}
}
示例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();
}
示例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 );
}
示例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 );
}