コード例 #1
0
  private void setSlideMode() {
    if (slideMode) return;
    slideMode = true;
    pledgePane.stop();
    pledgePane.setVisible(false);
    slidePane.setVisible(true);
    slidePane.start();
    repaint();

    // Give feedback to the controller
    sendStatusCommand(new StatusCommand(StatusCommand.CMD_DISPLAY_MODE_SLIDE));
  }
コード例 #2
0
  private void setPledgeMode(boolean repopulate) {
    if (!slideMode) return;
    slideMode = false;
    slidePane.stop();
    slidePane.setVisible(false);

    // If the pledgePane is empty, fill the queue again.
    if (repopulate && pledgePane.getQueueSize() == 0) {
      Iterator<Pledge> it = pledgeList.iterator();

      while (it.hasNext()) {
        pledgePane.addText(it.next().getText());
      }
    }
    pledgePane.setVisible(true);
    pledgePane.start();
    repaint();

    // Give feedback to the controller
    sendStatusCommand(new StatusCommand(StatusCommand.CMD_DISPLAY_MODE_PLEDGE));
  }