Package com.volantis.mcs.protocols.menu.shared.model

Examples of com.volantis.mcs.protocols.menu.shared.model.AbstractModelElement


     * null otherwise.
     *
     * @return the current entity or null if not of the required class
     */
    private AbstractModelElement getCurrentModelElement() {
        AbstractModelElement current = null;

        if (currentEntity instanceof AbstractModelElement) {
            current = (AbstractModelElement) currentEntity;
        }

View Full Code Here


    public void setElementDetails(
            String elementName, String id,
            Styles styles)
            throws BuilderException {

        AbstractModelElement modelElement = getCurrentModelElement();

        if (modelElement != null) {
            ConcreteElementDetails elementDetails =
                    (ConcreteElementDetails) modelElement.getElementDetails();

            if (elementDetails == null) {
                // Handle those cases where the element detas are optional
                elementDetails = new ConcreteElementDetails();

                modelElement.setElementDetails(elementDetails);
            }

            try {
                elementDetails.setElementName(elementName);
                elementDetails.setId(id);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.menu.shared.model.AbstractModelElement

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.