Package org.swingml.model

Examples of org.swingml.model.ControllerActionModel


    /**
     * @see org.swingml.xml.Mapper#getModelToMap(Node, Object)
     */
    public Object getModelToMap(Node aNode, Object aParent, Container aContainer) {
        ControllerActionModel theModel = new ControllerActionModel();
        ListenerModel theListener = (ListenerModel) aParent;
        theListener.addAction(theModel);
        return theModel;
    }
View Full Code Here


    /**
     * @see org.swingml.xml.Mapper#mapModel(Node, Object)
     */
    public void mapModel(Node aNode, Object aParent, Container aContainer) {
        ControllerActionModel theModel = (ControllerActionModel) this.getModelToMap(aNode, aParent, aContainer);
        this.mapModelAttributes(aNode, theModel, aParent);
        super.iterate(aNode, theModel, aContainer);
    }
View Full Code Here

    /**
     * @see org.swingml.xml.Mapper#mapModelAttributes(Node, Object, Object)
     */
    public void mapModelAttributes(Node aNode, Object aModel, Object aParent) {
        ControllerActionModel theActionModel = (ControllerActionModel) aModel;
        Node theResultNode = null;
        theResultNode = super.getAttribute(aNode, Constants.COMPONENT);
        if (theResultNode != null) {
            theActionModel.setComponent(theResultNode.getNodeValue());
        }
   
        theResultNode = super.getAttribute(aNode, Constants.URL);
        if (theResultNode != null) {
            theActionModel.setUrl(theResultNode.getNodeValue());
        }
       
        theResultNode = super.getAttribute(aNode, Constants.OPERATION);
        if (theResultNode != null) {
            theActionModel.setOperation(theResultNode.getNodeValue());
        }
       
       
       
       
View Full Code Here

TOP

Related Classes of org.swingml.model.ControllerActionModel

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.