类javax.swing.plaf.ViewportUI源码实例Demo

下面列出了怎么用javax.swing.plaf.ViewportUI的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: netbeans   文件: PSheet.java
/**
 * Find the MarginViewportUI owned by the scrollpane, to set up
 * colors, margin, empty string */
private MarginViewportUI findMVUI() {
    MarginViewportUI result = null;
    JScrollPane pane = findScrollPane();

    if (pane != null) {
        ViewportUI ui = pane.getViewport().getUI();

        if (ui instanceof MarginViewportUI) {
            result = (MarginViewportUI) ui;
        } else {
            //L&F changed or something such
            result = (MarginViewportUI) MarginViewportUI.createUI(pane.getViewport());
            pane.getViewport().setUI(result);
        }
    }

    return result;
}
 
源代码2 项目: jdk1.8-source-analysis   文件: JViewport.java
/**
 * Returns the L&F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
源代码3 项目: jdk1.8-source-analysis   文件: JViewport.java
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
源代码4 项目: jdk1.8-source-analysis   文件: JViewport.java
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
源代码5 项目: dragonwell8_jdk   文件: JViewport.java
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
源代码6 项目: dragonwell8_jdk   文件: JViewport.java
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
源代码7 项目: dragonwell8_jdk   文件: JViewport.java
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
源代码8 项目: TencentKona-8   文件: JViewport.java
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
源代码9 项目: TencentKona-8   文件: JViewport.java
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
源代码10 项目: TencentKona-8   文件: JViewport.java
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
源代码11 项目: jdk8u60   文件: JViewport.java
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
源代码12 项目: jdk8u60   文件: JViewport.java
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
源代码13 项目: jdk8u60   文件: JViewport.java
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
源代码14 项目: JDKSourceCode1.8   文件: JViewport.java
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
源代码15 项目: JDKSourceCode1.8   文件: JViewport.java
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
源代码16 项目: JDKSourceCode1.8   文件: JViewport.java
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
源代码17 项目: openjdk-jdk8u   文件: JViewport.java
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
源代码18 项目: openjdk-jdk8u   文件: JViewport.java
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
源代码19 项目: openjdk-jdk8u   文件: JViewport.java
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
源代码20 项目: openjdk-jdk8u-backup   文件: JViewport.java
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
源代码21 项目: openjdk-jdk8u-backup   文件: JViewport.java
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
源代码22 项目: openjdk-jdk8u-backup   文件: JViewport.java
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
源代码23 项目: Bytecoder   文件: JViewport.java
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
源代码24 项目: Bytecoder   文件: JViewport.java
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @since 1.3
 */
@BeanProperty(hidden = true, visualUpdate = true, description
        = "The UI object that implements the Component's LookAndFeel.")
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
源代码25 项目: Bytecoder   文件: JViewport.java
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
源代码26 项目: openjdk-jdk9   文件: JViewport.java
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
源代码27 项目: openjdk-jdk9   文件: JViewport.java
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @since 1.3
 */
@BeanProperty(hidden = true, visualUpdate = true, description
        = "The UI object that implements the Component's LookAndFeel.")
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
源代码28 项目: openjdk-jdk9   文件: JViewport.java
/**
 * Resets the UI property to a value from the current look and feel.
 *
 * @see JComponent#updateUI
 */
public void updateUI() {
    setUI((ViewportUI)UIManager.getUI(this));
}
 
源代码29 项目: jdk8u-jdk   文件: JViewport.java
/**
 * Returns the L&amp;F object that renders this component.
 *
 * @return a <code>ViewportUI</code> object
 * @since 1.3
 */
public ViewportUI getUI() {
    return (ViewportUI)ui;
}
 
源代码30 项目: jdk8u-jdk   文件: JViewport.java
/**
 * Sets the L&amp;F object that renders this component.
 *
 * @param ui  the <code>ViewportUI</code> L&amp;F object
 * @see UIDefaults#getUI
 * @beaninfo
 *        bound: true
 *       hidden: true
 *    attribute: visualUpdate true
 *  description: The UI object that implements the Component's LookAndFeel.
 * @since 1.3
 */
public void setUI(ViewportUI ui) {
    super.setUI(ui);
}
 
 类所在包
 类方法
 同包方法