|
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.LySwingToolBar
public class LySwingToolBar
This class implements the Toolbar object (as described in the dtd) for swing viewer.
A tool bar allows to display a set of action buttons. A tool bar can contain other tool bars, which allows to group together the action buttons into logical groups and sub-groups.
LySwingTool
,
LyToolBar
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingToolBar(LyToolBar toolBar)
Class constructor of a Tool bar object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
(non-Javadoc). |
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
void |
addComponent(LyComponent component,
int pos)
This method is not implemented yet. |
void |
addItemToMenu(java.lang.Object item,
java.lang.Object menu)
Adds a menu item at the end of the specified menu. |
void |
addPopupToComponent(java.lang.Object popup,
java.awt.Component comp)
Adds a popup menu to the specified toolBar. |
void |
addSeparator()
Add a separator at the end of the toolBar. |
void |
addTool(LySwingComponent tool)
Adds a tool at the end of the toolBar. |
java.lang.Object |
createMenuItem(java.lang.String label,
java.awt.Font font)
Creates a menu item (used if toolBar has menu style). |
java.lang.Object |
createPopupMenu(java.lang.String label,
java.awt.Font font)
Creates a popup menu (used if toolBar has menu style). |
java.awt.Component |
createToolBar()
Creates and initializes a new empty toolBar. |
LyActionTransmitter |
getActionTransmitter()
(non-Javadoc). |
java.awt.Component |
getComponent()
(non-Javadoc). |
java.lang.Object |
getLock()
Get a lock on the table to prevent concurrent access on rows |
LySelectionTransmitter |
getSelectionTransmitter()
This tool bar doesn't need to handle selections. |
void |
initialize()
Creates the default toolbar component. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Called when the orientation of the toolBar component has changed. |
void |
registerActionEvents(java.lang.Object item,
java.awt.event.ActionListener listener)
Registers action events for the specified item. |
void |
removeComponent(LyComponent component)
This method is not implemented yet. |
void |
setColor(java.lang.String color)
Sets the background color of this toolbar component and refreshes it after the setting. |
void |
setContent()
Fills the toolBar with its tools if it is not a toolbar menu. |
void |
setImage(java.lang.String imageName)
Sets the _logo label icon to the specified image. |
void |
setOpen(boolean open)
This method is not implemented yet. |
void |
showPopup(java.lang.Object popup,
java.awt.Component comp,
int x,
int y)
Shows the popupmenu at the specified position on the given component. |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, 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 LySwingToolBar(LyToolBar toolBar)
toolBar
- a TOOLBAR component defined for every type of view targets. This tool bar is
initialized specificaly for the Swing view.Method Detail |
---|
public void initialize()
public void setContent()
public java.awt.Component createToolBar()
public void setImage(java.lang.String imageName)
_logo
label icon to the specified image.
setImage
in interface LyGraphicalToolBar
setImage
in interface LySetImageInterface
imageName
- the name of the image in the environmentLySetImageInterface.setImage(java.lang.String)
public void setColor(java.lang.String color)
setColor
in interface LyGraphicalToolBar
setColor
in interface LySetColorInterface
color
- the new background colorLySetColorInterface.setColor(java.lang.String)
public void addSeparator()
public void addTool(LySwingComponent tool)
tool
- the tool to addpublic java.lang.Object createPopupMenu(java.lang.String label, java.awt.Font font)
label
- the label of the menufont
- the font used to render the menu
public java.lang.Object createMenuItem(java.lang.String label, java.awt.Font font)
label
- the label of the itemfont
- the font used to render the item
public void addItemToMenu(java.lang.Object item, java.lang.Object menu)
item
- the item to addmenu
- the menu where the item is addedpublic void registerActionEvents(java.lang.Object item, java.awt.event.ActionListener listener)
item
- the item where the listeners are registeredlistener
- the listener to addpublic void addPopupToComponent(java.lang.Object popup, java.awt.Component comp)
popup
- the popup menu to addcomp
- the toolbar component where the popup is attachedpublic void showPopup(java.lang.Object popup, java.awt.Component comp, int x, int y)
popup
- the popup menu to showcomp
- the invoker componentx
- the x coordinate in the comp spacey
- the y coordinate in the comp spaceJPopupMenu.show(java.awt.Component, int, int)
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public LyActionTransmitter getActionTransmitter()
getActionTransmitter
in interface LyEventTransmitter
LyEventTransmitter.getActionTransmitter()
public LySelectionTransmitter getSelectionTransmitter()
getSelectionTransmitter
in interface LyEventTransmitter
null
LyEventTransmitter.getSelectionTransmitter()
public void setOpen(boolean open)
setOpen
in interface LyGraphicalToolBar
open
- not used hereLyGraphicalToolBar.setOpen(boolean)
public void addComponent(LyComponent component, int pos)
addComponent
in interface LyGraphicalToolBar
component
- not used herepos
- not used hereLyGraphicalToolBar.addComponent(leon.view.LyComponent, int)
public void removeComponent(LyComponent component)
removeComponent
in interface LyGraphicalToolBar
component
- not used hereLyGraphicalToolBar.removeComponent(leon.view.LyComponent)
public java.lang.Object getLock()
getLock
in interface LyGetLockInterface
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |