/*
 * Copyright (c) 2012, Oracle  and/or its affiliates. All rights reserved.
 *
 * Use is subject to license terms.
 */

package com.sun.javafx.tk.quantum;

import com.sun.glass.ui.Menu;
import com.sun.javafx.menu.MenuBase;

/**
 * @author Morris Meyer
 */
public class GlassMenuEventHandler extends Menu.EventHandler {

    private MenuBase menuBase;

    public GlassMenuEventHandler(final MenuBase mb) {
        this.menuBase = mb;
    }
    
    @Override public void handleMenuOpening(Menu menu, long time) {
        menuBase.show();
    }
    
    @Override public void handleMenuClosed(Menu menu, long time) {
        menuBase.hide();
    }
    
    
}
