Package java.awt.event

Examples of java.awt.event.AdjustmentListener


    c.weightx = 1.0;
    c.weighty = 0.0;
    indexPanel.add(timeBar, c);
     
    AdjustmentListener barListener = new AdjustmentListener() {
      public void adjustmentValueChanged(AdjustmentEvent e) {
        contributionPanel.repaint();
        statusPanel.repaint();
      }
    };
View Full Code Here


        "insets 5 5 5 5, flowy, novisualpadding, wmax " + maxWidth,
        "[grow]", "[fill]"));

    // make autoscroll
    scroll.getVerticalScrollBar().addAdjustmentListener(
        new AdjustmentListener() {
          boolean wasAtBottom = true;

          JScrollBar scrollBar = scroll.getVerticalScrollBar();
          int currentHeight = allMessage.getHeight();
View Full Code Here

                                 0,
                                 0,
                                 50);
        c.add(sb);
   
        sb.addAdjustmentListener(new AdjustmentListener() {
            public void adjustmentValueChanged(final AdjustmentEvent e) {
                Taktgeber.this.value = e.getValue();
                Taktgeber.this.pars.setVerzoegerung(
                        Taktgeber.this.verzBerechnung());
                Taktgeber.this.wertAusg.setText("" + e.getValue());
View Full Code Here

         ComponentAdapter listenerToRemove = _compListenersToOtherFramesByFrameCtrlr.get(tfc);
         tfc._frame.removeComponentListener(listenerToRemove);
      }

      for(TableFrameController tfc : _scrollListenersToOtherFramesByFrameCtrlr.keySet()) {
         AdjustmentListener listenerToRemove = _scrollListenersToOtherFramesByFrameCtrlr.get(tfc);
         tfc._frame.scrollPane.getVerticalScrollBar().removeAdjustmentListener(listenerToRemove);
      }


   }
View Full Code Here

         };

      _compListenersToOtherFramesByFrameCtrlr.put(tfc, compListener);
      tfc._frame.addComponentListener(compListener);

      AdjustmentListener adjListener = new AdjustmentListener()
      {
         public void adjustmentValueChanged(AdjustmentEvent e)
         {
            recalculateConnectionsTo(tfc);
         }
View Full Code Here

      {
         tfc._frame.removeComponentListener(compListenerToRemove);
      }


      AdjustmentListener adjListenerToRemove =
          _scrollListenersToOtherFramesByFrameCtrlr.remove(tfc);
      if(null != adjListenerToRemove)
      {
         tfc._frame.scrollPane.getVerticalScrollBar().removeAdjustmentListener(adjListenerToRemove);
      }
View Full Code Here

      setOpaque(true);
      add(scrollPane, BorderLayout.CENTER);
    }

    scrollPane.getVerticalScrollBar().addAdjustmentListener(
        new AdjustmentListener()
        {

          public void adjustmentValueChanged(AdjustmentEvent e)
          {
            graphContainer.refresh();
View Full Code Here

                 ((interface_DrawPanel) aReformat).HorizontalVergr(vslider.getValue());
                }
           });

         final JScrollBar sb = new JScrollBar(JScrollBar.HORIZONTAL, 0,20 , 0, 20000);
         sb.addAdjustmentListener(new AdjustmentListener(){
        public void adjustmentValueChanged(AdjustmentEvent event) {
           ((interface_DrawPanel) aReformat).setXWert(event.getValue());

        }
         });
         final JScrollBar sv = new JScrollBar(JScrollBar.VERTICAL, 0,20 , 0, 1000);
         sv.addAdjustmentListener(new AdjustmentListener(){
          public void adjustmentValueChanged(AdjustmentEvent event) {
             ((interface_DrawPanel) aReformat).setYWert(event.getValue());

          }
       });
View Full Code Here

        assertEquals(0, testList.size());
    }

    public void testAdjustmentListener() throws Exception {
        final List<String> test = new Vector<String>();
        bar.addAdjustmentListener(new AdjustmentListener() {
            public void adjustmentValueChanged(final AdjustmentEvent e) {
                test.add("1");
            }
        });
        assertEquals(0, test.size());
View Full Code Here

        assertEquals(1, test.size());
    }

    public void testGetAdjustmentListeners() throws Exception {
        assertEquals(0, bar.getAdjustmentListeners().length);
        AdjustmentListener l = new AdjustmentListener() {
            public void adjustmentValueChanged(final AdjustmentEvent e) {
            }
        };
        bar.addAdjustmentListener(l);
        assertEquals(1, bar.getAdjustmentListeners().length);
View Full Code Here

TOP

Related Classes of java.awt.event.AdjustmentListener

Copyright © 2018 www.massapicom. 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.