Package org.openquark.gems.client.utilities

Examples of org.openquark.gems.client.utilities.SmoothHighlightBorder


    public Border getValueEditorBorder(ValueEditor valueEditor) {
        // Value entry panels and pick list value editors always use an etched border
        if (valueEditor instanceof ValueEntryPanel || valueEditor instanceof PickListValueEditor) {
            return BorderFactory.createEtchedBorder();
        } else {
            return new SmoothHighlightBorder(valueEditor.getBackground(), valueEditor.isMoveable());
        }
    }
View Full Code Here


        // manually draw in the background since Java screws it up for some reason.

        setOpaque(false);
        setBackground(BACKGROUND_TINT_COLOR);

        setBorder(new SmoothHighlightBorder(typeColor != null ? typeColor : getBackground(), false));
       
        getIntellicutList().setBackground(TRANSPARENT_COLOR);
        getIntellicutList().setOpaque(false);
        getIntellicutList().setTransparent(true);
       
View Full Code Here

        } else {
           
            setBackground(savedBackgroundColor);

            if (intellicutList.isTransparent()) {
                setBorder(new SmoothHighlightBorder(typeColor != null ? typeColor : getBackground(), false));
            } else {
                setBorder(BorderFactory.createEtchedBorder());
            }

            getTopPanel().setVisible(true);
View Full Code Here

        this.ownerValueNode = newValueNode;
        this.valueNode = newValueNode.copyValueNode();

        if (getBorder() instanceof SmoothHighlightBorder) {
            Color typeColor = valueEditorManager.getTypeColour(valueNode.getTypeExpr());
            setBorder(new SmoothHighlightBorder(typeColor, moveable));
        }
    }
View Full Code Here

           
            if (valueNode != null) {
                borderColor = valueEditorManager.getTypeColour(valueNode.getTypeExpr());
            }

            setBorder(new SmoothHighlightBorder(borderColor, moveable));
        }
    }
View Full Code Here

TOP

Related Classes of org.openquark.gems.client.utilities.SmoothHighlightBorder

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.