Package org.apache.shale.clay.config.beans

Examples of org.apache.shale.clay.config.beans.ActionListenerBean


     *
     * @param node markup
     * @param target child config bean
     */
    protected void addActionListener(Node node, ElementBean target) {
       ActionListenerBean targetActionListener = new ActionListenerBean();

       String jsfid = getJsfid(node);
       targetActionListener.setJsfid(jsfid);

       // resolve inheritance and attribute overrides
       realizeComponent(node, targetActionListener);
       //attach to the target element
       target.addActionListener(targetActionListener);
View Full Code Here


     * @inheritDoc
     * @param node markup
     * @param target child config bean
     */
    protected void addActionListener(Node node, ElementBean target) {
        ActionListenerBean targetActionListener = new ActionListenerBean();

        //make sure we have the correct jsfid based on the namespace prefix
        Builder tmpBuilder = getBuilder(node);
        ElementBean tmp = tmpBuilder.createElement(node);

        String jsfid = tmp.getJsfid();
        targetActionListener.setJsfid(jsfid);

        String type = (String) node.getAttributes().get("type");
        if (type != null) {
            targetActionListener.setComponentType(tagsUtil.evalString(type));
        }

        // resolve inheritance and attribute overrides
        if (node.getAttributes().containsKey("extends") || !jsfid.equals("actionListener")) {
            realizeComponent(node, targetActionListener);
View Full Code Here

        if (displayElement.getActionListeners().size() > 0) {
            if (child instanceof ActionSource) {

                Iterator vi = displayElement.getActionListenerIterator();
                while (vi.hasNext()) {
                    ActionListenerBean actionListener = (ActionListenerBean) vi
                            .next();

                    ClayContext subContext = (ClayContext) clayContext.clone();
                    subContext.setDisplayElement(actionListener);
                    subContext.setParent(child);
View Full Code Here

TOP

Related Classes of org.apache.shale.clay.config.beans.ActionListenerBean

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.