本文整理汇总了Java中org.pentaho.ui.xul.binding.Binding.Type类的典型用法代码示例。如果您正苦于以下问题:Java Type类的具体用法?Java Type怎么用?Java Type使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Type类属于org.pentaho.ui.xul.binding.Binding包,在下文中一共展示了Type类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.pentaho.ui.xul.binding.Binding.Type; //导入依赖的package包/类
public void init() {
this.browser = (XulBrowser) this.document.getElementById("web_visualization_browser");
this.propPanel = (XulEditpanel) document.getElementById("propPanel");
this.browser.setSrc(Const.NVL(this.location, "http://"));
this.bf.setDocument(super.document);
this.bf.setBindingType(Type.ONE_WAY);
this.modelNameBinding = this.bf.createBinding(this, "modelId", "modelName", "value");
this.factTableNameBinding = this.bf.createBinding(this, "factTableName", "factTableName", "value");
this.bf.setBindingType(Type.BI_DIRECTIONAL);
bf.createBinding(this.propPanel, "visible", this, "propVisible");
fireBindings();
setPropVisible(false);
}
示例2: createBindings
import org.pentaho.ui.xul.binding.Binding.Type; //导入依赖的package包/类
protected void createBindings() {
// Lock bindings
bindingFactory.setBindingType( Type.ONE_WAY );
bindingFactory.createBinding( browseController, "repositoryObjects", "lock-menu", "!disabled", forButtons ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
bindingFactory.createBinding( browseController,
"repositoryObjects", "file-context-lock", "selected", checkLockedState ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
bindingFactory.createBinding( browseController, "repositoryObjects", this, "menuItemEnabledState" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
bindingFactory.createBinding( browseController,
"repositoryObjects", "file-context-locknotes", "!disabled", checkLockedStateBool ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
bindingFactory.createBinding( browseController,
"repositoryObjects", "lock-context-lock", "selected", checkLockedState ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
bindingFactory.createBinding( browseController,
"repositoryObjects", "lock-context-lock", "!disabled", checkLockPermissions ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
bindingFactory.createBinding( browseController,
"repositoryObjects", "lock-context-locknotes", "!disabled", checkLockedStateBool ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
示例3: init
import org.pentaho.ui.xul.binding.Binding.Type; //导入依赖的package包/类
public void init() {
createPreviewRows();
this.bf.setDocument(super.document);
this.bf.setBindingType(Type.ONE_WAY);
this.rowCountBinding = this.bf.createBinding(this, "rowCount", "rowCountLabel", "value");
fireBindings();
}
示例4: init
import org.pentaho.ui.xul.binding.Binding.Type; //导入依赖的package包/类
public void init() {
createPreviewRows();
this.bf.setDocument( super.document );
this.bf.setBindingType( Type.ONE_WAY );
this.rowCountBinding = this.bf.createBinding( this, "rowCount", "rowCountLabel", "value" );
fireBindings();
}
示例5: createBindings
import org.pentaho.ui.xul.binding.Binding.Type; //导入依赖的package包/类
private void createBindings() {
repositoryConfigDialog = (XulDialog) document.getElementById( "repository-config-dialog" );//$NON-NLS-1$
url = (XulTextbox) document.getElementById( "repository-url" );//$NON-NLS-1$
name = (XulTextbox) document.getElementById( "repository-name" );//$NON-NLS-1$
id = (XulTextbox) document.getElementById( "repository-id" );//$NON-NLS-1$
modificationComments = (XulCheckbox) document.getElementById( "repository-modification-comments" );//$NON-NLS-1$
okButton = (XulButton) document.getElementById( "repository-config-dialog_accept" ); //$NON-NLS-1$
bf.setBindingType( Type.BI_DIRECTIONAL );
bf.createBinding( model, "url", url, "value" );//$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding( model, "name", name, "value" );//$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding( model, "id", id, "value" );//$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding( model, "modificationComments", modificationComments, "checked" );//$NON-NLS-1$ //$NON-NLS-2$
bf.setBindingType( Type.ONE_WAY );
bf.createBinding( model, "valid", okButton, "!disabled" );//$NON-NLS-1$ //$NON-NLS-2$
}
示例6: init
import org.pentaho.ui.xul.binding.Binding.Type; //导入依赖的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$
}
}
示例7: setBindingType
import org.pentaho.ui.xul.binding.Binding.Type; //导入依赖的package包/类
public void setBindingType(Type type) {
proxiedBindingFactory.setBindingType(type);
}