|
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.LySwingContainer
leon.view.win.swing.LySwingArea
public class LySwingArea
This class implements the Area object (as described in the dtd) for swing viewer.
An area allows the positioning of various graphical components inside a main window or a dialog window. It can contains any type of panel as well as a title bar, a tool bar and a command bar.
LyArea
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingArea(LyArea area)
Class constructor of an Area object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
void |
addCommands(LyCommands commands)
Initializes the commands in this area. |
void |
addPanel(LyPanel panel,
int pos)
(non-Javadoc). |
void |
addSelectBar(LySelectBar selectBar)
Creates and adds the select bar in this area. |
void |
addTip()
Creates and adds the tip label in this area if it has a title or a tool panel and if this area has a tip. |
void |
addTitleBar(LyTitleBar titleBar)
Creates and adds the titlebar in this area. |
void |
addToolBars(java.util.Vector<LyToolBar> toolbars)
Creates and adds the toolbars in this area. |
java.awt.GridBagConstraints |
buildActionConstraint(LyToolBar actions)
Builds a contraint object for the specified toolbar. |
java.awt.GridBagConstraints |
buildActionConstraint(LyToolBar actions,
boolean remainder)
Builds a contraint object for the specified toolbar. |
static LyDemand |
buildActionDemand(LyActionEvent actionEvent)
Creates the action demand object for the specified action event. |
java.awt.GridBagConstraints |
buildCommandConstraint(LyCommands commands)
Builds a contraint object for the command bar. |
java.awt.GridBagConstraints |
buildConstraint(LyComponent comp,
LyConstraint requestedConstraint)
Builds a contraint object for the layout of the specified label or component. |
java.awt.GridBagConstraints |
buildDefaultConstraint(LyComponent comp)
Builds a contraint object for the layout of the specified label or component. |
java.awt.GridBagConstraints |
buildSelectBarConstraint(LySelectBar selectBar)
Builds a contraint object for the select bar. |
java.awt.GridBagConstraints |
buildTitleBarConstraint(LyTitleBar titleBar)
Builds a contraint object for a title bar. |
void |
checkScrollPane()
Checks that there aren't a scrolling area alone in another scrolling area. |
java.awt.Container |
createInternalPanel()
Creates and configures the internal panel. |
java.awt.Container |
createRootPanel()
Creates and configures the root panel. |
java.awt.Container |
createScrollingArea()
Creates and configures the scrolling area. |
void |
free()
(non-Javadoc). |
java.awt.Component |
getComponent()
(non-Javadoc). |
void |
initialize()
Initializes the Area object and prepares all its panels. |
void |
insertPanel(LyPanel panel,
int pos)
Appends the specified panel at the position given inside this area. |
boolean |
isClientPanelScrollable()
Determines if this area needs scrollbars. |
void |
removePanel(LyPanel panel)
(non-Javadoc). |
void |
setBorderPanel(LyPanel panel,
short position)
Set a border panel at the given position. |
void |
setContent()
Fills all the panels with the right values, if needed. |
void |
setLayoutInfo(java.lang.String layoutInfo)
Updates attribute layoutInfo to the given value. |
void |
setOpen(boolean open)
Updates attribute open to the given value. |
void |
setRedirect(java.lang.String redirect)
(non-Javadoc) |
void |
setRefresh(int duration)
Do not update the refresh value. |
void |
setScrollingEnabled(boolean enabled)
Sets the scrolling property of the different panels composing this area. |
void |
setVisible(boolean visible)
Sets the visibility status of this component. |
void |
setWaiting(boolean status)
(non-Javadoc). |
Methods inherited from class leon.view.win.swing.LySwingContainer |
---|
updateMinimumSize |
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, 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 |
---|
getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LySwingArea(LyArea area)
area
- an AREA defined for every type of view targets. This area is initialized
specificaly for the Swing view.Method Detail |
---|
public static LyDemand buildActionDemand(LyActionEvent actionEvent)
actionEvent
- the action event
public void initialize()
public void setContent()
public java.awt.Container createInternalPanel()
public java.awt.Container createScrollingArea()
public java.awt.Container createRootPanel()
_internalPanel
and can be scollable. It is also composed by a titlebar, toolbars and an help tip represented
as a String.
LyAreaBase.getTip()
public boolean isClientPanelScrollable()
public void checkScrollPane()
public void addTitleBar(LyTitleBar titleBar)
titleBar
- the LyComponent to addpublic void addToolBars(java.util.Vector<LyToolBar> toolbars)
_toolBars
field is
null
if the toolbars
parameter is null
, else it is a vector
of all the toolbars around this area.
toolbars
- the LyComponent to addpublic void addTip()
public void addSelectBar(LySelectBar selectBar)
selectBar
- the select bar to addpublic void addCommands(LyCommands commands)
commands
- the LyComponent to addpublic void addPanel(LyPanel panel, int pos)
addPanel
in interface LyGraphicalArea
panel
- The panels to add to panels list.pos
- Position where the sub-component is inserted.LyGraphicalArea.addPanel(leon.view.LyPanel, int)
public void insertPanel(LyPanel panel, int pos)
panel
- the panel to insertpos
- position of the panel inside this containeraddPanel(leon.view.LyPanel, int)
public void removePanel(LyPanel panel)
removePanel
in interface LyGraphicalArea
panel
- The panels to remove to panels list.LyGraphicalArea.removePanel(leon.view.LyPanel)
public void setScrollingEnabled(boolean enabled)
_subRootPanel
is modified to use the _scrollingArea
or not.
enabled
- true to enable the scrolling property, false to disablepublic void setWaiting(boolean status)
setWaiting
in interface LySetWaitingInterface
status
- the new statusLySetWaitingInterface.setWaiting(boolean)
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public java.awt.GridBagConstraints buildActionConstraint(LyToolBar actions)
actions
- Specifies the toolbar that its constrains are built.
buildActionConstraint(LyToolBar, boolean)
public java.awt.GridBagConstraints buildActionConstraint(LyToolBar actions, boolean remainder)
actions
is
null
, the constraint object is also null
. Else, the constraint
object that is returned is a GridBagConstraints
that follows the toolbar properties
for its filling and alignment.
actions
- Specifies the toolbar that its constrains are built.remainder
- Specifies if the toolbar is the last component of its row or column.
public java.awt.GridBagConstraints buildTitleBarConstraint(LyTitleBar titleBar)
titleBar
- a title bar, may be null
buildDefaultConstraint(LyComponent)
public java.awt.GridBagConstraints buildSelectBarConstraint(LySelectBar selectBar)
null
, the
returned GridBagConstraints
is null
. The final constraint for the
specified select bar is based on its current constraints that are extended with a generic
GridBagConstraints
.
selectBar
- the select bar to build its constraints
buildCommandConstraint(LyCommands)
public java.awt.GridBagConstraints buildCommandConstraint(LyCommands commands)
null
, the
returned GridBagConstraints
is null
. The final constraint for the
specified command bar is based on its current constraints that are extended with a generic
GridBagConstraints
.
commands
- the command bar to build its constraints
buildSelectBarConstraint(LySelectBar)
public java.awt.GridBagConstraints buildDefaultConstraint(LyComponent comp)
comp
- a component, not used in this implementation
public java.awt.GridBagConstraints buildConstraint(LyComponent comp, LyConstraint requestedConstraint)
buildDefaultConstraint(LyComponent)
).
comp
- the component to build its constraintsrequestedConstraint
- the constraints to apply on the given component
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
actionPerformed
in class LySwingContainer
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public void free()
free
in interface LyGraphicalComponent
free
in interface LyFreeInterface
free
in class LySwingContainer
LyFreeInterface.free()
public void setRefresh(int duration)
setRefresh
in interface LyGraphicalArea
duration
- this parameter is not readLyGraphicalArea.setRefresh(int)
public void setOpen(boolean open)
LyGraphicalArea
setOpen
in interface LyGraphicalArea
open
- Boolean indicating if attribute open is set or unset.public void setBorderPanel(LyPanel panel, short position)
setBorderPanel
in interface LySetBorderPanelInterface
panel
- the border panel.position
- Either NORTH, SOUTH, EAST or WEST position.public void setVisible(boolean visible)
setVisible
in interface LySetVisibleInterface
status
- New visibility status.public void setRedirect(java.lang.String redirect)
setRedirect
in interface LyGraphicalArea
redirect
- New value of redirect.LyGraphicalArea.setRedirect(java.lang.String)
public void setLayoutInfo(java.lang.String layoutInfo)
LyGraphicalArea
setLayoutInfo
in interface LyGraphicalArea
layoutInfo
- New value of layoutInfo.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |