Examples of InheritableValueMap


Examples of org.onemind.commons.java.datastructure.InheritableValueMap

            throw new SAXException("\"optionNames\" attributes must be defined");
        }
        String[] options = optionNames.split(",");
        for (int i = 0; i < options.length; i++)
        {
            _configs.put(options[i], new InheritableValueMap());
        }
        ClassConfigDigester dig = new ClassConfigDigester(options);
        handler.addSubDigester(dig);
    }
View Full Code Here

Examples of org.onemind.commons.java.datastructure.InheritableValueMap

        super.endDigest(handler);
    }

    public InheritableValueMap getOptions(String option)
    {
        InheritableValueMap dim = (InheritableValueMap) _configs.get(option);
        if (dim == null)
        {
            throw new IllegalArgumentException("No option " + option + " defined");
        } else
        {
View Full Code Here

Examples of org.onemind.commons.java.datastructure.InheritableValueMap

            super.characters(handler, chars, offset, length);
        }

        public void endDigest(SaxDigesterHandler handler) throws SAXException
        {
            InheritableValueMap config = (InheritableValueMap) _configs.get(getElementName());
            config.put(_currentClass, buffer.toString());
            super.endDigest(handler);
        }
View Full Code Here

Examples of org.onemind.commons.java.datastructure.InheritableValueMap

    private ListenerChecker _listenerChecker = new ListenerChecker();

    public String getAttribute(Object obj, ComponentOptions opts) throws Exception
    {
        InheritableValueMap configs = opts.getOptions("attrs");
        Class c = obj.getClass();
        Map config = getConfig(c, configs);
        StringBuffer sb = new StringBuffer();
        Iterator entryIt = config.entrySet().iterator();
        while (entryIt.hasNext())
View Full Code Here

Examples of org.onemind.commons.java.datastructure.InheritableValueMap

            {
                appendAttribute(sb, "id", peer.getId());
            }
        } else if (key.equals("handler"))
        {
            InheritableValueMap map = opts.getOptions("handler");
            String handler = (String) map.resolve(obj.getClass());
            appendAttribute(sb, "handler", handler);
        } else if (key.equals("font"))
        {
            if (obj instanceof Component)
            {
                Component com = (Component) obj;
                Font f = com.getFont();
                if (f != null)
                {
                    appendAttribute(sb, "fontSize", String.valueOf(f.getSize()));
                }
            }
        } else if (key.equals("events"))
        {
            InheritableValueMap evtConfigs = opts.getOptions("events");
            Iterator it = getConfig(obj.getClass(), evtConfigs).entrySet().iterator();
            while (it.hasNext())
            {
                Map.Entry entry = (Map.Entry) it.next();
                if (_listenerChecker.hasListener((Component) obj, (String) entry.getValue()))
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.