本文整理汇总了Java中org.pentaho.ui.xul.containers.XulVbox类的典型用法代码示例。如果您正苦于以下问题:Java XulVbox类的具体用法?Java XulVbox怎么用?Java XulVbox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XulVbox类属于org.pentaho.ui.xul.containers包,在下文中一共展示了XulVbox类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: PerspectiveManager
import org.pentaho.ui.xul.containers.XulVbox; //导入依赖的package包/类
public PerspectiveManager( SpoonPerspective per, XulVbox box, XulToolbar mainToolbar,
List<PerspectiveData> perspectiveList, String name ) {
super();
this.per = per;
this.box = box;
this.mainToolbar = mainToolbar;
this.perspectiveList = perspectiveList;
this.name = name;
initialized = false;
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:11,代码来源:SpoonPerspectiveManager.java
示例2: createPerspectiveManager
import org.pentaho.ui.xul.containers.XulVbox; //导入依赖的package包/类
private SpoonPerspectiveManager.PerspectiveManager createPerspectiveManager( SpoonPerspective perspective ) {
List<SpoonPerspectiveManager.PerspectiveData> perspectiveDatas = new ArrayList<SpoonPerspectiveManager.PerspectiveData>();
perspectiveDatas.add( new SpoonPerspectiveManager.PerspectiveData( PERSPECTIVE_NAME, PERSPECTIVE_ID ) );
SpoonPerspectiveManager.PerspectiveManager perspectiveManager =
new SpoonPerspectiveManager.PerspectiveManager( perspective, mock( XulVbox.class ), mock( XulToolbar.class ),
perspectiveDatas, perspective.getDisplayName( Locale.getDefault() ) );
perspectiveManager = spy( perspectiveManager );
doNothing().when( perspectiveManager ).performInit();
return perspectiveManager;
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:13,代码来源:SpoonPerspectiveManagerTest.java
示例3: createBindings
import org.pentaho.ui.xul.containers.XulVbox; //导入依赖的package包/类
@Override
protected void createBindings() {
super.createBindings();
roleListBox = (XulListbox) document.getElementById( "roles-list" );//$NON-NLS-1$
systemRoleListBox = (XulListbox) document.getElementById( "system-roles-list" );//$NON-NLS-1$
applyLogicalRolesButton = (XulButton) document.getElementById( "apply-action-permission" );//$NON-NLS-1$
applyLogicalSystemRolesButton = (XulButton) document.getElementById( "apply-system-role-action-permission" );//$NON-NLS-1$
logicalRolesBox = (XulVbox) document.getElementById( "role-action-permissions-vbox" );//$NON-NLS-1$
logicalSystemRolesBox = (XulVbox) document.getElementById( "system-role-action-permissions-vbox" );//$NON-NLS-1$
bf.setBindingType( Binding.Type.ONE_WAY );
// Action based security permissions
buttonConverter = new BindingConvertor<Integer, Boolean>() {
@Override
public Boolean sourceToTarget( Integer value ) {
if ( value != null && value >= 0 ) {
return false;
}
return true;
}
@Override
public Integer targetToSource( Boolean value ) {
// TODO Auto-generated method stub
return null;
}
};
bf.createBinding( roleListBox, "selectedIndex", applyLogicalRolesButton, "disabled", buttonConverter );//$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding( systemRoleListBox, "selectedIndex", applyLogicalSystemRolesButton, "disabled", buttonConverter );//$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding( absSecurity, "selectedRole", this, "selectedRoleChanged" );//$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding( absSecurity, "selectedSystemRole", this, "selectedSystemRoleChanged" );//$NON-NLS-1$ //$NON-NLS-2$
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:34,代码来源:AbsController.java
示例4: setSourceNameForCheck
import org.pentaho.ui.xul.containers.XulVbox; //导入依赖的package包/类
public void setSourceNameForCheck(String name){
boolean isVisible = (name == null || "".equals(name.toString()) || name.equals(ModelerMessagesHolder.getMessages().getString("ModelerController.Datasource")));
XulVbox messageBox = (XulVbox) document.getElementById("main_message"); //$NON-NLS-1$
messageBox.setVisible(isVisible);
XulComponent addFieldButton = document.getElementById("addField"); //$NON-NLS-1$
addFieldButton.setDisabled(isVisible);
document.getElementById("datasource_button").setVisible(isVisible);
document.getElementById("relational_datasource_button").setVisible(isVisible);
}
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:14,代码来源:SpoonModelerController.java
注:本文中的org.pentaho.ui.xul.containers.XulVbox类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论