com.jidesoft.swing.TopLevelMenuContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jide-oss Show documentation
Show all versions of jide-oss Show documentation
JIDE Common Layer (Professional Swing Components)
/*
* @(#)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