本文整理汇总了Java中org.pentaho.ui.xul.containers.XulTree类的典型用法代码示例。如果您正苦于以下问题:Java XulTree类的具体用法?Java XulTree怎么用?Java XulTree使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XulTree类属于org.pentaho.ui.xul.containers包,在下文中一共展示了XulTree类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getControls
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
@Override
protected void getControls() {
super.getControls();
XulTextbox[] boxes = new XulTextbox[] {hostNameBox, databaseNameBox, portNumberBox, userNameBox, passwordBox,
customDriverClassBox, customUrlBox, dataTablespaceBox, indexTablespaceBox, poolSizeBox, maxPoolSizeBox,
languageBox, systemNumberBox, clientBox};
for (int i = 0; i < boxes.length; i++) {
XulTextbox xulTextbox = boxes[i];
if ((xulTextbox != null) && (xulTextbox instanceof ExtTextbox)){
ExtTextbox ext = (ExtTextbox)xulTextbox;
ext.setVariableSpace(databaseMeta);
}
}
XulTree[] trees = new XulTree[] {poolParameterTree, clusterParameterTree, optionsParameterTree};
for (int i = 0; i < trees.length; i++) {
XulTree xulTree = trees[i];
if (xulTree != null){
xulTree.setData(databaseMeta);
}
}
}
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:27,代码来源:DataOverrideHandler.java
示例2: createBindings
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
private void createBindings() {
refreshConnectionList();
connectionsTable = (XulTree) document.getElementById("connections-table"); //$NON-NLS-1$
// Bind the connection table to a list of connections
bf.setBindingType(Binding.Type.ONE_WAY);
try {
bf.createBinding(dbConnectionList, "children", connectionsTable, "elements").fireSourceChanged(); //$NON-NLS-1$ //$NON-NLS-2$
(bindButtonNew = bf.createBinding(this, "repReadOnly", "connections-new", "disabled")).fireSourceChanged(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
(bindButtonEdit = bf.createBinding(this, "repReadOnly", "connections-edit", "disabled")).fireSourceChanged(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
(bindButtonRemove = bf.createBinding(this, "repReadOnly", "connections-remove", "disabled")).fireSourceChanged(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
if (repository != null) {
bf.createBinding(connectionsTable, "selectedItems", this, "enableButtons"); //$NON-NLS-1$ //$NON-NLS-2$
}
} catch (Exception ex) {
// convert to runtime exception so it bubbles up through the UI
throw new RuntimeException(ex);
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:22,代码来源:ConnectionsController.java
示例3: createNewExtText
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
private void createNewExtText(XulComponent parent) {
xulParent = parent;
if ((xulParent != null) && (xulParent instanceof XulTree)){
variableSpace = (DatabaseMeta)((XulTree)xulParent).getData();
}else{
variableSpace = new DatabaseMeta();
style = SWT.BORDER;
}
extText = new TextVar(variableSpace, parentComposite, style);
textBox = extText.getTextWidget();
addKeyListener(textBox);
setManagedObject(extText);
}
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:17,代码来源:ExtTextbox.java
示例4: createBindings
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
private void createBindings() {
refreshConnectionList();
connectionsTable = (XulTree) document.getElementById( "connections-table" );
// Bind the connection table to a list of connections
bf.setBindingType( Binding.Type.ONE_WAY );
//CHECKSTYLE:LineLength:OFF
try {
bf.createBinding( dbConnectionList, "children", connectionsTable, "elements" ).fireSourceChanged();
( bindButtonNew = bf.createBinding( this, "repReadOnly", "connections-new", "disabled" ) ).fireSourceChanged();
( bindButtonEdit = bf.createBinding( this, "repReadOnly", "connections-edit", "disabled" ) ).fireSourceChanged();
( bindButtonRemove = bf.createBinding( this, "repReadOnly", "connections-remove", "disabled" ) ).fireSourceChanged();
if ( repository != null ) {
bf.createBinding( connectionsTable, "selectedItems", this, "selectedConnections" );
}
} catch ( Exception ex ) {
if ( mainController == null || !mainController.handleLostRepository( ex ) ) {
// convert to runtime exception so it bubbles up through the UI
throw new RuntimeException( ex );
}
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:25,代码来源:ConnectionsController.java
示例5: setUp
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
// a tricky initialisation - first inject private fields
controller = new ConnectionsController();
connectionsTable = mock( XulTree.class );
FieldUtils.writeDeclaredField( controller, "connectionsTable", connectionsTable, true );
// and then spy the controller
controller = spy( controller );
databaseDialog = mock( DatabaseDialog.class );
doReturn( databaseDialog ).when( controller ).getDatabaseDialog();
databaseMeta = mock( DatabaseMeta.class );
doReturn( databaseMeta ).when( databaseDialog ).getDatabaseMeta();
doNothing().when( controller ).refreshConnectionList();
doNothing().when( controller ).showAlreadyExistsMessage();
repository = mock( Repository.class );
controller.init( repository );
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:21,代码来源:ConnectionsControllerTest.java
示例6: createBindings
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
public void createBindings() {
refreshPartitions();
try {
partitionsTable = (XulTree) document.getElementById("partitions-table"); //$NON-NLS-1$
bf.setBindingType(Binding.Type.ONE_WAY);
bf.createBinding(partitionList, "children", partitionsTable, "elements").fireSourceChanged(); //$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding(partitionsTable, "selectedItems", this, "enableButtons"); //$NON-NLS-1$ //$NON-NLS-2$
} catch (Exception e) {
// convert to runtime exception so it bubbles up through the UI
throw new RuntimeException(e);
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:13,代码来源:PartitionsController.java
示例7: createBindings
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
public void createBindings() {
refreshClusters();
try {
clustersTable = (XulTree) document.getElementById("clusters-table"); //$NON-NLS-1$
bf.setBindingType(Binding.Type.ONE_WAY);
bf.createBinding(clusterList, "children", clustersTable, "elements").fireSourceChanged(); //$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding(clustersTable, "selectedItems", this, "enableButtons"); //$NON-NLS-1$ //$NON-NLS-2$
} catch (Exception e) {
// convert to runtime exception so it bubbles up through the UI
throw new RuntimeException(e);
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:13,代码来源:ClustersController.java
示例8: createBindings
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
public void createBindings() {
refreshSlaves();
try {
slavesTable = (XulTree) document.getElementById("slaves-table"); //$NON-NLS-1$
bf.setBindingType(Binding.Type.ONE_WAY);
bf.createBinding(slaveList, "children", slavesTable, "elements").fireSourceChanged(); //$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding(slavesTable, "selectedItems", this, "enableButtons"); //$NON-NLS-1$ //$NON-NLS-2$
} catch (Exception e) {
// convert to runtime exception so it bubbles up through the UI
throw new RuntimeException(e);
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:13,代码来源:SlavesController.java
示例9: init
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
public void init() {
workingStepname = stepname;
metaMapper = new RulesMetaMapper();
metaMapper.loadMeta((RulesMeta)baseStepMeta);
// Set dialog values
((XulTextbox)document.getElementById("step-name")).setValue(getStepName());
((XulTextbox)document.getElementById("rule-file")).setValue(metaMapper.getRuleFile());
((XulTextbox)document.getElementById("rule-definition")).setValue(metaMapper.getRuleDefinition());
((XulTree)document.getElementById("fields-table")).setElements(metaMapper.getColumnList());
// Set the initial dialog state
if(metaMapper.getRuleDefinition() != null && !metaMapper.getRuleDefinition().equals("")) {
setRuleSource("definition");
((XulRadio)document.getElementById("rule-definition-radio-button")).setSelected(true);
} else {
setRuleSource("file");
((XulRadio)document.getElementById("rule-file-radio-button")).setSelected(true);
}
// Bind data objects to UI
bf.setBindingType(Binding.Type.ONE_WAY);
try {
bf.createBinding("step-name", "value", this, "stepName");
bf.createBinding("rule-file", "value", metaMapper, "ruleFile");
bf.createBinding("rule-definition", "value", metaMapper, "ruleDefinition");
bf.createBinding(metaMapper.getColumnList(), "children", "fields-table", "elements").fireSourceChanged();
// TODO: Add converter to clear out opposing text box
bf.createBinding("rule-file-radio-button", "selected", "rule-file", "!disabled").fireSourceChanged();
bf.createBinding("rule-file-radio-button", "selected", "rule-definition", "disabled").fireSourceChanged();
bf.createBinding("rule-definition-radio-button", "selected", "rule-definition", "!disabled").fireSourceChanged();
bf.createBinding("rule-definition-radio-button", "selected", "rule-file", "disabled").fireSourceChanged();
} catch (Exception e) {
e.printStackTrace();
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:39,代码来源:RulesDialog.java
示例10: open
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
/**
* Opens the XUL database dialog
* @return databaseName (or NULL on error or cancel)
* TODO: Fix deprecation warning in v3.2 by using the new dialog
*/
public String open() {
if(databaseDialogInstance == null){
createDialog();
}
try {
// PDI-5088 clear previous options selections since we are re-using the dialog
XulTree tree = (XulTree)xulDialogComponent.getDocument().getRootElement().getElementById("options-parameter-tree");
tree.getRootChildren().removeAll();
dataHandler.setData(databaseMeta);
xulDialogComponent.show(); //Attention: onload: loadConnectionData() is called here the second time, see above for first time
// caught with a HACK in DataHandler.loadConnectionData()
databaseMeta = (DatabaseMeta) dataHandler.getData();
// keep the original id
if(databaseMeta != null) {
databaseMeta.setObjectId(databaseMetaObjectId);
databaseName = Const.isEmpty(databaseMeta.getName()) ? null : databaseMeta.getName();
} else {
databaseName = null;
}
} catch (Exception e) {
new ErrorDialog(parentShell, BaseMessages.getString(PKG, "XulDatabaseDialog.Error.Title"), //$NON-NLS-1$
BaseMessages.getString(PKG, "XulDatabaseDialog.Error.Dialog"), e); //$NON-NLS-1$
return null;
}
return databaseName;
}
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:38,代码来源:XulDatabaseDialog.java
示例11: init
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
public void init() {
workingStepname = stepname;
metaMapper = new RulesAccumulatorMetaMapper();
metaMapper.loadMeta((RulesAccumulatorMeta)baseStepMeta);
// Set dialog values
((XulTextbox)document.getElementById("step-name")).setValue(getStepName());
((XulTextbox)document.getElementById("rule-file")).setValue(metaMapper.getRuleFile());
((XulTextbox)document.getElementById("rule-definition")).setValue(metaMapper.getRuleDefinition());
((XulTree)document.getElementById("fields-table")).setElements(metaMapper.getColumnList());
// Set the initial dialog state
if(metaMapper.getRuleDefinition() != null && !metaMapper.getRuleDefinition().equals("")) {
setRuleSource("definition");
((XulRadio)document.getElementById("rule-definition-radio-button")).setSelected(true);
} else {
setRuleSource("file");
((XulRadio)document.getElementById("rule-file-radio-button")).setSelected(true);
}
// Bind data objects to UI
bf.setBindingType(Binding.Type.ONE_WAY);
try {
bf.createBinding("step-name", "value", this, "stepName");
bf.createBinding("rule-file", "value", metaMapper, "ruleFile");
bf.createBinding("rule-definition", "value", metaMapper, "ruleDefinition");
bf.createBinding(metaMapper.getColumnList(), "children", "fields-table", "elements").fireSourceChanged();
// TODO: Add converter to clear out opposing text box
bf.createBinding("rule-file-radio-button", "selected", "rule-file", "!disabled").fireSourceChanged();
bf.createBinding("rule-file-radio-button", "selected", "rule-definition", "disabled").fireSourceChanged();
bf.createBinding("rule-definition-radio-button", "selected", "rule-definition", "!disabled").fireSourceChanged();
bf.createBinding("rule-definition-radio-button", "selected", "rule-file", "disabled").fireSourceChanged();
} catch (Exception e) {
e.printStackTrace();
}
}
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:39,代码来源:RulesAccumulatorDialog.java
示例12: init
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
public void init() {
workingStepname = stepname;
metaMapper = new RulesExecutorMetaMapper();
metaMapper.loadMeta((RulesExecutorMeta)baseStepMeta);
// Set dialog values
((XulTextbox)document.getElementById("step-name")).setValue(getStepName());
((XulTextbox)document.getElementById("rule-file")).setValue(metaMapper.getRuleFile());
((XulTextbox)document.getElementById("rule-definition")).setValue(metaMapper.getRuleDefinition());
((XulTree)document.getElementById("fields-table")).setElements(metaMapper.getColumnList());
// Set the initial dialog state
if(metaMapper.getRuleDefinition() != null && !metaMapper.getRuleDefinition().equals("")) {
setRuleSource("definition");
((XulRadio)document.getElementById("rule-definition-radio-button")).setSelected(true);
} else {
setRuleSource("file");
((XulRadio)document.getElementById("rule-file-radio-button")).setSelected(true);
}
// Bind data objects to UI
bf.setBindingType(Binding.Type.ONE_WAY);
try {
bf.createBinding("step-name", "value", this, "stepName");
bf.createBinding("rule-file", "value", metaMapper, "ruleFile");
bf.createBinding("rule-definition", "value", metaMapper, "ruleDefinition");
bf.createBinding(metaMapper.getColumnList(), "children", "fields-table", "elements").fireSourceChanged();
// TODO: Add converter to clear out opposing text box
bf.createBinding("rule-file-radio-button", "selected", "rule-file", "!disabled").fireSourceChanged();
bf.createBinding("rule-file-radio-button", "selected", "rule-definition", "disabled").fireSourceChanged();
bf.createBinding("rule-definition-radio-button", "selected", "rule-definition", "!disabled").fireSourceChanged();
bf.createBinding("rule-definition-radio-button", "selected", "rule-file", "disabled").fireSourceChanged();
} catch (Exception e) {
e.printStackTrace();
}
}
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:39,代码来源:RulesExecutorDialog.java
示例13: createPreviewRows
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
/**
* TODO: replace this method with XUL bindings
* <p/>
* This is a bad bad method. We need a way to load the column definitions and
* data through standard XUL bindings.
*
* @param data
* @param columns
*/
protected void createPreviewRows( List<Object[]> data, List<String> columns ) {
// Adds table rows.
Object[] theObj = null;
XulTreeRow theRow = null;
Object theValue = null;
SwingTreeCell theCell = null;
XulTree table = (XulTree) super.document.getElementById( "tableData" );
table.getRootChildren().removeAll();
Iterator<Object[]> theItr = data.iterator();
while ( theItr.hasNext() ) {
theObj = theItr.next();
theRow = table.getRootChildren().addNewRow();
for ( int i = 0; i < theObj.length; i++ ) {
theValue = theObj[i];
theCell = new SwingTreeCell( null );
theCell.setLabel( theValue == null ? "" : theValue.toString() );
theRow.addCell( theCell );
}
}
// Adds table columns.
SwingTreeCol theColumn = null;
SwingTreeCols theColumns = new SwingTreeCols( null, table, null, null );
for ( int i = 0; i < columns.size(); i++ ) {
theColumn = new SwingTreeCol( null, null, null, null );
theColumn.setWidth( 100 );
theColumn.setLabel( columns.get( i ) );
theColumns.addColumn( theColumn );
}
table.setColumns( theColumns );
table.update();
}
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:46,代码来源:PreviewRowsSwingDialog.java
示例14: createBindings
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
public void createBindings() {
refreshPartitions();
try {
partitionsTable = (XulTree) document.getElementById( "partitions-table" );
bf.setBindingType( Binding.Type.ONE_WAY );
bf.createBinding( partitionList, "children", partitionsTable, "elements" ).fireSourceChanged();
bf.createBinding( partitionsTable, "selectedItems", this, "enableButtons" );
} catch ( Exception e ) {
if ( mainController == null || !mainController.handleLostRepository( e ) ) {
// convert to runtime exception so it bubbles up through the UI
throw new RuntimeException( e );
}
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:15,代码来源:PartitionsController.java
示例15: createBindings
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
public void createBindings() {
refreshClusters();
try {
clustersTable = (XulTree) document.getElementById( "clusters-table" );
bf.setBindingType( Binding.Type.ONE_WAY );
bf.createBinding( clusterList, "children", clustersTable, "elements" ).fireSourceChanged();
bf.createBinding( clustersTable, "selectedItems", this, "enableButtons" );
} catch ( Exception e ) {
if ( mainController == null || !mainController.handleLostRepository( e ) ) {
throw new RuntimeException( e );
}
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:14,代码来源:ClustersController.java
示例16: createBindings
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
public void createBindings() {
refreshSlaves();
try {
slavesTable = (XulTree) document.getElementById( "slaves-table" );
bf.setBindingType( Binding.Type.ONE_WAY );
bf.createBinding( slaveList, "children", slavesTable, "elements" ).fireSourceChanged();
bf.createBinding( slavesTable, "selectedItems", this, "enableButtons" );
} catch ( Exception e ) {
if ( mainController == null || !mainController.handleLostRepository( e ) ) {
// convert to runtime exception so it bubbles up through the UI
throw new RuntimeException( e );
}
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:15,代码来源:SlavesController.java
示例17: open
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
/**
* Opens the XUL database dialog
*
* @return databaseName (or NULL on error or cancel) TODO: Fix deprecation warning in v3.2 by using the new dialog
*/
public String open() {
if ( databaseDialogInstance == null ) {
createDialog();
}
try {
// PDI-5088 clear previous options selections since we are re-using the dialog
XulTree tree =
(XulTree) xulDialogComponent.getDocument().getRootElement().getElementById( "options-parameter-tree" );
tree.getRootChildren().removeAll();
dataHandler.setData( databaseMeta );
xulDialogComponent.show(); // Attention: onload: loadConnectionData() is called here the second time, see above
// for first time
// caught with a HACK in DataHandler.loadConnectionData()
databaseMeta = (DatabaseMeta) dataHandler.getData();
// keep the original id
if ( databaseMeta != null ) {
databaseMeta.setObjectId( databaseMetaObjectId );
databaseName = Utils.isEmpty( databaseMeta.getName() ) ? null : databaseMeta.getName();
} else {
databaseName = null;
}
} catch ( Exception e ) {
new ErrorDialog( parentShell, BaseMessages.getString( PKG, "XulDatabaseDialog.Error.Title" ), BaseMessages
.getString( PKG, "XulDatabaseDialog.Error.Dialog" ), e );
return null;
}
return databaseName;
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:40,代码来源:XulDatabaseDialog.java
示例18: getControls
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
@Override
protected void getControls() {
super.getControls();
XulTextbox[] boxes =
new XulTextbox[] {
hostNameBox, databaseNameBox, portNumberBox, userNameBox, passwordBox, customDriverClassBox,
customUrlBox, dataTablespaceBox, indexTablespaceBox, poolSizeBox, maxPoolSizeBox, languageBox,
systemNumberBox, clientBox };
for ( int i = 0; i < boxes.length; i++ ) {
XulTextbox xulTextbox = boxes[i];
if ( ( xulTextbox != null ) && ( xulTextbox instanceof ExtTextbox ) ) {
ExtTextbox ext = (ExtTextbox) xulTextbox;
ext.setVariableSpace( databaseMeta );
}
}
XulTree[] trees = new XulTree[] { poolParameterTree, clusterParameterTree, optionsParameterTree };
for ( int i = 0; i < trees.length; i++ ) {
XulTree xulTree = trees[i];
if ( xulTree != null ) {
xulTree.setData( databaseMeta );
}
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:29,代码来源:DataOverrideHandler.java
示例19: createNewExtMenuList
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
private void createNewExtMenuList( XulComponent parent ) {
xulParent = parent;
if ( ( xulParent != null ) && ( xulParent instanceof XulTree ) ) {
variableSpace = (DatabaseMeta) ( (XulTree) xulParent ).getData();
} else {
variableSpace = new DatabaseMeta();
style = SWT.BORDER;
}
extCombo = new ComboVar( variableSpace, (Composite) parent.getManagedObject(), style );
combobox = extCombo.getCComboWidget();
setManagedObject( extCombo );
combobox.addSelectionListener( new SelectionAdapter() {
public void widgetSelected( SelectionEvent e ) {
fireSelectedEvents();
}
} );
combobox.addModifyListener( new ModifyListener() {
public void modifyText( ModifyEvent modifyEvent ) {
fireModifiedEvents();
}
} );
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:28,代码来源:ExtMenuList.java
示例20: setUp
import org.pentaho.ui.xul.containers.XulTree; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
DocumentFactory.registerElementClass( ElementDom4J.class );
controller = new BrowseController();
controller.setRepositoryDirectory( mock( UIRepositoryDirectory.class ) );
directoryMap = new HashMap<>( 8 );
controller.setDirMap( directoryMap );
document = mock( Document.class );
XulDomContainer xulDomContainer = mock( XulDomContainer.class );
when( xulDomContainer.getDocumentRoot() ).thenReturn( document );
controller.setXulDomContainer( xulDomContainer );
UIRepositoryDirectory someDirectory = mock( UIRepositoryDirectory.class );
selectedFolder = mock( UIRepositoryDirectory.class );
when( selectedFolder.createFolder( FOLDER_NAME ) ).thenReturn( someDirectory );
XulTree folderTree = mock( XulTree.class );
when( folderTree.getSelectedItems() ).thenReturn( Collections.<Object>singleton( selectedFolder ) );
controller.setFolderTree( folderTree );
directoryBinding = mock( Binding.class );
controller.setDirectoryBinding( directoryBinding );
selectedItemsBinding = mock( Binding.class );
controller.setSelectedItemsBinding( selectedItemsBinding );
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:31,代码来源:BrowseControllerTest.java
注:本文中的org.pentaho.ui.xul.containers.XulTree类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论