Package com.intellij.ui.components

Examples of com.intellij.ui.components.JBViewport


        isLoading = loading;
        updateBackground(loading);
    }

    public void updateBackground(final boolean readonly) {
        final JBViewport viewport = UIUtil.getParentOfType(JBViewport.class, this);
        if (viewport != null) {
            new ConditionalLaterInvocator() {
                @Override
                public void execute() {
                    DataGridTextAttributes attributes = cellRenderer.getAttributes();
                    Color background = readonly ?
                            attributes.getLoadingData(false).getBgColor() :
                            attributes.getPlainData(false, false).getBgColor();
                    viewport.setBackground(background);
                    viewport.repaint();
                }
            }.start();
        }
    }
View Full Code Here

TOP

Related Classes of com.intellij.ui.components.JBViewport

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.