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

Examples of com.volantis.mcs.protocols.menu.model.EventType


     * This method tests the get, set and remove event handler methods
     */
    public void testEventHandler() {
        ConcreteMenu item = MenuModelHelper.createMenu(false, testTitle);

        EventType blur = EventType.ON_BLUR;
        EventType click = EventType.ON_CLICK;
        EventType mouse = EventType.ON_MOUSE_OVER;
        EventType focus = EventType.ON_FOCUS;

        ScriptAssetReference handlerOne =
                new LiteralScriptAssetReference("Handle blurrred things");
        ScriptAssetReference handlerTwo =
                new LiteralScriptAssetReference("Handle clicked things");
View Full Code Here


     * This method tests the get, set and remove event handler methods
     */
    public void testEventHandler() {
        ConcreteMenuItem item = MenuModelHelper.createMenuItem(itemName);

        EventType blur = EventType.ON_BLUR;
        EventType click = EventType.ON_CLICK;
        EventType mouse = EventType.ON_MOUSE_OVER;

        ScriptAssetReference handlerOne =
                new LiteralScriptAssetReference("Handle blurrred things");
        ScriptAssetReference handlerTwo =
                new LiteralScriptAssetReference("Handle clicked things");
View Full Code Here

    public static void setEvents(EventTarget target,
                                 MCSAttributes attributes) {
        EventAttributes events = attributes.getEventAttributes(true);

        for (int event = 0; event < eventMapping.length; event++) {
            EventType type = eventMapping[event];

            // Not all protocol events map to an equivalent menu model event
            if (type != null) {
                events.setEvent(event, target.getEventHandler(type));
            }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.menu.model.EventType

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.