Package org.antlr.gunit.swingui.model

Examples of org.antlr.gunit.swingui.model.Rule


        public Component getListCellRendererComponent(
                JList list, Object value, int index,
                boolean isSelected, boolean hasFocus) {

            if(value instanceof Rule) {
                final Rule item = (Rule) value;
                setText(item.toString());
                setForeground(list.getForeground());

                setIcon(item.getNotEmpty() ? ImageFactory.getSingleton().FAV16 : null);

                if(list.getSelectedValue() == item ) {
                    setBackground(Color.LIGHT_GRAY);
                    setOpaque(true);
                } else {
View Full Code Here

TOP

Related Classes of org.antlr.gunit.swingui.model.Rule

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.