Package wecui.event.cui

Examples of wecui.event.cui.CUIEventType


    }

    public void onEvent(CUIEvent event) {

        //Get a CUIEventType enum value from the first section of the CUI message
        CUIEventType eventType = CUIEventType.getTypeFromKey(event.getType());
        if (eventType == null || eventType.getEventClass() == null) {
            event.markInvalid("Unknown CUIEvent identifier.");
        }

        try {
            CUIBaseEvent newEvent = Reflect.on(eventType.getEventClass()).create(this.controller, event.getParams()).get();

            //Run the event. If doRun returns null, the event was successful.
            //If it returns a string, it uses that as the error message.
            String result = newEvent.doRun();
            if (result != null) {
View Full Code Here

TOP

Related Classes of wecui.event.cui.CUIEventType

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.