|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.win.swing.LySwingObject
leon.view.win.swing.LySwingMenuBar
public class LySwingMenuBar
This class implements the MenuBar object (as described in the dtd) for swing viewer.
A menu bar allows to display a set of menus. It can be displayed in a main window of a Leonardi application. The menu bars are available only with the heavy client (Swing and SWT) viewers.
LyMenuBar
Nested Class Summary | |
---|---|
class |
LySwingMenuBar.MenuBarBorder
This class defines MS-Windows style menu bar borders. |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingMenuBar(LyMenuBar menuBar)
Class constructor of a Menu bar for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
void |
addMenu(LyMenu menu,
int pos)
Adds the specified menu at the end of this menu bar. |
void |
addMenu(java.lang.Object menu)
Adds a menu in this menu bar. |
java.lang.Object |
createMenuBar()
Creates the swing component used to display this menu bar and initializes its font and border. |
LyActionTransmitter |
getActionTransmitter()
(non-Javadoc). |
java.lang.Object |
getMenuBar()
Gets the menu bar component. |
LySelectionTransmitter |
getSelectionTransmitter()
This menu bar doesn't handle selection events, so it has no selection transmitter. |
void |
initialize()
Initializes the menuBar. |
boolean |
isIdle()
Indictates whether this menu bar is idle or not. |
void |
removeMenu(LyMenu menu)
(non-Javadoc). |
void |
removeMenu(java.lang.Object menu)
Removes the specified menu from the menu bar. |
void |
resetContent()
Resets the content of the menu bar and refreshes its view. |
void |
setContent()
Adds the menu items to this menu bar and registers their action listeners. |
void |
setIdle(boolean idle)
Sets the idle status of this menu bar. |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, getComponent, getDefaultFrame |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, free, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.graphic.LyGraphicalComponent |
---|
free, getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LySwingMenuBar(LyMenuBar menuBar)
menuBar
- a MENU_BAR component defined for every type of view targets. This menu bar is
initialized for the swing view.Method Detail |
---|
public void initialize()
public void setContent()
public java.lang.Object createMenuBar()
public void addMenu(LyMenu menu, int pos)
addMenu
in interface LyGraphicalMenuBar
menu
- the menu to addpos
- this position is not used in this implementationaddMenu(Object)
,
LyGraphicalMenuBar.addMenu(leon.view.LyMenu, int)
public void removeMenu(LyMenu menu)
removeMenu
in interface LyGraphicalMenuBar
menu
- The menus to remove to menus list.leon.view.graphic.LyGraphicalMenuBar#removeComponent(leon.view.LyComponent)
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public java.lang.Object getMenuBar()
public LyActionTransmitter getActionTransmitter()
getActionTransmitter
in interface LyEventTransmitter
LyEventTransmitter.getActionTransmitter()
public LySelectionTransmitter getSelectionTransmitter()
getSelectionTransmitter
in interface LyEventTransmitter
null
LyEventTransmitter.getSelectionTransmitter()
public boolean isIdle()
isIdle
in interface LyIsIdleInterface
setIdle(boolean)
,
LyIsIdleInterface.isIdle()
public void setIdle(boolean idle)
setIdle
in interface LySetIdleInterface
idle
- the new idle statusisIdle()
,
LySetIdleInterface.setIdle(boolean)
public void addMenu(java.lang.Object menu)
menu
- the menu to add in this menu barJMenuBar.add(javax.swing.JMenu)
public void removeMenu(java.lang.Object menu)
menu
- the menu to removeContainer.remove(java.awt.Component)
public void resetContent()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |