本文整理汇总了Java中org.pentaho.ui.xul.containers.XulTreeRow类的典型用法代码示例。如果您正苦于以下问题:Java XulTreeRow类的具体用法?Java XulTreeRow怎么用?Java XulTreeRow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XulTreeRow类属于org.pentaho.ui.xul.containers包,在下文中一共展示了XulTreeRow类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: poolingRowChange
import org.pentaho.ui.xul.containers.XulTreeRow; //导入依赖的package包/类
public void poolingRowChange(int idx) {
if (idx != -1) {
if (idx >= BaseDatabaseMeta.poolingParameters.length) {
idx = BaseDatabaseMeta.poolingParameters.length - 1;
}
if (idx < 0) {
idx = 0;
}
poolingDescription.setValue(BaseDatabaseMeta.poolingParameters[idx].getDescription());
XulTreeRow row = poolParameterTree.getRootChildren().getItem(idx).getRow();
if (row.getSelectedColumnIndex() == 2){
row.addCellText(0, "true"); //$NON-NLS-1$
}
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:20,代码来源:DataHandler.java
示例2: poolingRowChange
import org.pentaho.ui.xul.containers.XulTreeRow; //导入依赖的package包/类
public void poolingRowChange( int idx ) {
if ( idx != -1 ) {
if ( idx >= BaseDatabaseMeta.poolingParameters.length ) {
idx = BaseDatabaseMeta.poolingParameters.length - 1;
}
if ( idx < 0 ) {
idx = 0;
}
poolingDescription.setValue( BaseDatabaseMeta.poolingParameters[idx].getDescription() );
XulTreeRow row = poolParameterTree.getRootChildren().getItem( idx ).getRow();
if ( row.getSelectedColumnIndex() == 2 ) {
row.addCellText( 0, "true" );
}
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:20,代码来源:DataHandler.java
示例3: editOptions
import org.pentaho.ui.xul.containers.XulTreeRow; //导入依赖的package包/类
public void editOptions(int index) {
if( index +1 == optionsParameterTree.getRows()){
//editing last row add a new one below
Object[][] values = optionsParameterTree.getValues();
Object[] row = values[values.length-1];
if(row != null && (!StringUtils.isEmpty((String)row[0]) || !StringUtils.isEmpty((String)row[1]))){
//acutally have something in current last row
XulTreeRow newRow = optionsParameterTree.getRootChildren().addNewRow();
newRow.addCellText(0, "");
newRow.addCellText(1, "");
}
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:16,代码来源:DataHandler.java
示例4: setDefaultPoolParameters
import org.pentaho.ui.xul.containers.XulTreeRow; //导入依赖的package包/类
private void setDefaultPoolParameters() {
if (poolParameterTree != null) {
for (DatabaseConnectionPoolParameter parameter : BaseDatabaseMeta.poolingParameters){
XulTreeRow row = poolParameterTree.getRootChildren().addNewRow();
row.addCellText(0, "false"); //$NON-NLS-1$
row.addCellText(1, parameter.getParameter());
row.addCellText(2, parameter.getDefaultValue());
}
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:11,代码来源:DataHandler.java
示例5: createPreviewRows
import org.pentaho.ui.xul.containers.XulTreeRow; //导入依赖的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
示例6: editOptions
import org.pentaho.ui.xul.containers.XulTreeRow; //导入依赖的package包/类
public void editOptions( int index ) {
if ( index + 1 == optionsParameterTree.getRows() ) {
// editing last row add a new one below
Object[][] values = optionsParameterTree.getValues();
Object[] row = values[values.length - 1];
if ( row != null && ( !StringUtils.isEmpty( (String) row[0] ) || !StringUtils.isEmpty( (String) row[1] ) ) ) {
// acutally have something in current last row
XulTreeRow newRow = optionsParameterTree.getRootChildren().addNewRow();
newRow.addCellText( 0, "" );
newRow.addCellText( 1, "" );
}
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:16,代码来源:DataHandler.java
示例7: setDefaultPoolParameters
import org.pentaho.ui.xul.containers.XulTreeRow; //导入依赖的package包/类
private void setDefaultPoolParameters() {
if ( poolParameterTree != null ) {
for ( DatabaseConnectionPoolParameter parameter : BaseDatabaseMeta.poolingParameters ) {
XulTreeRow row = poolParameterTree.getRootChildren().addNewRow();
row.addCellText( 0, "false" );
row.addCellText( 1, parameter.getParameter() );
row.addCellText( 2, parameter.getDefaultValue() );
}
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:11,代码来源:DataHandler.java
示例8: saveAggChange
import org.pentaho.ui.xul.containers.XulTreeRow; //导入依赖的package包/类
public void saveAggChange(int idx) {
UIAggregate agg = getAggList().getAgg(idx);
XulTree aggTable = (XulTree) document.getElementById("definedAggTable");
XulTreeRow row = aggTable.getRootChildren().getItem(idx).getRow();
agg.setEnabled((Boolean) row.getCell(0).getValue());
// get row count estimate
Aggregate algoAggregate = algorithm.createAggregate(connectionModel.getSchema(), agg.getAttributes());
agg.setEstimateRowCount(algoAggregate.estimateRowCount());
agg.setEstimateSpace(algoAggregate.estimateSpace());
getAggList().aggChanged(agg);
System.out.println("Saving agg, enabled? " + row.getCell(0).getValue());
}
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:15,代码来源:AggListController.java
注:本文中的org.pentaho.ui.xul.containers.XulTreeRow类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论