Examples of addAdjustmentListener()


Examples of com.sun.star.awt.XScrollBar.addAdjustmentListener()

            xSBModelPSet.setPropertyValue("BlockIncrement", new Integer(10));
           
            // Add an Adjustment that will listen to changes of the scrollbar...
            XControl xSBControl = m_xDlgContainer.getControl(sName);
            XScrollBar xScrollBar = (XScrollBar) UnoRuntime.queryInterface(XScrollBar.class, xSBControl);
            xScrollBar.addAdjustmentListener(_xAdjustmentListener);
        } catch (com.sun.star.uno.Exception ex) {
            /* perform individual exception handling here.
             * Possible exception types are:
             * com.sun.star.lang.IllegalArgumentException,
             * com.sun.star.lang.WrappedTargetException,
 
View Full Code Here

Examples of com.sun.star.awt.XScrollBar.addAdjustmentListener()

            xSBModelPSet.setPropertyValue("BlockIncrement", new Integer(10));
           
            // Add an Adjustment that will listen to changes of the scrollbar...
            XControl xSBControl = m_xDlgContainer.getControl(sName);
            XScrollBar xScrollBar = (XScrollBar) UnoRuntime.queryInterface(XScrollBar.class, xSBControl);
            xScrollBar.addAdjustmentListener(_xAdjustmentListener);
        } catch (com.sun.star.uno.Exception ex) {
            /* perform individual exception handling here.
             * Possible exception types are:
             * com.sun.star.lang.IllegalArgumentException,
             * com.sun.star.lang.WrappedTargetException,
 
View Full Code Here

Examples of com.sun.star.awt.XScrollBar.addAdjustmentListener()

            xSBModelPSet.setPropertyValue("BlockIncrement", new Integer(10));
           
            // Add an Adjustment that will listen to changes of the scrollbar...
            XControl xSBControl = m_xDlgContainer.getControl(sName);
            XScrollBar xScrollBar = (XScrollBar) UnoRuntime.queryInterface(XScrollBar.class, xSBControl);
            xScrollBar.addAdjustmentListener(_xAdjustmentListener);
        } catch (com.sun.star.uno.Exception ex) {
            /* perform individual exception handling here.
             * Possible exception types are:
             * com.sun.star.lang.IllegalArgumentException,
             * com.sun.star.lang.WrappedTargetException,
 
View Full Code Here

Examples of com.sun.star.awt.XScrollBar.addAdjustmentListener()

            xSBModelPSet.setPropertyValue("BlockIncrement", new Integer(10));
           
            // Add an Adjustment that will listen to changes of the scrollbar...
            XControl xSBControl = m_xDlgContainer.getControl(sName);
            XScrollBar xScrollBar = (XScrollBar) UnoRuntime.queryInterface(XScrollBar.class, xSBControl);
            xScrollBar.addAdjustmentListener(_xAdjustmentListener);
        } catch (com.sun.star.uno.Exception ex) {
            /* perform individual exception handling here.
             * Possible exception types are:
             * com.sun.star.lang.IllegalArgumentException,
             * com.sun.star.lang.WrappedTargetException,
 
View Full Code Here

Examples of com.sun.star.awt.XScrollBar.addAdjustmentListener()

  Object oScrollModel = insertControlModel("com.sun.star.awt.UnoControlScrollBarModel", sName, sProperties, sValues);
        XPropertySet xPSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, oScrollModel);
        xPSet.setPropertyValue("Name", sName);
        Object oScrollBar = xDlgContainer.getControl( new String(sName));
        XScrollBar xScrollBar = (XScrollBar) UnoRuntime.queryInterface( XScrollBar.class, oScrollBar);
        xScrollBar.addAdjustmentListener(xAdjustmentListener);
        Integer ControlKey = new Integer(iControlKey);
  if (ControlList != null)
      ControlList.put(sName, ControlKey);
  return xScrollBar;
    }
View Full Code Here

Examples of javax.swing.JScrollBar.addAdjustmentListener()

        this.component = view.getViewComponent();
        JScrollBar sb = getVerticalScrollBar();
       
        if (sb != null)
            sb.addAdjustmentListener(this);
    }

    @Override
    public void adjustmentValueChanged(AdjustmentEvent e) {
        if (e.getValueIsAdjusting()) {
View Full Code Here

Examples of javax.swing.JScrollBar.addAdjustmentListener()

    if (groupNames.size() > GROUPS_VISIBLE) {
      final JScrollBar scroll = new JScrollBar(JScrollBar.VERTICAL);
      scroll.setMinimum(0);
      scroll.setMaximum(groupNames.size());
      scroll.addAdjustmentListener(new AdjustmentListener() {

        @Override
        public void adjustmentValueChanged(AdjustmentEvent e) {
          int value = e.getAdjustable().getValue();
          slidingDataset.setFirstCategoryIndex(value);
View Full Code Here

Examples of javax.swing.JScrollBar.addAdjustmentListener()

                 ((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());

        }
         });
View Full Code Here

Examples of javax.swing.JScrollBar.addAdjustmentListener()

           ((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

Examples of javax.swing.JScrollBar.addAdjustmentListener()

      AdjustmentListener[] als = sb.getAdjustmentListeners();
      for (int i = 0; i < als.length; i++)
        sb.removeAdjustmentListener(als[i]);
      sb.setValue(this.value);
      for (int i = 0; i < als.length; i++)
        sb.addAdjustmentListener(als[i]);

      break;
    case MAX:
      AdjustmentListener[] alsx = sb.getAdjustmentListeners();
      for (int i = 0; i < alsx.length; i++)
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.