Examples of ScrollPanePeer


Examples of java.awt.peer.ScrollPanePeer

   * Invoked when the value of the adjustable has changed.
   */
        public void adjustmentValueChanged(AdjustmentEvent e) {
      Adjustable adj = e.getAdjustable();
      int value = e.getValue();
      ScrollPanePeer peer = (ScrollPanePeer) scroller.peer;
      if (peer != null) {
    peer.setValue(adj, value);
      }

      Component c = scroller.getComponent(0);
      switch(adj.getOrientation()) {
      case Adjustable.VERTICAL:
View Full Code Here

Examples of java.awt.peer.ScrollPanePeer

     * Invoked when the value of the adjustable has changed.
     */  
    public void adjustmentValueChanged(AdjustmentEvent e) {
  Adjustable adj = e.getAdjustable();
  int value = e.getValue();
  ScrollPanePeer peer = (ScrollPanePeer) scroller.peer;
  if (peer != null) {
      peer.setValue(adj, value);
  }

  Component c = scroller.getComponent(0);
        switch(adj.getOrientation()) {
  case Adjustable.VERTICAL:
View Full Code Here

Examples of java.awt.peer.ScrollPanePeer

     * @return the height of a horizontal scrollbar in pixels
     */
    public int getHScrollbarHeight() {
        int h = 0;
        if (scrollbarDisplayPolicy != SCROLLBARS_NEVER) {
            ScrollPanePeer peer = (ScrollPanePeer)this.peer;
            if (peer != null) {
                h = peer.getHScrollbarHeight();
            }
        }
        return h;
    }
View Full Code Here

Examples of java.awt.peer.ScrollPanePeer

     * @return the width of a vertical scrollbar in pixels
     */
    public int getVScrollbarWidth() {
        int w = 0;
        if (scrollbarDisplayPolicy != SCROLLBARS_NEVER) {
            ScrollPanePeer peer = (ScrollPanePeer)this.peer;
            if (peer != null) {
                w = peer.getVScrollbarWidth();
            }
        }
        return w;
    }
View Full Code Here

Examples of java.awt.peer.ScrollPanePeer

        Dimension cs = calculateChildSize();
        Dimension vs = getViewportSize();
        Insets i = getInsets();

        c.reshape(i.left - p.x, i.top - p.y, cs.width, cs.height);
        ScrollPanePeer peer = (ScrollPanePeer)this.peer;
        if (peer != null) {
            peer.childResized(cs.width, cs.height);
        }

        // update adjustables... the viewport size may have changed
        // with the scrollbars coming or going so the viewport size
        // is updated before the adjustables.
View Full Code Here

Examples of java.awt.peer.ScrollPanePeer

         * Invoked when the value of the adjustable has changed.
         */
        public void adjustmentValueChanged(AdjustmentEvent e) {
            Adjustable adj = e.getAdjustable();
            int value = e.getValue();
            ScrollPanePeer peer = (ScrollPanePeer) scroller.peer;
            if (peer != null) {
                peer.setValue(adj, value);
            }

            Component c = scroller.getComponent(0);
            switch(adj.getOrientation()) {
            case Adjustable.VERTICAL:
View Full Code Here

Examples of java.awt.peer.ScrollPanePeer

     * Invoked when the value of the adjustable has changed.
     */
    public void adjustmentValueChanged(AdjustmentEvent e) {
        Adjustable adj = e.getAdjustable();
        int value = e.getValue();
        ScrollPanePeer peer = (ScrollPanePeer) scroller.peer;
        if (peer != null) {
            peer.setValue(adj, value);
        }

        Component c = scroller.getComponent(0);
        switch(adj.getOrientation()) {
        case Adjustable.VERTICAL:
View Full Code Here

Examples of java.awt.peer.ScrollPanePeer

     * @return the width of a vertical scrollbar in pixels
     */
    public int getVScrollbarWidth() {
        int w = 0;
        if (scrollbarDisplayPolicy != SCROLLBARS_NEVER) {
            ScrollPanePeer peer = (ScrollPanePeer)this.peer;
            if (peer != null) {
                w = peer.getVScrollbarWidth();
            }
        }
        return w;
    }
View Full Code Here

Examples of java.awt.peer.ScrollPanePeer

        Dimension cs = calculateChildSize();
        Dimension vs = getViewportSize();
        Insets i = getInsets();

        c.reshape(i.left - p.x, i.top - p.y, cs.width, cs.height);
        ScrollPanePeer peer = (ScrollPanePeer)this.peer;
        if (peer != null) {
            peer.childResized(cs.width, cs.height);
        }

        // update adjustables... the viewport size may have changed
        // with the scrollbars coming or going so the viewport size
        // is updated before the adjustables.
View Full Code Here

Examples of java.awt.peer.ScrollPanePeer

         * Invoked when the value of the adjustable has changed.
         */
        public void adjustmentValueChanged(AdjustmentEvent e) {
            Adjustable adj = e.getAdjustable();
            int value = e.getValue();
            ScrollPanePeer peer = (ScrollPanePeer) scroller.peer;
            if (peer != null) {
                peer.setValue(adj, value);
            }

            Component c = scroller.getComponent(0);
            switch(adj.getOrientation()) {
            case Adjustable.VERTICAL:
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.