예제 #1
0
 // ==========================================================================
 public void setEnabledComponents(boolean flag) {
   pipe.getjButton2().setEnabled(flag);
   pipe.getjButtonLeft().setEnabled(flag);
   pipe.getjButtonRight().setEnabled(flag);
   pipe.getjComboBoxChain().setEnabled(flag);
   pipe.getjComboBoxDirection().setEnabled(flag);
   pipe.getjComboBoxServiceLevel().setEnabled(flag);
   pipe.getjRadioButtonActive().setEnabled(flag);
   pipe.getjRadioButtonInactive().setEnabled(flag);
 }
예제 #2
0
  // ==========================================================================
  private void addListeners() {

    // save -----------------------------------------------------------------
    pipe.getjButton2()
        .addActionListener(
            new ActionListener() {
              public void actionPerformed(ActionEvent e) {
                try {
                  add();
                } catch (Exception ex) {
                  new Thrower().exception(ex);
                }
              }
            });

    // close ----------------------------------------------------------------
    pipe.getjButton1()
        .addActionListener(
            new ActionListener() {
              public void actionPerformed(ActionEvent e) {
                setVisible(false);
              }
            });

    // left -----------------------------------------------------------------
    pipe.getjButtonLeft()
        .addActionListener(
            new ActionListener() {
              public void actionPerformed(ActionEvent e) {

                try {
                  ViewUtilities.passItemsLeftRigth(
                      pipe.getjListFilterLeft(), pipe.getjListFilterRight());
                } catch (Exception ex) {
                  new Thrower().exception(ex);
                }
              }
            });

    // Right -----------------------------------------------------------------
    pipe.getjButtonRight()
        .addActionListener(
            new ActionListener() {
              public void actionPerformed(ActionEvent e) {

                try {
                  ViewUtilities.passItemsLeftRigth(
                      pipe.getjListFilterRight(), pipe.getjListFilterLeft());
                } catch (Exception ex) {
                  NOTIFICATIONS.error(ex.getMessage(), ex);
                }
              }
            });
  }