|
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.LySwingSplitter
public class LySwingSplitter
This class implements the Splitter object (as described in the dtd) for swing viewer.
A container of panel type with splitter allows to display different panels that are splitted by vertical or horizontal separation bars. These bars can be moved so as to allocate more or less place to each of the panels. The minimum number of panels that is required is two panels. There is no constraint on the maximum number of panels allowed in such a container.
Including such containers in containers of same type allows to get windows combining vertical and horizontal separators.
LySplitter
Nested Class Summary | |
---|---|
class |
LySwingSplitter._LyJSplitterComponentAdapter
Handles component resize and checks if minimum sizes are valid. |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LySwingSplitter(LySplitter splitter)
Class constructor of a Splitter object for the Swing target. |
Method Summary | |
---|---|
java.awt.Container |
createBorderLayoutPanel()
Creates panel with a border layout. |
java.awt.Component |
createHorizontalSeparator(java.awt.Color color)
Creates an horizontal separator. |
java.awt.Component |
createVerticalSeparator(java.awt.Color color)
Creates a vertical separator. |
java.awt.Component |
getComponent()
(non-Javadoc). |
int[] |
getIntSizesArray(java.lang.String sizes,
int panelCount)
Transforms a string representing a list of int separated with the space character in an array of int. |
int |
getSplitterSize()
Gets the size of the splitter if available, else 0. |
void |
initialize()
Retrieves the initial orientation of this splitter and initializes the class attributes. |
void |
setActivePart(LySplitter.ActivePart activePart)
Updates attribute activePart to the given value. |
void |
setContent()
Fills this splitter with all its panels. |
void |
setLeftMinimumSize(java.awt.Dimension minSize)
Sets the minimumSize of the left area. |
void |
setRightMinimumSize(java.awt.Dimension minSize)
Sets the minimumSize of the right area. |
void |
setSelected(boolean status)
|
void |
setSizes(java.lang.String sizes)
Updates attribute sizes to the given value. |
void |
updateMinimumSize(LyComponent child,
java.awt.Dimension d)
Updates the minimum size occupied by the specified child component. |
Methods inherited from class leon.view.win.swing.LySwingContainer |
---|
actionPerformed, free |
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 |
---|
free, getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LySwingSplitter(LySplitter splitter)
splitter
- a SPLITTER component defined for every type of view targets. This splitter is
initialized specificaly for the Swing view.Method Detail |
---|
public void initialize()
public void setContent()
public int[] getIntSizesArray(java.lang.String sizes, int panelCount)
sizes
- a string that contains a list of intpanelCount
- the size of the returned array
String
public java.awt.Component createHorizontalSeparator(java.awt.Color color)
color
- the color of the separator
LyJSeparator
public java.awt.Component createVerticalSeparator(java.awt.Color color)
color
- the color of the separator
LyJSeparator
public java.awt.Container createBorderLayoutPanel()
public int getSplitterSize()
public java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public void setLeftMinimumSize(java.awt.Dimension minSize)
minSize
- the dimension to usepublic void setRightMinimumSize(java.awt.Dimension minSize)
minSize
- the dimension to usepublic void updateMinimumSize(LyComponent child, java.awt.Dimension d)
updateMinimumSize
in class LySwingContainer
child
- child component in this containerd
- minimum size to useLySwingContainer.updateMinimumSize(LyComponent, Dimension)
public void setSizes(java.lang.String sizes)
LyGraphicalSplitter
setSizes
in interface LyGraphicalSplitter
sizes
- New value of sizes.public void setSelected(boolean status)
public void setActivePart(LySplitter.ActivePart activePart)
LyGraphicalSplitter
setActivePart
in interface LyGraphicalSplitter
activePart
- New value of activePart.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |