Examples of AnchorComponent


Examples of org.apache.empire.struts2.jsp.components.AnchorComponent

    }

    @Override
    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res)
    {
        return new AnchorComponent(stack, req, res);
    }
View Full Code Here

Examples of org.apache.empire.struts2.jsp.components.AnchorComponent

            onclick = HtmlTagDictionary.getInstance().AnchorDefaultOnClickScript();
        */   

        super.populateParams();

        AnchorComponent anchor = (AnchorComponent) component;
        // Set item param
        if (item != null)
        {
            anchor.addParameter(str(param, getActionItemPropertyName()), getString(item));
        }
        // get Href
        anchor.setAction(action);
        anchor.setUrlType(urlType);
        anchor.setText(getString(text));
        anchor.setDisabled(getBoolean(disabled, false));
        anchor.setTarget(target);
        anchor.setOnclick(onclick);
    }
View Full Code Here

Examples of org.apache.empire.struts2.jsp.components.AnchorComponent

    }

    @Override
    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res)
    {
        return new AnchorComponent(stack, req, res);
    }
View Full Code Here

Examples of org.apache.empire.struts2.jsp.components.AnchorComponent

            onclick = HtmlTagDictionary.getInstance().AnchorDefaultOnClickScript();
        */   

        super.populateParams();

        AnchorComponent anchor = (AnchorComponent) component;
        // Set item param
        if (item != null)
        {
            anchor.addParameter(str(param, getActionItemPropertyName()), getString(item));
        }
        // get Href
        anchor.setAction(action);
        anchor.setText(getString(text));
        anchor.setDisabled(getBoolean(disabled, false));
        anchor.setTarget(target);
        anchor.setOnclick(onclick);
    }
View Full Code Here

Examples of org.apache.empire.struts2.jsp.components.AnchorComponent

    }

    @Override
    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res)
    {
        return new AnchorComponent(stack, req, res);
    }
View Full Code Here

Examples of org.apache.empire.struts2.jsp.components.AnchorComponent

    @Override
    protected void populateParams()
    {
        super.populateParams();
       
        AnchorComponent anchor = (AnchorComponent)component;
        // get Href
        anchor.setAction(action);
    }
View Full Code Here

Examples of org.apache.empire.struts2.jsp.components.AnchorComponent

        anchor.setAction(action);
    }

    protected void populatePageParams(int pageIndex, boolean isCurrent, String text)
    {
        AnchorComponent anchor = (AnchorComponent)component;
        // get Href
        anchor.setAction(action);
        anchor.setText(text);
        anchor.setDisabled(isCurrent);
        anchor.addParameter(setPageParam, String.valueOf( pageIndex ));
        anchor.setOnclick(onclick);
    }
View Full Code Here

Examples of org.apache.empire.struts2.jsp.components.AnchorComponent

               text = "";
            }
            // Start the tag
            super.doStartTag();
            // Add Sort Param
            AnchorComponent anchor = (AnchorComponent)component;
            anchor.addParameter(hri.sortColumnParam, getColumnName());
            if (hri.sortOrderChangeable && hri.sortOrderParam!=null)
            {
                anchor.addParameter(hri.sortOrderParam, (hri.sortDescending) ? "0" : "1");
            }
            // render Link
            super.doEndTag();
        }
        else
View Full Code Here

Examples of org.apache.empire.struts2.jsp.components.AnchorComponent

    }

    @Override
    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res)
    {
        return new AnchorComponent(stack, req, res);
    }
View Full Code Here

Examples of org.apache.empire.struts2.jsp.components.AnchorComponent

            onclick = HtmlTagDictionary.getInstance().AnchorDefaultOnClickScript();
        */   

        super.populateParams();

        AnchorComponent anchor = (AnchorComponent) component;
        // Set item param
        if (item != null)
        {
            anchor.addParameter(str(param, getActionItemPropertyName()), getString(item));
        }
        // get Href
        anchor.setAction(action);
        anchor.setText(getString(text));
        anchor.setDisabled(getBoolean(disabled, false));
        anchor.setTargets(target);
        anchor.setOnclick(onclick);
    }
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.