gpt4 book ai didi

org.pentaho.ui.xul.containers.XulDeck.getSelectedIndex()方法的使用及代码示例

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

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

XulDeck.getSelectedIndex介绍

暂无

代码示例

代码示例来源: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/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/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/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 );
}

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