Examples of TMLOption


Examples of de.innovationgate.wgpublisher.webtml.utils.TMLOption

    public boolean containsValue(Object arg0) {
        return values().contains(arg0);
    }

    public Object get(Object arg0) {
        TMLOption option = (TMLOption) _map.get(arg0);
        if (option != null) {
            return option.getValue();
        }
        else {
            return null;
        }
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLOption

       
        // restore options
        Map options = ajaxInfo.getOptions();
        Iterator itOptions = options.values().iterator();
        while (itOptions.hasNext()) {
            TMLOption option = (TMLOption) itOptions.next();
            if (!UNRECOVERABLE_OPTIONS.contains(option.getName())) {
                status.setOption(option.getName(), option.getValue(), option.getScope());
            }
        }
       
        // Restore design db option - must be here so following context change can use it
        status.setOption(OPTION_DESIGNDB, status._ajaxInfo.getDesignDB(), null);
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLOption

    }*/
   
    private void filterOptions(Set optionsToFilter) {
       
        Iterator options = getStatus().getTagOptions().values().iterator();
        TMLOption option;
        while (options.hasNext()) {
            option = (TMLOption) options.next();
            if (optionsToFilter.contains(option.getName()) && option.isLocalScope()) {
                options.remove();
            }
        }
       
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLOption

    public Object put(Object key, Object value) {
        if (!(key instanceof String)) {
            throw new IllegalArgumentException("Only key of type '" + String.class.getName() + "' supported.");
        }
        TMLOption option = new TMLOption((String)key, value, null);
        _map.put(key, option);
        return value;
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLOption

        _map.put(key, option);
        return value;
    }

    public Object remove(Object arg0) {
        TMLOption option = (TMLOption) _map.remove(arg0);
        if (option != null) {
            return option.getValue();
        } else {
            return null;
        }
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLOption

    public Collection values() {
       List values = new ArrayList();
       Iterator it = _map.values().iterator();
       while (it.hasNext()) {
           TMLOption option = (TMLOption) it.next();
           if (option != null) {
               values.add(option.getValue());
           } else {
               values.add(null);
           }
       }
       return values;
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLOption

        public Object getKey() {
            return _entry.getKey();
        }

        public Object getValue() {
            TMLOption option = (TMLOption) _entry.getValue();
            if (option != null) {
                return option.getValue();
            } else {
                return null;
            }
        }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLOption

                return null;
            }
        }

        public Object setValue(Object arg0) {
            TMLOption option = new TMLOption((String)getKey(), arg0, null);
            _entry.setValue(option);
            return arg0;
        }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLOption

      getStatus().setOption(OPTION_LINK_ACTION, linkAction, TMLOption.SCOPE_GLOBAL);
    }
   
    // Set option "body" by content of include tag
    // (only when no option "body" already available that was set explicitly for this tag or is of global scope)
    TMLOption bodyOption = (TMLOption) getStatus().getTagOptions().get("body");
    if (bodyOption == null || (status.optionsToFilter.contains("body") && bodyOption.getScope().equals(TMLOption.SCOPE_LOCAL))) {
        status.setOption("body", getResultString(), TMLOption.SCOPE_LOCAL);
        status.optionsToFilter.remove("body");
    }
       
        // Prepare portlet includsion
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLOption

    public String getDesignDBKey() {
        return (String) this.getOption(Base.OPTION_DESIGNDB);
    }
   
    public Object getOption(String optionName) {
        TMLOption option = (TMLOption) tagOptions.get(optionName);
        if (option != null) {
            return option.getValue();
        }
        else {
            return null;
        }
    }
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.