Package org.onemind.swingweb.session

Examples of org.onemind.swingweb.session.URLLocal


        List urlLocals = man.getURLLocals();
        Iterator it = urlLocals.iterator();
        boolean isFirst = true;
        while (it.hasNext())
        {
            URLLocal local = (URLLocal) it.next();
            String value = local.getSetValue();
            if (value != null)
            {
                if (isFirst)
                {
                    isFirst = false;
                } else
                {
                    sb.append("&");
                }
                sb.append(URLEncoder.encode(local.getName()));
                sb.append("=");
                sb.append(URLEncoder.encode(value));
            } else if (local.isAlwaysShow())
            {
                if (isFirst)
                {
                    isFirst = false;
                } else
                {
                    sb.append("&");
                }
                sb.append(URLEncoder.encode(local.getName()));
                sb.append("=");
                sb.append(URLEncoder.encode((String) local.getValue()));
            }
        }
        return sb.toString();
    }
View Full Code Here


        SwingWebComponentManager man = (SwingWebComponentManager) swSession.getComponentManager();
        List urlLocals = man.getURLLocals();
        Iterator it = urlLocals.iterator();
        while (it.hasNext())
        {
            URLLocal local = (URLLocal) it.next();
            Object value = param.get(local.getName());
            if (value instanceof String[])
            {
                value = ((String[]) value)[0];
            }
            String paramValue = (String) value;
            local.setValue(paramValue);
        }
    }
View Full Code Here

TOP

Related Classes of org.onemind.swingweb.session.URLLocal

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.