Examples of ChangeListener


Examples of javax.swing.event.ChangeListener

   
    dateLaterRadionButton = new JRadioButton();
    dateModel = new SpinnerDateModel();
    final JSpinner dateSpinner = new JSpinner(dateModel);
    dateSpinner.setEnabled(false);
    dateLaterRadionButton.addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent e) {
        dateSpinner.setEnabled(dateLaterRadionButton.isSelected());
      }     
    });
    builder.append("", dateLaterRadionButton, dateSpinner);
View Full Code Here

Examples of javax.swing.event.ChangeListener

     {

       /* set up the controls */
       // checkbox for read/not-read on table load
       _showClobChk.setSelected(_readClobs);
       _showClobChk.addChangeListener(new ChangeListener()
       {
         public void stateChanged(ChangeEvent e)
         {
           _clobTypeDrop.setEnabled(_showClobChk.isSelected());
           _typeDropLabel.setEnabled(_showClobChk.isSelected());
View Full Code Here

Examples of javax.swing.event.ChangeListener

      positionSlider.setOpaque(false);
      positionSlider.setValue(0);
      positionSlider.setMinimum(0);
      positionSlider.setMaximum(0);
      positionSlider.setEnabled(false);
      positionSlider.addChangeListener(new ChangeListener() {

        public void stateChanged(ChangeEvent e)
        {  // note: this gets called whether the user updates it, or whether it is updated automatically.
         
          if (suppressProgressChangeNotification)
View Full Code Here

Examples of javax.swing.event.ChangeListener

      volumeSlider.setMaximum(100);
      volumeSlider.setValue(70);
      volumeSlider.setPreferredSize(new Dimension(100, 29));
      volumeSlider.setOpaque(false);
      volumeSlider.addChangeListener(
          new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
              if (!volumeSlider.getValueIsAdjusting()) {
                float newValue = (float) volumeSlider.getValue() / 100.0f;
                setGain(newValue);
              }
View Full Code Here

Examples of javax.swing.event.ChangeListener

    pan = builder.getPanel();
    pan.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    add(pan, BorderLayout.CENTER);

    namesNatbib.addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent changeEvent) {
        abbrNames.setEnabled(!namesNatbib.isSelected());
        lastNamesOnly.setEnabled(!namesNatbib.isSelected());
        noAbbrNames.setEnabled(!namesNatbib.isSelected());
      }
View Full Code Here

Examples of javax.swing.event.ChangeListener

        inspectionWarnDupli.setMargin(marg);

       
        // We need a listener on useImportInspector to enable and disable the
        // import inspector related choices;
        useImportInspector.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent event) {
                useImportInspectorForSingle.setEnabled(useImportInspector.isSelected());
                inspectionWarnDupli.setEnabled(useImportInspector.isSelected());
            }
        });
View Full Code Here

Examples of javax.swing.event.ChangeListener

    if (searchAll.isSelected()) {
        searchReq.setEnabled(false);
        searchOpt.setEnabled(false);
        searchGen.setEnabled(false);
    }
    searchAll.addChangeListener(new ChangeListener() {
        public void stateChanged(ChangeEvent event) {
            boolean state = !searchAll.isSelected();
            searchReq.setEnabled(state);
            searchOpt.setEnabled(state);
            searchGen.setEnabled(state);
View Full Code Here

Examples of javax.swing.event.ChangeListener

            moveRadioButton.setEnabled(true);
            renameToTextBox.setEnabled(true);
            renameCheckBox.setEnabled(true);
        }
       
        ChangeListener cl = new ChangeListener() {
      public void stateChanged(ChangeEvent arg0) {
        renameCheckBox.setEnabled(!linkInPlace.isSelected()
            &&  (!multipleEntries));
        renameToTextBox.setEnabled(!linkInPlace.isSelected()
            &&  (!multipleEntries));
        if (multipleEntries) { renameToTextBox.setText("Multiple entries"); }
      }
    };

    if (multipleEntries) {
      linkInPlace.setText(Globals
          .lang("Leave files in their current directory."));
      copyRadioButton.setText(Globals.lang("Copy files to file directory."));

      moveRadioButton.setText(Globals.lang("Move files to file directory."));
    } else {
      linkInPlace.setText(Globals
          .lang("Leave file in its current directory."));
      copyRadioButton.setText(Globals.lang("Copy file to file directory."));
      moveRadioButton.setText(Globals.lang("Move file to file directory."));
    }
   
        renameCheckBox.setText(Globals.lang("Rename file to") + ": ");
        renameToTextBox.setText(citeKey == null ? "default" : citeKey + "." + fileType.extension);
        linkInPlace.addChangeListener(cl);
        cl.stateChanged(new ChangeEvent(linkInPlace));

        try {
          Object[] messages = {"How would you like to link to " + linkFileName + "?", optionsPanel};
            return JOptionPane.showConfirmDialog(frame, messages, dialogTitle,
                JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
View Full Code Here

Examples of nextapp.echo2.app.event.ChangeListener

        private static final long serialVersionUID = 1L;

        public PosSelectionModel() {
            super();
            this.addChangeListener(new ChangeListener() {

                private static final long serialVersionUID = 1L;

                public void stateChanged(ChangeEvent arg0) {
                    logger.debug("Index: " + getMinSelectedIndex() + ", " + getMaxSelectedIndex());
View Full Code Here

Examples of org.apache.hdt.core.launch.AbstractHadoopCluster.ChangeListener

    final Composite panel = new Composite(parent, SWT.FILL);
    GridLayout glayout = new GridLayout(2, false);
    panel.setLayout(glayout);
    final HadoopConfigurationBuilder uiConfigurationBuilder = location.getUIConfigurationBuilder();
    uiConfigurationBuilder.setChangeListener(new ChangeListener() {
     
      @Override
      public void notifyChange(ConfProp prop, String propValue) {
        Display.getDefault().syncExec(new Runnable() {
          public void run() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.