Tabnine Logo
WizardDialog
Code IndexAdd Tabnine to your IDE (free)

How to use
WizardDialog
in
org.jfree.ui

Best Java code snippets using org.jfree.ui.WizardDialog (Showing top 18 results out of 315)

origin: org.jfree/com.springsource.org.jfree

/**
 * Enables/disables the buttons according to the current step.  A good idea would be to ask the
 * panels to return the status...
 */
private void enableButtons() {
  this.previousButton.setEnabled(this.step > 0);
  this.nextButton.setEnabled(canDoNextPanel());
  this.finishButton.setEnabled(canFinish());
  this.helpButton.setEnabled(false);
}
origin: org.jfree/jcommon

/**
 * Standard constructor - builds a new WizardDialog owned by the specified JFrame.
 *
 * @param owner  the owner.
 * @param modal  modal?
 * @param title  the title.
 * @param firstPanel  the first panel.
 */
public WizardDialog(final JFrame owner, final boolean modal,
          final String title, final WizardPanel firstPanel) {
  super(owner, title + " : step 1", modal);
  this.result = null;
  this.currentPanel = firstPanel;
  this.step = 0;
  this.panels = new ArrayList();
  this.panels.add(firstPanel);
  setContentPane(createContent());
}
origin: org.jfree/jcommon

/**
 * Handles a click on the "previous" button, by displaying the previous panel in the sequence.
 */
public void previous() {
  if (this.step > 0) {
    final WizardPanel previousPanel = getWizardPanel(this.step - 1);
    // tell the panel that we are returning
    previousPanel.returnFromLaterStep();
    final Container content = getContentPane();
    content.remove(this.currentPanel);
    content.add(previousPanel);
    this.step = this.step - 1;
    this.currentPanel = previousPanel;
    setTitle("Step " + (this.step + 1));
    enableButtons();
    pack();
  }
}
origin: org.jfree/jcommon

/**
 * Handles events.
 *
 * @param event  the event.
 */
public void actionPerformed(final ActionEvent event) {
  final String command = event.getActionCommand();
  if (command.equals("nextButton")) {
    next();
  }
  else if (command.equals("previousButton")) {
    previous();
  }
  else if (command.equals("finishButton")) {
    finish();
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Handles events.
 *
 * @param event  the event.
 */
public void actionPerformed(final ActionEvent event) {
  final String command = event.getActionCommand();
  if (command.equals("nextButton")) {
    next();
  }
  else if (command.equals("previousButton")) {
    previous();
  }
  else if (command.equals("finishButton")) {
    finish();
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Handles a click on the "previous" button, by displaying the previous panel in the sequence.
 */
public void previous() {
  if (this.step > 0) {
    final WizardPanel previousPanel = getWizardPanel(this.step - 1);
    // tell the panel that we are returning
    previousPanel.returnFromLaterStep();
    final Container content = getContentPane();
    content.remove(this.currentPanel);
    content.add(previousPanel);
    this.step = this.step - 1;
    this.currentPanel = previousPanel;
    setTitle("Step " + (this.step + 1));
    enableButtons();
    pack();
  }
}
origin: jfree/jcommon

/**
 * Handles events.
 *
 * @param event  the event.
 */
public void actionPerformed(final ActionEvent event) {
  final String command = event.getActionCommand();
  if (command.equals("nextButton")) {
    next();
  }
  else if (command.equals("previousButton")) {
    previous();
  }
  else if (command.equals("finishButton")) {
    finish();
  }
}
origin: jfree/jcommon

/**
 * Standard constructor - builds a new WizardDialog owned by the specified JFrame.
 *
 * @param owner  the owner.
 * @param modal  modal?
 * @param title  the title.
 * @param firstPanel  the first panel.
 */
public WizardDialog(final JFrame owner, final boolean modal,
          final String title, final WizardPanel firstPanel) {
  super(owner, title + " : step 1", modal);
  this.result = null;
  this.currentPanel = firstPanel;
  this.step = 0;
  this.panels = new ArrayList();
  this.panels.add(firstPanel);
  setContentPane(createContent());
}
origin: jfree/jcommon

/**
 * Enables/disables the buttons according to the current step.  A good idea would be to ask the
 * panels to return the status...
 */
private void enableButtons() {
  this.previousButton.setEnabled(this.step > 0);
  this.nextButton.setEnabled(canDoNextPanel());
  this.finishButton.setEnabled(canFinish());
  this.helpButton.setEnabled(false);
}
origin: jfree/jcommon

/**
 * Handles a click on the "previous" button, by displaying the previous panel in the sequence.
 */
public void previous() {
  if (this.step > 0) {
    final WizardPanel previousPanel = getWizardPanel(this.step - 1);
    // tell the panel that we are returning
    previousPanel.returnFromLaterStep();
    final Container content = getContentPane();
    content.remove(this.currentPanel);
    content.add(previousPanel);
    this.step = this.step - 1;
    this.currentPanel = previousPanel;
    setTitle("Step " + (this.step + 1));
    enableButtons();
    pack();
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Standard constructor - builds and returns a new WizardDialog.
 *
 * @param owner  the owner.
 * @param modal  modal?
 * @param title  the title.
 * @param firstPanel  the first panel.
 */
public WizardDialog(final JDialog owner, final boolean modal,
          final String title, final WizardPanel firstPanel) {
  super(owner, title + " : step 1", modal);
  this.result = null;
  this.currentPanel = firstPanel;
  this.step = 0;
  this.panels = new ArrayList();
  this.panels.add(firstPanel);
  setContentPane(createContent());
}
origin: org.jfree/jcommon

/**
 * Enables/disables the buttons according to the current step.  A good idea would be to ask the
 * panels to return the status...
 */
private void enableButtons() {
  this.previousButton.setEnabled(this.step > 0);
  this.nextButton.setEnabled(canDoNextPanel());
  this.finishButton.setEnabled(canFinish());
  this.helpButton.setEnabled(false);
}
origin: jfree/jcommon

/**
 * Displays the next step in the wizard sequence.
 */
public void next() {
  WizardPanel nextPanel = getWizardPanel(this.step + 1);
  if (nextPanel != null) {
    if (!this.currentPanel.canRedisplayNextPanel()) {
      nextPanel = this.currentPanel.getNextPanel();
    }
  }
  else {
    nextPanel = this.currentPanel.getNextPanel();
  }
  this.step = this.step + 1;
  if (this.step < this.panels.size()) {
    this.panels.set(this.step, nextPanel);
  }
  else {
    this.panels.add(nextPanel);
  }
  final Container content = getContentPane();
  content.remove(this.currentPanel);
  content.add(nextPanel);
  this.currentPanel = nextPanel;
  setTitle("Step " + (this.step + 1));
  enableButtons();
  pack();
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Standard constructor - builds a new WizardDialog owned by the specified JFrame.
 *
 * @param owner  the owner.
 * @param modal  modal?
 * @param title  the title.
 * @param firstPanel  the first panel.
 */
public WizardDialog(final JFrame owner, final boolean modal,
          final String title, final WizardPanel firstPanel) {
  super(owner, title + " : step 1", modal);
  this.result = null;
  this.currentPanel = firstPanel;
  this.step = 0;
  this.panels = new ArrayList();
  this.panels.add(firstPanel);
  setContentPane(createContent());
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Displays the next step in the wizard sequence.
 */
public void next() {
  WizardPanel nextPanel = getWizardPanel(this.step + 1);
  if (nextPanel != null) {
    if (!this.currentPanel.canRedisplayNextPanel()) {
      nextPanel = this.currentPanel.getNextPanel();
    }
  }
  else {
    nextPanel = this.currentPanel.getNextPanel();
  }
  this.step = this.step + 1;
  if (this.step < this.panels.size()) {
    this.panels.set(this.step, nextPanel);
  }
  else {
    this.panels.add(nextPanel);
  }
  final Container content = getContentPane();
  content.remove(this.currentPanel);
  content.add(nextPanel);
  this.currentPanel = nextPanel;
  setTitle("Step " + (this.step + 1));
  enableButtons();
  pack();
}
origin: jfree/jcommon

/**
 * Standard constructor - builds and returns a new WizardDialog.
 *
 * @param owner  the owner.
 * @param modal  modal?
 * @param title  the title.
 * @param firstPanel  the first panel.
 */
public WizardDialog(final JDialog owner, final boolean modal,
          final String title, final WizardPanel firstPanel) {
  super(owner, title + " : step 1", modal);
  this.result = null;
  this.currentPanel = firstPanel;
  this.step = 0;
  this.panels = new ArrayList();
  this.panels.add(firstPanel);
  setContentPane(createContent());
}
origin: org.jfree/jcommon

/**
 * Displays the next step in the wizard sequence.
 */
public void next() {
  WizardPanel nextPanel = getWizardPanel(this.step + 1);
  if (nextPanel != null) {
    if (!this.currentPanel.canRedisplayNextPanel()) {
      nextPanel = this.currentPanel.getNextPanel();
    }
  }
  else {
    nextPanel = this.currentPanel.getNextPanel();
  }
  this.step = this.step + 1;
  if (this.step < this.panels.size()) {
    this.panels.set(this.step, nextPanel);
  }
  else {
    this.panels.add(nextPanel);
  }
  final Container content = getContentPane();
  content.remove(this.currentPanel);
  content.add(nextPanel);
  this.currentPanel = nextPanel;
  setTitle("Step " + (this.step + 1));
  enableButtons();
  pack();
}
origin: org.jfree/jcommon

/**
 * Standard constructor - builds and returns a new WizardDialog.
 *
 * @param owner  the owner.
 * @param modal  modal?
 * @param title  the title.
 * @param firstPanel  the first panel.
 */
public WizardDialog(final JDialog owner, final boolean modal,
          final String title, final WizardPanel firstPanel) {
  super(owner, title + " : step 1", modal);
  this.result = null;
  this.currentPanel = firstPanel;
  this.step = 0;
  this.panels = new ArrayList();
  this.panels.add(firstPanel);
  setContentPane(createContent());
}
org.jfree.uiWizardDialog

Javadoc

A dialog that presents the user with a sequence of steps for completing a task. The dialog contains "Next" and "Previous" buttons, allowing the user to navigate through the task.

When the user backs up by one or more steps, the dialog keeps the completed steps so that they can be reused if the user doesn't change anything - this handles the cases where the user backs up a few steps just to review what has been completed.

But if the user changes some options in an earlier step, then the dialog may have to discard the later steps and have them repeated.

THIS CLASS IS NOT WORKING CORRECTLY YET.

Most used methods

  • canDoNextPanel
    Returns true if there is a 'next' panel, and false otherwise.
  • canFinish
    Returns true if it is possible to finish the sequence at this point (possibly with defaults for the
  • createContent
    Creates a panel containing the user interface for the dialog.
  • enableButtons
    Enables/disables the buttons according to the current step. A good idea would be to ask the panels t
  • finish
    Finishes the wizard.
  • getContentPane
  • getWizardPanel
    Returns the panel for the specified step (steps are numbered from zero).
  • next
    Displays the next step in the wizard sequence.
  • pack
  • previous
    Handles a click on the "previous" button, by displaying the previous panel in the sequence.
  • setContentPane
  • setTitle
  • setContentPane,
  • setTitle,
  • setVisible

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Join (org.hibernate.mapping)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now