Package org.apache.tapestry

Examples of org.apache.tapestry.IBinding


    public INodeRenderFactory getNodeRenderFactory()
    {
        if (m_objNodeRenderFactory == null)
        {
            IBinding objBinding = getNodeRenderFactoryBinding();
            if (objBinding != null)
            {
                m_objNodeRenderFactory = (INodeRenderFactory) objBinding.getObject();
            }
            else
            {
                m_objNodeRenderFactory = new SimpleNodeRenderFactory();
            }
View Full Code Here


     */
    public boolean getMakeNodeDirect()
    {
        if (m_objMakeNodeDirect == null)
        {
            IBinding objBinding = getMakeNodeDirectBinding();
            if (objBinding != null)
            {
                m_objMakeNodeDirect = (Boolean) objBinding.getObject();
            }
            else
            {
                m_objMakeNodeDirect = Boolean.TRUE;
            }
View Full Code Here

            if (component.getBinding(name) == null)
            {
                String description = PageloadMessages
                        .defaultParameterName(name);

                IBinding binding = _bindingSource.createBinding(component,
                        description, defaultValue,
                        BindingConstants.OGNL_PREFIX, parameterSpec
                                .getLocation());

                component.setBinding(name, binding);
View Full Code Here

        _parameterName = parameterName;
    }

    public void connect()
    {
        IBinding binding = _component.getContainer().getBinding(
                _containerParameterName);

        if (binding == null) return;

        // In many cases, a default parameter binding will have been set on the
View Full Code Here

     */
    public void setTableRow(Object tableRow)
    {
        m_objTableRow = tableRow;

        IBinding objRowBinding = getBinding("row");
        if (objRowBinding != null)
            objRowBinding.setObject(tableRow);
    }
View Full Code Here

    }

    private IBinding newBinding(Location l)
    {
        MockControl control = newControl(IBinding.class);
        IBinding binding = (IBinding) control.getMock();

        binding.getLocation();
        control.setReturnValue(l);

        return binding;
    }
View Full Code Here

    {
        IForm form = newForm();
        IMarkupWriter writer = newWriter();
        IRequestCycle cycle = newCycle(form);
        Location l = newLocation();
        IBinding binding = newBinding(l);
        IPage page = newPage();

        replayControls();

        FieldLabel fl = (FieldLabel) _creator.newInstance(FieldLabel.class, new Object[]
View Full Code Here

        ValueConverter converter = newValueConverter();

        replayControls();

        IBinding binding = newBinding(converter, provider, "spring:bean", l);

        assertSame(injectedValue, binding.getObject());

        verifyControls();
    }
View Full Code Here

                String defaultBindingType = BindingUtils.getDefaultBindingType(
                        spec,
                        name,
                        BindingConstants.LITERAL_PREFIX);

                IBinding binding = _bindingSource.createBinding(
                        _loadComponent,
                        description,
                        value,
                        defaultBindingType,
                        token.getLocation());

                addBinding(component, spec, name, binding);
            }
        }

        // if the component defines a templateTag parameter and
        // there is no established binding for that parameter,
        // add a static binding carrying the template tag

        if (spec.getParameter(TemplateSource.TEMPLATE_TAG_PARAMETER_NAME) != null
                && component.getBinding(TemplateSource.TEMPLATE_TAG_PARAMETER_NAME) == null)
        {
            IBinding binding = _bindingSource.createBinding(
                    component,
                    TemplateSource.TEMPLATE_TAG_PARAMETER_NAME,
                    token.getTag(),
                    BindingConstants.LITERAL_PREFIX,
                    token.getLocation());
View Full Code Here

            // Skip formal parameters

            if (getSpecification().getParameter(bindingName) != null)
                continue;

            IBinding binding = getBinding(bindingName);

            Object value = binding.getObject();

            result.put(bindingName, value);
        }

        return result;
View Full Code Here

TOP

Related Classes of org.apache.tapestry.IBinding

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.