Java 类java.awt.ScrollPane 实例源码

项目:javase    文件:JScrollPaneDemo.java   
public static void main(String[] args) {
    JFrame f = new JFrame("表格效果");
    JPanel p = new JPanel();
    p.setLayout(new GridLayout(10, 5));
    JTextField[] cells = new JTextField[50];
    for (int i = 0; i < 50; i++) {
        cells[i] = new JTextField(String.valueOf(i), 5);
        p.add(cells[i]);
    }
    ScrollPane sp = new ScrollPane();// 滚动面板
    sp.add(p);
    f.add(sp, "Center");
    f.setSize(270, 200);
    f.setLocation(450, 200);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setVisible(true);
}
项目:OpenJSharp    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.Level.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.Level.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:jdk8u-jdk    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.Level.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.Level.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:jdk8u-jdk    文件:ScrollPanePreferredSize.java   
public static void main(final String[] args) {
    final Dimension expected = new Dimension(300, 300);
    final Frame frame = new Frame();
    final ScrollPane sp = new ScrollPane();
    sp.setSize(expected);
    frame.add(sp);
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
    sleep();
    final Dimension size = frame.getSize();
    if (size.width < expected.width || size.height < expected.height) {
        throw new RuntimeException(
                "Expected size: >= " + expected + ", actual size: " + size);
    }
    frame.dispose();
}
项目:openjdk-jdk10    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.Level.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.Level.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:openjdk-jdk10    文件:ScrollPanePreferredSize.java   
public static void main(final String[] args) {
    final Dimension expected = new Dimension(300, 300);
    final Frame frame = new Frame();
    final ScrollPane sp = new ScrollPane();
    sp.setSize(expected);
    frame.add(sp);
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
    sleep();
    final Dimension size = frame.getSize();
    if (size.width < expected.width || size.height < expected.height) {
        throw new RuntimeException(
                "Expected size: >= " + expected + ", actual size: " + size);
    }
    frame.dispose();
}
项目:openjdk9    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.Level.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.Level.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:openjdk9    文件:ScrollPanePreferredSize.java   
public static void main(final String[] args) {
    final Dimension expected = new Dimension(300, 300);
    final Frame frame = new Frame();
    final ScrollPane sp = new ScrollPane();
    sp.setSize(expected);
    frame.add(sp);
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
    sleep();
    final Dimension size = frame.getSize();
    if (size.width < expected.width || size.height < expected.height) {
        throw new RuntimeException(
                "Expected size: >= " + expected + ", actual size: " + size);
    }
    frame.dispose();
}
项目:cosmic    文件:VncClient.java   
private Frame createVncClientMainWindow(final BufferedImageCanvas canvas, final String title) {
    // Create AWT windows
    final Frame frame = new Frame(title + " - VNCle");

    // Use scrolling pane to support screens, which are larger than ours
    final ScrollPane scroller = new ScrollPane(ScrollPane.SCROLLBARS_AS_NEEDED);
    scroller.add(canvas);
    scroller.setSize(screen.getFramebufferWidth(), screen.getFramebufferHeight());

    frame.add(scroller);
    frame.pack();
    frame.setVisible(true);

    frame.addWindowListener(new WindowAdapter() {
        @Override
        public void windowClosing(final WindowEvent evt) {
            frame.setVisible(false);
            shutdown();
        }
    });

    return frame;
}
项目:ChAsE    文件:OPAppletViewFrame.java   
public void setScroll( boolean hasScroll ) {

    if( this.hasScroll == hasScroll ) {

        return;
    }

    this.hasScroll = hasScroll;
    if( hasScroll ) {

        this.remove(procApp);
        ScrollPane sp = new ScrollPane(ScrollPane.SCROLLBARS_AS_NEEDED);
        sp.add(procApp);
        this.add( sp,"Center");
        this.validate();
        this.repaint();
    }
    else {

        this.removeAll();
        this.add( procApp,"Center");
        procApp.invalidate();
        this.validate();
        this.repaint();
    }               
}
项目:jdk8u_jdk    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.Level.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.Level.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:jdk8u_jdk    文件:ScrollPanePreferredSize.java   
public static void main(final String[] args) {
    final Dimension expected = new Dimension(300, 300);
    final Frame frame = new Frame();
    final ScrollPane sp = new ScrollPane();
    sp.setSize(expected);
    frame.add(sp);
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
    sleep();
    final Dimension size = frame.getSize();
    if (size.width < expected.width || size.height < expected.height) {
        throw new RuntimeException(
                "Expected size: >= " + expected + ", actual size: " + size);
    }
    frame.dispose();
}
项目:lookaside_java-1.8.0-openjdk    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.Level.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.Level.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:ScrollPanePreferredSize.java   
public static void main(final String[] args) {
    final Dimension expected = new Dimension(300, 300);
    final Frame frame = new Frame();
    final ScrollPane sp = new ScrollPane();
    sp.setSize(expected);
    frame.add(sp);
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
    sleep();
    final Dimension size = frame.getSize();
    if (size.width < expected.width || size.height < expected.height) {
        throw new RuntimeException(
                "Expected size: >= " + expected + ", actual size: " + size);
    }
    frame.dispose();
}
项目:infobip-open-jdk-8    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.Level.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.Level.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:infobip-open-jdk-8    文件:ScrollPanePreferredSize.java   
public static void main(final String[] args) {
    final Dimension expected = new Dimension(300, 300);
    final Frame frame = new Frame();
    final ScrollPane sp = new ScrollPane();
    sp.setSize(expected);
    frame.add(sp);
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
    sleep();
    final Dimension size = frame.getSize();
    if (size.width < expected.width || size.height < expected.height) {
        throw new RuntimeException(
                "Expected size: >= " + expected + ", actual size: " + size);
    }
    frame.dispose();
}
项目:jdk8u-dev-jdk    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.Level.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.Level.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:jdk8u-dev-jdk    文件:ScrollPanePreferredSize.java   
public static void main(final String[] args) {
    final Dimension expected = new Dimension(300, 300);
    final Frame frame = new Frame();
    final ScrollPane sp = new ScrollPane();
    sp.setSize(expected);
    frame.add(sp);
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
    sleep();
    final Dimension size = frame.getSize();
    if (size.width < expected.width || size.height < expected.height) {
        throw new RuntimeException(
                "Expected size: >= " + expected + ", actual size: " + size);
    }
    frame.dispose();
}
项目:AndrOBD    文件:PvExplorer.java   
@Override
public void mouseClicked(MouseEvent e)
{
    if (e.getClickCount() > 1)
    {
        // find the process var to selected row ...
        ProcessVar pv = (ProcessVar) pvTable.getPvModel().getElementAt(pvTable.getSelectedRow());
        // and show a detail panel about it ...
        if (pv != null)
        {
            PvDetailPanel panDetail = new PvDetailPanel((ProcessVar) pv, true);
            ScrollPane panScr = new ScrollPane();
            panScr.setPreferredSize(new Dimension(640, 480));
            panScr.add(panDetail);
            JOptionPane.showMessageDialog(null, panScr);
        }
    }
}
项目:jdk7-jdk    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:openjdk-source-code-learn    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:3D_Viewer    文件:PointListDialog.java   
/**
 * Constructs an empty PointListDialog
 * 
 * @param owner
 */
public PointListDialog(final Frame owner) {
    super(owner, "Point list");
    panel = new Panel();
    gridbag = new GridBagLayout();
    panel.setLayout(gridbag);

    panel.setBackground(Color.WHITE);
    c = new GridBagConstraints();
    c.gridx = 0;
    c.gridy = 0;
    c.anchor = GridBagConstraints.NORTHWEST;
    c.weighty = 0.1f;
    c.fill = GridBagConstraints.NONE;
    final ScrollPane scroll = new ScrollPane();
    scroll.add(panel);
    add(scroll);
}
项目:OLD-OpenJDK8    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.Level.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.Level.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:OLD-OpenJDK8    文件:ScrollPanePreferredSize.java   
public static void main(final String[] args) {
    final Dimension expected = new Dimension(300, 300);
    final Frame frame = new Frame();
    final ScrollPane sp = new ScrollPane();
    sp.setSize(expected);
    frame.add(sp);
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
    sleep();
    final Dimension size = frame.getSize();
    if (size.width < expected.width || size.height < expected.height) {
        throw new RuntimeException(
                "Expected size: >= " + expected + ", actual size: " + size);
    }
    frame.dispose();
}
项目:silvie    文件:Preview.java   
/**
 * Preview constructor. It creates the AWT components and displays the
 * default text.
 */
public Preview() {
    this.previewFrame = new Frame(FRAME_TITLE);
    this.previewFrame.setIconImage(SilvieGUI.getCachedIcon(SilvieGUI.SILVER_ICON_PATH).getImage());
    this.previewFrame.addWindowListener(new WindowAdapter() {
        @Override
        public void windowClosing(WindowEvent e) {
            Preview.this.previewFrame.setVisible(false);
        }
    });
    this.scrollPane = new ScrollPane();
    this.scrollPane.getVAdjustable().setUnitIncrement(SCROLL_UNIT_INCREMENT);
    this.scrollPane.getHAdjustable().setUnitIncrement(SCROLL_UNIT_INCREMENT);
    this.scrollPane.setPreferredSize(new Dimension(SCROLLPANE_PREFERRED_WIDTH, SCROLLPANE_PREFERRED_HEIGHT));
    this.panel = new Panel();
    new PanelMouseDrag(this.scrollPane, this.panel);
    this.panel.setBackground(BACKGROUND_COLOR);
    // GridBagLayout centers Canvas components by default
    this.panel.setLayout(new GridBagLayout());
    this.scrollPane.add(this.panel);
    this.previewFrame.add(this.scrollPane);
    displayDefaultText();
    this.previewFrame.pack();
}
项目:openjdk-jdk7u-jdk    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:cloudstack    文件:VncClient.java   
private Frame createVncClientMainWindow(BufferedImageCanvas canvas, String title) {
    // Create AWT windows
    final Frame frame = new Frame(title + " - VNCle");

    // Use scrolling pane to support screens, which are larger than ours
    ScrollPane scroller = new ScrollPane(ScrollPane.SCROLLBARS_AS_NEEDED);
    scroller.add(canvas);
    scroller.setSize(screen.getFramebufferWidth(), screen.getFramebufferHeight());

    frame.add(scroller);
    frame.pack();
    frame.setVisible(true);

    frame.addWindowListener(new WindowAdapter() {
        @Override
        public void windowClosing(WindowEvent evt) {
            frame.setVisible(false);
            shutdown();
        }
    });

    return frame;
}
项目:cloudstack    文件:Client.java   
protected static Frame createVncClientMainWindow(BufferedImageCanvas canvas, String title, WindowListener windowListener) {
    // Create AWT windows
    Frame frame = new Frame(title + " - RDP");

    // Use scrolling pane to support screens, which are larger than ours
    scroller = new ScrollPane(ScrollPane.SCROLLBARS_AS_NEEDED);
    scroller.add(canvas);
    scroller.setSize(canvas.getWidth(), canvas.getHeight());

    frame.add(scroller);
    frame.pack();
    frame.setVisible(true);

    frame.addWindowListener(windowListener);

    return frame;
}
项目:jmg    文件:MidiCommunication.java   
private void fillFrame(Frame f, List dataList, MidiDevice.Info[] info) {
    try {
        f.setSize(340, 200);
        f.setLocation(Toolkit.getDefaultToolkit().getScreenSize().width / 2 - 170, 
                      Toolkit.getDefaultToolkit().getScreenSize().height / 2 - 100);
        String[] data = new String[info.length];
        data[0] = "" + info[0];
        data[1] = "" + info[1];
        for(int i=2; i< info.length; i++) {
            data[i] = MidiSystem.getMidiDevice(info[i]).toString();
        }
        for(int i=0; i< info.length; i++) {
            dataList.add(data[i]);
        }
        ScrollPane scrollPane = new ScrollPane();
        scrollPane.add(dataList);
        f.add(scrollPane);
    } catch (Exception e) {
        System.out.println (e);
        System.exit (0);
    }

}
项目:openjdk-icedtea7    文件:ScrollPaneWheelScroller.java   
public static void handleWheelScrolling(ScrollPane sp, MouseWheelEvent e) {
    if (log.isLoggable(PlatformLogger.FINER)) {
        log.finer("x = " + e.getX() + ", y = " + e.getY() + ", src is " + e.getSource());
    }
    int increment = 0;

    if (sp != null && e.getScrollAmount() != 0) {
        Adjustable adj = getAdjustableToScroll(sp);
        if (adj != null) {
            increment = getIncrementFromAdjustable(adj, e);
            if (log.isLoggable(PlatformLogger.FINER)) {
                log.finer("increment from adjustable(" + adj.getClass() + ") : " + increment);
            }
            scrollAdjustable(adj, increment);
        }
    }
}
项目:NotifyTools    文件:AwtScrollPanePersistenceDelegate.java   
@Override
protected Expression instantiate(Object oldInstance, Encoder enc) {
    return new Expression(oldInstance, oldInstance.getClass(),
            BeansUtils.NEW,
            new Object[] { ((ScrollPane) oldInstance)
                    .getScrollbarDisplayPolicy() });
}
项目:javase    文件:ScrollPaneDemo.java   
ScrollPaneDemo() {
    panel = new JPanel(new GridLayout(10, 5));
    button = new Button[50];
    for (int i = 0; i < button.length; i++) {
        button[i] = new Button("按钮" + i);
        panel.add(button[i]);
    }
    scrollPane = new ScrollPane();
    scrollPane.add(panel);
    add(scrollPane, "Center");
    setBounds(300, 300, 200, 200);
    setVisible(true);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
项目:openjdk-jdk10    文件:ScrollPaneOperator.java   
/**
 * Maps {@code ScrollPane.getHAdjustable()} through queue
 */
public Adjustable getHAdjustable() {
    return (runMapping(new MapAction<Adjustable>("getHAdjustable") {
        @Override
        public Adjustable map() {
            return ((ScrollPane) getSource()).getHAdjustable();
        }
    }));
}
项目:openjdk-jdk10    文件:ScrollPaneOperator.java   
/**
 * Maps {@code ScrollPane.getHScrollbarHeight()} through queue
 */
public int getHScrollbarHeight() {
    return (runMapping(new MapIntegerAction("getHScrollbarHeight") {
        @Override
        public int map() {
            return ((ScrollPane) getSource()).getHScrollbarHeight();
        }
    }));
}
项目:openjdk-jdk10    文件:ScrollPaneOperator.java   
/**
 * Maps {@code ScrollPane.getScrollPosition()} through queue
 */
public Point getScrollPosition() {
    return (runMapping(new MapAction<Point>("getScrollPosition") {
        @Override
        public Point map() {
            return ((ScrollPane) getSource()).getScrollPosition();
        }
    }));
}
项目:openjdk-jdk10    文件:ScrollPaneOperator.java   
/**
 * Maps {@code ScrollPane.getScrollbarDisplayPolicy()} through queue
 */
public int getScrollbarDisplayPolicy() {
    return (runMapping(new MapIntegerAction("getScrollbarDisplayPolicy") {
        @Override
        public int map() {
            return ((ScrollPane) getSource()).getScrollbarDisplayPolicy();
        }
    }));
}
项目:openjdk-jdk10    文件:ScrollPaneOperator.java   
/**
 * Maps {@code ScrollPane.getVAdjustable()} through queue
 */
public Adjustable getVAdjustable() {
    return (runMapping(new MapAction<Adjustable>("getVAdjustable") {
        @Override
        public Adjustable map() {
            return ((ScrollPane) getSource()).getVAdjustable();
        }
    }));
}
项目:openjdk-jdk10    文件:ScrollPaneOperator.java   
/**
 * Maps {@code ScrollPane.getVScrollbarWidth()} through queue
 */
public int getVScrollbarWidth() {
    return (runMapping(new MapIntegerAction("getVScrollbarWidth") {
        @Override
        public int map() {
            return ((ScrollPane) getSource()).getVScrollbarWidth();
        }
    }));
}
项目:openjdk-jdk10    文件:ScrollPaneOperator.java   
/**
 * Maps {@code ScrollPane.getViewportSize()} through queue
 */
public Dimension getViewportSize() {
    return (runMapping(new MapAction<Dimension>("getViewportSize") {
        @Override
        public Dimension map() {
            return ((ScrollPane) getSource()).getViewportSize();
        }
    }));
}
项目:openjdk-jdk10    文件:ScrollPaneOperator.java   
/**
 * Maps {@code ScrollPane.paramString()} through queue
 */
public String paramString() {
    return (runMapping(new MapAction<String>("paramString") {
        @Override
        public String map() {
            return ((ScrollPane) getSource()).paramString();
        }
    }));
}