|
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.LySwingFieldItem
leon.view.win.swing.LySwingPanel
leon.view.win.swing.LySwingSelectBar
public class LySwingSelectBar
This class implements the selection bar object (as described in the dtd) for swing viewer.
A navigation bar allows to display a set of page numbers (or page names) in order to go directly to the selected page. This bar must be associated to an area presenting paginated data (a long list for example).
LySelectBar
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingSelectBar(LySelectBar selectBar)
Class constructor of a Select bar object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
void |
addComponent(LyComponent component,
int pos)
Nothing is implemented yet. |
LyJHRefComponent |
createHRefComponent(java.lang.String label,
java.awt.Image image,
java.awt.Font font,
boolean isVisited,
boolean isSensitive,
java.lang.Object clientData,
java.awt.Color disable,
java.awt.Color color,
java.awt.Color highlight,
java.awt.Color visited)
Creates and configures a Hyper Text Reference component with the specified parameters. |
java.awt.Container |
createPanel()
Creates the panel used to place all the messages. |
void |
enableNavTool(int idx,
boolean sensitive)
Enables/disables the specified nav tool. |
java.awt.Component |
getComponent()
(non-Javadoc). |
java.lang.String |
getSourceId(java.lang.Object source)
Retreives the source identifier of the object. |
void |
initialize()
Initializes the graphic component. |
boolean |
isIdle()
(non-Javadoc). |
void |
removeComponent(LyComponent component)
Nothing is implemented yet. |
void |
setContent()
Fills the panel with selectable items and enables or disables the navigation tools depending on the elemnts. |
void |
setIdle(boolean status)
(non-Javadoc). |
void |
setLabel(java.lang.String label)
Nothing is implemented yet. |
void |
setSelectBarTitle(java.lang.String title)
Update the selection bar title. |
void |
setStartItem(int startItem)
Nothing is implemented yet. |
void |
updateSelectItem(int idx,
java.lang.String label,
java.lang.String tooltip,
java.lang.String id,
boolean selected,
boolean visible,
boolean isSeparator)
Updates the selectable item content. |
Methods inherited from class leon.view.win.swing.LySwingPanel |
---|
setPopupMenu |
Methods inherited from class leon.view.win.swing.LySwingFieldItem |
---|
getActionTransmitter, getSelectionTransmitter |
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 LySwingSelectBar(LySelectBar selectBar)
selectBar
- a SELECTBAR component defined for every type of view targets. This select
bar is initialized specificaly for the Swing view.Method Detail |
---|
public void initialize()
public void setContent()
public java.awt.Container createPanel()
public void setSelectBarTitle(java.lang.String title)
title
- title to setLyJHRefComponent.setLabel(String)
public void enableNavTool(int idx, boolean sensitive)
idx
- index of the nav tool in the viewsensitive
- indicates whether the component is activated or notpublic void updateSelectItem(int idx, java.lang.String label, java.lang.String tooltip, java.lang.String id, boolean selected, boolean visible, boolean isSeparator)
idx
- index of the select item in the viewlabel
- title of the selectable itemtooltip
- tooltip of the selectable item. This attribute is not used in this
implementation.id
- id of the selectable itemselected
- indicates whether the component is selected or notvisible
- indicates whether the component is activated or notisSeparator
- indicates whether the component is a separator or notpublic LyJHRefComponent createHRefComponent(java.lang.String label, java.awt.Image image, java.awt.Font font, boolean isVisited, boolean isSensitive, java.lang.Object clientData, java.awt.Color disable, java.awt.Color color, java.awt.Color highlight, java.awt.Color visited)
label
- the text displayed by this referenceimage
- the image displayed by this referencefont
- the font used to display the labelisVisited
- specifies the visited property of a linkisSensitive
- specifies the sensitive property of a linkclientData
- the underlying data used to properly configure this referencedisable
- the disable colorcolor
- the normal colorhighlight
- the color used to display text when cursor is over the referencevisited
- the visited color
public java.lang.String getSourceId(java.lang.Object source)
source
- the source object
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public void setIdle(boolean status)
setIdle
in interface LySetIdleInterface
status
- new idle status (LySetIdleInterface interface)LySetIdleInterface.setIdle(boolean)
public boolean isIdle()
isIdle
in interface LyIsIdleInterface
LyIsIdleInterface.isIdle()
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalSelectBar
setLabel
in interface LySetLabelInterface
label
- the new value of label, not usedLyGraphicalSelectBar.setLabel(String)
public void setStartItem(int startItem)
setStartItem
in interface LyGraphicalSelectBar
startItem
- the new value of startItem, not usedLyGraphicalSelectBar.setStartItem(int)
public void addComponent(LyComponent component, int pos)
addComponent
in interface LyGraphicalSelectBar
component
- the component to add, not usedpos
- the position where the component is added, not usedLyGraphicalSelectBar.addComponent(LyComponent, int)
public void removeComponent(LyComponent component)
removeComponent
in interface LyGraphicalSelectBar
component
- the component to remove, not usedLyGraphicalSelectBar.removeComponent(LyComponent)
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |