gpt4 book ai didi

org.pentaho.ui.xul.containers.XulDeck类的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 22:23:05 26 4
gpt4 key购买 nike

本文整理了Java中org.pentaho.ui.xul.containers.XulDeck类的一些代码示例,展示了XulDeck类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XulDeck类的具体详情如下:
包路径:org.pentaho.ui.xul.containers.XulDeck
类名称:XulDeck

XulDeck介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

private XulTree selectDeletedFileTable( boolean isAdmin ) {
 XulDeck treeDeck = (XulDeck) document.getElementById( "tree-deck" );
 treeDeck.setSelectedIndex( isAdmin ? 1 : 0 );
 return (XulTree) document.getElementById( isAdmin ? "deleted-file-table-admin" : "deleted-file-table" );
}

代码示例来源:origin: pentaho/pentaho-kettle

deck.setSelectedIndex( deck.getChildNodes().indexOf( deck.getElementById( "perspective-" + sp.getId() ) ) );
getSpoon().enableMenus();

代码示例来源:origin: pentaho/pentaho-kettle

public void setDeckChildIndex() {
 getControls();
 // if pooling selected, check the parameter validity before allowing
 // a deck panel switch...
 int originalSelection = ( dialogDeck == null ? -1 : dialogDeck.getSelectedIndex() );
 boolean passed = true;
 if ( originalSelection == 3 ) {
  passed = checkPoolingParameters();
 }
 if ( passed ) {
  int selected = deckOptionsBox.getSelectedIndex();
  if ( selected < 0 ) {
   selected = 0;
   deckOptionsBox.setSelectedIndex( 0 );
  }
  dialogDeck.setSelectedIndex( selected );
 } else {
  dialogDeck.setSelectedIndex( originalSelection );
  deckOptionsBox.setSelectedIndex( originalSelection );
 }
}

代码示例来源:origin: pentaho/modeler

public void activate( T obj ) {
 this.setObject( obj );
 deck.setSelectedIndex( deck.getChildNodes().indexOf( panel ) );
}

代码示例来源:origin: pentaho/big-data-plugin

/**
 * @return the current UI mode based off the current state of the components
 */
private JobEntryMode getMode() {
 XulDeck modeDeck = getModeDeck();
 XulDeck advancedModeDeck = getAdvancedModeDeck();
 if ( modeDeck.getSelectedIndex() == 0 ) {
  return JobEntryMode.QUICK_SETUP;
 } else {
  for ( AdvancedButton b : AdvancedButton.values() ) {
   if ( b.getDeckIndex() == advancedModeDeck.getSelectedIndex() ) {
    return b.getMode();
   }
  }
 }
 throw new RuntimeException( "unknown UI mode" );
}

代码示例来源:origin: pentaho/data-access

@Bindable
public void setSelectedDatasource( IWizardDatasource datasource ) {
 if ( datasource instanceof DummyDatasource ) {
  this.datasourceDeck.setSelectedIndex( 0 );
  this.datasource = null;
  this.wrappedStep = null;
  return;
 }
 if ( datasource == null ) {
  return;
 }
 if ( this.datasource != null ) {
  this.wrappedStep.removePropertyChangeListener( validListener );
  this.datasource.removePropertyChangeListener( finishableListener );
 }
 this.wrappedStep = datasource.getSteps().get( 0 );
 this.datasource = datasource;
 this.wrappedStep.addPropertyChangeListener( validListener );
 this.datasource.addPropertyChangeListener( finishableListener );
 this.datasourceDeck
  .setSelectedIndex( datasourceDeck.getChildNodes().indexOf( datasource.getSteps().get( 0 ).getUIComponent() ) );
 datasource.getSteps().get( 0 ).refresh();
 firePropertyChange( "valid", !isValid(), isValid() );
}

代码示例来源:origin: pentaho/big-data-plugin

/**
 * Toggles between Quick Setup and Advanced Options mode. This assumes there exists a deck by id
 * {@link #getModeDeckElementId()} and it contains two panels.
 */
public void toggleMode() {
 XulDeck deck = getModeDeck();
 setUiMode( deck.getSelectedIndex() == 1 ? JobEntryMode.QUICK_SETUP : selectedAdvancedButton.getMode() );
}

代码示例来源:origin: pentaho/pentaho-kettle

@Override
public void setSelectedFolderItems( List<UIRepositoryDirectory> selectedFolderItems ) {
 if ( selectedFolderItems != null && selectedFolderItems.size() == 1
   && selectedFolderItems.get( 0 ).equals( trashDir ) ) {
  try {
   setTrash( trashService.getTrash() );
  } catch ( KettleException e ) {
   if ( mainController == null || !mainController.handleLostRepository( e ) ) {
    throw new RuntimeException( e );
   }
  }
  deck.setSelectedIndex( 1 );
 } else {
  deck.setSelectedIndex( 0 );
  super.setSelectedFolderItems( selectedFolderItems );
 }
}

代码示例来源:origin: pentaho/data-access

int index = deck.getChildNodes().indexOf( activatingWizardStep.getUIComponent() );
deck.setSelectedIndex( index );
selectDataSourceMenuList( activatingWizardStep, index );
activatingWizardStep.refresh();

代码示例来源:origin: pentaho/big-data-plugin

/**
 * Toggles between Quick Setup and Advanced Options mode. This assumes there exists a deck by id
 * {@link #getModeDeckElementId()} and it contains two panels.
 *
 * @param quickMode
 *          Should quick mode be visible/selected?
 */
protected void toggleQuickMode( boolean quickMode ) {
 XulDeck deck = getModeDeck();
 deck.setSelectedIndex( quickMode ? 0 : 1 );
 // Swap the label on the button
 setModeToggleLabel( BaseMessages
   .getString( AbstractSqoopJobEntry.class, MODE_I18N_STRINGS[deck.getSelectedIndex()] ) );
 // We toggle to and from quick setup in this method so either the old or the new is always Mode.QUICK_SETUP.
 // Whichever is not is the mode for the currently selected advanced button
 JobEntryMode oldMode = deck.getSelectedIndex() == 0 ? selectedAdvancedButton.getMode() : JobEntryMode.QUICK_SETUP;
 JobEntryMode newMode =
   JobEntryMode.QUICK_SETUP == oldMode ? selectedAdvancedButton.getMode() : JobEntryMode.QUICK_SETUP;
 updateUiMode( oldMode, newMode );
}

代码示例来源:origin: pentaho/pentaho-kettle

public void removePerspective( SpoonPerspective per ) {
 perspectives.remove( per );
 orderedPerspectives.remove( per );
 Document document = domContainer.getDocumentRoot();
 XulComponent comp = document.getElementById( "perspective-" + per.getId() );
 comp.getParent().removeChild( comp );
 comp = document.getElementById( "perspective-btn-" + per.getId() );
 comp.getParent().removeChild( comp );
 XulToolbar mainToolbar = (XulToolbar) domContainer.getDocumentRoot().getElementById( "main-toolbar" );
 ( (Composite) mainToolbar.getManagedObject() ).layout( true, true );
 deck.setSelectedIndex( 0 );
}

代码示例来源:origin: pentaho/pentaho-kettle

deck.setSelectedIndex( 1 );
} catch ( Throwable th ) {
 if ( mainController == null || !mainController.handleLostRepository( th ) ) {

代码示例来源:origin: pentaho/pentaho-kettle

aclDeck.setSelectedIndex( NO_ACL );
try {
 if ( securityBinding != null ) {

代码示例来源:origin: pentaho/pentaho-kettle

aclDeck.setSelectedIndex( ACL );
return viewAclsModel.getAcls();

代码示例来源:origin: pentaho/data-access

public void show( int index ) {
 reset();
 importDeck.setSelectedIndex( index );
 activeImportPerspective = importPerspectives.get( index );
 activeImportPerspective.showDialog();
}

代码示例来源:origin: pentaho/big-data-plugin

/**
 * Toggle the selected deck for advanced mode.
 *
 * @param button
 *          Button that was selected
 */
protected void toggleAdvancedMode( AdvancedButton button ) {
 getAdvancedModeDeck().setSelectedIndex( button.getDeckIndex() );
}

代码示例来源:origin: pentaho/modeler

public void resetPropertyForm() {
 this.propDeck.setSelectedIndex( 0 );
 dimTreeHelper.setSelectedTreeItem( null );
 catTreeHelper.setSelectedTreeItem( null );
}

代码示例来源:origin: pentaho/data-access

@Bindable
public void setPreference( Integer preference ) {
 analysisPreferencesDeck.setSelectedIndex( preference );
 importDialogModel.setParameterMode( preference == PARAMETER_MODE );
 acceptButton.setDisabled( !isValid() );
}

代码示例来源:origin: pentaho/modeler

@Bindable
public void setTreeSelectionChanged( Object selection ) {
 setSelectedTreeItem( selection );
 if ( selection != null && selection instanceof AbstractMetaDataModelNode ) {
  AbstractMetaDataModelNode node = (AbstractMetaDataModelNode) selection;
  ModelerNodePropertiesForm form = propertiesForms.get( node.getPropertiesForm() );
  if ( form != null ) {
   if ( selectedForm != null && selectedForm != form ) {
    selectedForm.setObject( null );
   }
   form.activate( (AbstractMetaDataModelNode) selection );
   selectedForm = form;
   return;
  }
 }
 if ( propsDeck != null ) {
  propsDeck.setSelectedIndex( 0 );
 }
}

代码示例来源:origin: pentaho/modeler

@Bindable
public void setModellingMode( ModelerMode mode ) {
 if ( mode == ModelerMode.REPORTING_ONLY ) {
  // reparent the reporting panel outside of the tabset
  if ( reportingTabPanel.getChildNodes().size() > 0 && modelPanel.getChildNodes().size() == 0 ) {
   int height = modelPanel.getHeight();
   modelPanel.addComponent( reportingPanel );
   modelPanel.setHeight( height );
  }
  modelDeck.setSelectedIndex( 1 );
  workspace.setCurrentModelerPerspective( ModelerPerspective.REPORTING );
 } else {
  // put the reporting panel back in the tabset
  if ( modelPanel.getChildNodes().size() > 0 && reportingTabPanel.getChildNodes().size() == 0 ) {
   reportingTabPanel.addComponent( reportingPanel );
  }
  modelDeck.setSelectedIndex( 0 );
  if ( modelTabbox.getSelectedIndex() == 0 ) {
   workspace.setCurrentModelerPerspective( ModelerPerspective.ANALYSIS );
  } else {
   workspace.setCurrentModelerPerspective( ModelerPerspective.REPORTING );
  }
 }
 workspace.setModellingMode( mode );
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com