|
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.LySwingTitleBar
public class LySwingTitleBar
This class implements the internal description of an Icon object as described in the dtd.
A title bar allows to display a colored horizontal bar containing images and texts. The text comprises three independent parts and each one of them is optional: a left, a central and a right part. The color of the title bar is defined in the resources of the application.
LyComponent
Nested Class Summary | |
---|---|
class |
LySwingTitleBar.TitleBarBorder
This class describes special borders for Titlebar. |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
javax.swing.JPopupMenu |
_popupMenu
Popup menu associated to the title bar. |
Constructor Summary | |
---|---|
LySwingTitleBar(LyTitleBar titleBar)
Class constructor of a Title Bar object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
java.awt.Component |
createTitleBar(java.awt.Image bgImage,
java.awt.Image img,
java.lang.String imgToolTip,
java.awt.Image rightImg,
java.lang.String rightImgToolTip,
java.lang.String leftLabel,
java.lang.String centerLabel,
java.lang.String rightLabel,
LyActionListener listener)
Creates the title bar. |
java.awt.Component |
getComponent()
(non-Javadoc). |
void |
initialize()
Initializes this swing component. |
void |
setCenterLabel(java.lang.String centerLabel)
Sets the center label text. |
void |
setImage(java.lang.String image)
Sets the image of this title bar and refreshes it. |
void |
setImageToolTip(java.lang.String toolTip)
Sets the tooltip of this title bar image. |
void |
setLeftLabel(java.lang.String leftLabel)
Sets the left label text. |
void |
setPopupMenu(LyPopupMenu menu)
Sets the title bar popup menu then shows it. |
void |
setRightImage(java.lang.String image)
Sets the right image of this title bar. |
void |
setRightImageToolTip(java.lang.String toolTip)
Sets the tooltip of the right image. |
void |
setRightLabel(java.lang.String rightLabel)
Sets the right label text. |
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
public javax.swing.JPopupMenu _popupMenu
Constructor Detail |
---|
public LySwingTitleBar(LyTitleBar titleBar)
titleBar
- a TITLEBAR component defined for every type of view targets. This title bar
is initialized specificaly for the Swing view.Method Detail |
---|
public java.awt.Component createTitleBar(java.awt.Image bgImage, java.awt.Image img, java.lang.String imgToolTip, java.awt.Image rightImg, java.lang.String rightImgToolTip, java.lang.String leftLabel, java.lang.String centerLabel, java.lang.String rightLabel, LyActionListener listener)
bgImage
- the background imageimg
- the main imageimgToolTip
- the main image tooltiprightImg
- the right imagerightImgToolTip
- the right image tooltipleftLabel
- the left labelcenterLabel
- the center labelrightLabel
- the right labellistener
- the action listener
public void initialize()
public void setPopupMenu(LyPopupMenu menu)
setPopupMenu
in interface LySetPopupMenuInterface
menu
- the new popup menu of this title barpublic java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public void setImage(java.lang.String image)
setImage
in interface LyGraphicalTitleBar
setImage
in interface LySetImageInterface
image
- the new imageLyGraphicalTitleBar.setImage(String)
public void setImageToolTip(java.lang.String toolTip)
setImageToolTip
in interface LyGraphicalTitleBar
toolTip
- the new ToolTipLyGraphicalTitleBar.setImageToolTip(java.lang.String)
public void setRightImage(java.lang.String image)
setRightImage
in interface LyGraphicalTitleBar
image
- the new imageLyGraphicalTitleBar.setRightImage(java.lang.String)
public void setRightImageToolTip(java.lang.String toolTip)
setRightImageToolTip
in interface LyGraphicalTitleBar
toolTip
- new ToolTipLyGraphicalTitleBar.setRightImageToolTip(java.lang.String)
public void setLeftLabel(java.lang.String leftLabel)
setLeftLabel
in interface LyGraphicalTitleBar
leftLabel
- the new labelLyGraphicalTitleBar.setLeftLabel(java.lang.String)
public void setCenterLabel(java.lang.String centerLabel)
setCenterLabel
in interface LyGraphicalTitleBar
centerLabel
- the new labelLyGraphicalTitleBar.setCenterLabel(java.lang.String)
public void setRightLabel(java.lang.String rightLabel)
setRightLabel
in interface LyGraphicalTitleBar
rightLabel
- the new labelLyGraphicalTitleBar.setRightLabel(java.lang.String)
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |