java.awt.CardLayout.previous()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(200)

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

CardLayout.previous介绍

[英]Flips to the previous card of the specified container. If the currently visible card is the first one, this method flips to the last card in the layout.
[中]翻转到指定容器的上一张卡。如果当前可见的卡是第一张卡,则此方法将翻转到布局中的最后一张卡。

代码示例

代码示例来源:origin: stackoverflow.com

public void actionPerformed(ActionEvent e) {
  CardLayout cl = (CardLayout) cards.getLayout();
  cl.previous(cards);

代码示例来源:origin: IanDarwin/javasrc

public void actionPerformed(ActionEvent e) {
    mgr.previous(jf.getContentPane());
  }
}));

代码示例来源:origin: syedlopez/proguard

/**
 * Selects the previous tab.
 */
public void previous()
{
  cardLayout.previous(cardPanel);
  updateButtonSelection();
}

代码示例来源:origin: net.kieker-monitoring/kieker

private void previousStep() {
  this.currentStepIndex--;
  this.mainPanelLayout.previous(this.mainPanel);
  this.nextButton.setEnabled(true);
  this.previousButton.setEnabled(this.currentStepIndex > 0);
  this.saveCurrentConfiguration();
}

代码示例来源:origin: stackoverflow.com

CardLayout layout = new CardLayout();
panelCombination.setLayout(layout);
// add all panels.
....
private void PreviousMouseClicked(java.awt.event.MouseEvent evt) { 
  layout.previous(panelCombination);

代码示例来源:origin: kieker-monitoring/kieker

private void previousStep() {
  this.currentStepIndex--;
  this.mainPanelLayout.previous(this.mainPanel);
  this.nextButton.setEnabled(true);
  this.previousButton.setEnabled(this.currentStepIndex > 0);
  this.saveCurrentConfiguration();
}

代码示例来源:origin: orbisgis/orbisgis

@Override
    public void actionPerformed(ActionEvent e) {
        index--;
        layout.previous(mainPanel);
        updateButtonsStatus();
    }
});

代码示例来源:origin: sing-group/GC4S

private void showPrevioustStep() {
  if(canMoveToPreviousStep()) {
    this.wizardMainPanelLayout.previous(this.wizardMainPanel);
    this.currentStep--;
    this.stepChanged();
  }
}

代码示例来源:origin: stackoverflow.com

cardlayout.previous(pageHolder);

代码示例来源:origin: robo-code/robocode

public void back() {
  currentIndex--;
  getWizardController().stateChanged(null);
  getCardLayout().previous(this);
}

代码示例来源:origin: onyxbits/dummydroid

public void actionPerformed(ActionEvent e) {
  CardLayout layout = (CardLayout) formContainer.getLayout();
  if (type == FORWARD) {
    try {
      getCurrent().commitForm();
      layout.next(formContainer);
    }
    catch (Exception exp) {
      JOptionPane.showMessageDialog(null, exp.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
      exp.printStackTrace();
      return;
    }
  }
  if (type == BACK) {
    layout.previous(formContainer);
  }
  toScreen();
}

代码示例来源:origin: stackoverflow.com

@Override
public void actionPerformed(ActionEvent event) {
   cards.previous(cardPanel);

代码示例来源:origin: edu.stanford.protege/org.coode.owlviz

/**
 * Programmatically causes the Wizard to display
 * the previous page.  If the Wizard is already
 * on the first page then nothing happens.
 */
public void prevPage()
{
  currentPage--;
  if(currentPage < 0)
  {
    currentPage = 0;
  }
  else
  {
    getPagePanelLayout().previous(pagePanel);
    setButtonState();
    firePageChangedEvent();
  }
}

代码示例来源:origin: stackoverflow.com

switchPanels.previous(panelCombination);

代码示例来源:origin: stackoverflow.com

public void actionPerformed(ActionEvent ae) {
  cl.previous(cards);

代码示例来源:origin: stackoverflow.com

public void actionPerformed(ActionEvent ae) {
  cl.previous(cards);

代码示例来源:origin: stackoverflow.com

public void actionPerformed(ActionEvent e) {
  CardLayout cl = (CardLayout) cards.getLayout();
  cl.previous(cards);

代码示例来源:origin: stackoverflow.com

cardlayout.previous(cardHolder);

代码示例来源:origin: stackoverflow.com

layout.previous(panel);

代码示例来源:origin: stackoverflow.com

public void actionPerformed(ActionEvent evt) {
  CardLayout cardLayout = (CardLayout) panelContainer.getLayout();
  cardLayout.previous(panelContainer);

相关文章