|
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.LySwingHRefs
public class LySwingHRefs
This class implements the HRefs object (as described in the dtd) for swing viewer.
An input field of Hyperlinks type allows to display a graphical component containing a set of hyperlinks. Such a component is a simple list of hyperlinks. It does not contain any attribute.
LyLabel
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingHRefs(LyHRefs hRefs)
Class constructor of a HRefs object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
void |
addHRef(LyHRef hRef,
int pos)
Adds an hRef to this hRefs list. |
void |
addHRefComponent(java.awt.Container cont,
java.awt.Component comp,
int index)
Adds a HRefComponent in this container. |
LyJHRefContainer |
createHRefContainer(java.awt.Color background)
Creates the container used to place all the HRefComponents. |
java.awt.Component |
getComponent()
(non-Javadoc). |
java.awt.Component |
getHRefComponent(int index,
LyJHRefContainer hRefCont)
Gets the HRefComponent at position index. |
int |
getHRefComponentCount(LyJHRefContainer hRefCont)
Gets the current count of HRefComponents. |
LyHRef |
getUserData(java.awt.Component hRefComp)
Gets the underlying data used to build hRefComponent. |
void |
removeAll()
Removes all the hRefs from the hRefs list. |
void |
removeHRef(LyHRef hRef)
Removes the specified hRef from the hRefs list. |
void |
removeHRefComponent(java.awt.Container cont,
java.awt.Component comp)
Removes a HRefComponent from its container. |
void |
setContent()
Fills with HRefs. |
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 LySwingHRefs(LyHRefs hRefs)
hRefs
- a HREFS component defined for every type of view targets. This hyperlink
component list is filled with the hRefs it contains.Method Detail |
---|
public LyJHRefContainer createHRefContainer(java.awt.Color background)
background
- the background color of the container
public LyHRef getUserData(java.awt.Component hRefComp)
hRefComp
- the HRef component
public int getHRefComponentCount(LyJHRefContainer hRefCont)
hRefCont
- the HRef container
public java.awt.Component getHRefComponent(int index, LyJHRefContainer hRefCont)
index
- the position of the HRef component in the containerhRefCont
- the HRef container
public void addHRefComponent(java.awt.Container cont, java.awt.Component comp, int index)
cont
- the place to add the componentcomp
- the component to addindex
- the position where to add the component in the containerpublic void removeHRefComponent(java.awt.Container cont, java.awt.Component comp)
cont
- HRef container of all the HRef componentscomp
- HRef component to removepublic void setContent()
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public void addHRef(LyHRef hRef, int pos)
addHRef
in interface LyGraphicalHRefs
addHRef
in interface LySetHRefsInterface
hRef
- The hRefs to add to hRefs list.pos
- Position where the sub-component is inserted.LyGraphicalHRefs.addHRef(LyHRef, int)
public void removeHRef(LyHRef hRef)
removeHRef
in interface LyGraphicalHRefs
removeHRef
in interface LySetHRefsInterface
hRef
- The hRefs to remove to hRefs list.LyGraphicalHRefs.removeHRef(LyHRef)
public void removeAll()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |