All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jidesoft.swing.TopLevelMenuContainer Maven / Gradle / Ivy

There is a newer version: 3.6.18
Show newest version
/*
 * @(#)TopLevelMenuContainer.java
 *
 * Copyright 2002 - 2004 JIDE Software Inc. All rights reserved.
 */
package com.jidesoft.swing;

/**
 * A markup interface to indicate this is a top level menu or command bar.
 * The original Swing code used JMenuBar to determine if it is TopLeveMenu. However
 * since we introduced CommandBar, this crieta is not correct anymore. The new condition is
 * if a contianer implements TopLevelMenuContainer, the children in that contianer is top level menu.
 * If isMenuBar returns true, it means the container is really a menu bar, just like JMenuBar.
 */
public interface TopLevelMenuContainer {
    /**
     * Checks if the TopLevelMenuContainer is used as JMenuBar.
     *
     * @return true if the TopLevelMenuContainer is used as JMenuBar.
     */
    boolean isMenuBar();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy