<SPLITTER> : Panels splitter

Java class : leon.view.LySplitter

ROLE

A container of panel type with splitter allows displaying different panels that are splitted by vertical or horizontal separation bars.
These bars can be moved so as to allocating 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 getting windows combining vertical and horizontal separators.

ATTRIBUTES

<!ATTLIST SPLITTER
	  id NMTOKEN #IMPLIED
	  template NMTOKEN #IMPLIED
	  style ( HORIZONTAL | VERTICAL) "HORIZONTAL"
	  activePart ( AUTO | FIRST | SECOND) "FIRST"
	  sizes NMTOKENS #IMPLIED
	  resizable ( true | false) "true"
	  color CDATA #IMPLIED
	  firstTooltip CDATA #IMPLIED
	  secondTooltip CDATA #IMPLIED>
Attribute Mand. Description Default
id no SPLITTER.id  
template no SPLITTER.template  
style no Indicates whether the panels should be placed horizontally or vertically.
HORIZONTAL: Indicates that the panels are placed horizontally and that the separation bar is vertical.
VERTICAL: Indicates that the panels are placed vertically and that the separation bar is horizontal.
HORIZONTAL
activePart no SPLITTER.activePart FIRST
sizes no Indicates the proportional size of each panel inside the container.
The expected values are positive integer values separated by blanks.
The umpteenth provided value corresponds to the umpteenth panel inserted in the container.
The value 0 corresponds to the null size for a given panel.
A negative value indicates that the place occupied by the concerned panel should be a fixed size and should correspond to the default size of the panel.
If a non integer value (examples: 'tkj', '1.34', '3%',...) is specified, this value is equivalent to the value 0. If the number of sizes is greater than the total number of panels, the additional sizes are ignored.
If the number
of sizes is lower than the total number of panels, the missing size are replaced by the value 10.
 
resizable no Indicates if the separators can be moved. true
color no SPLITTER.color  
firstTooltip no Tooltip of the button that hides or shows the first part of the splitter.  
secondTooltip no Tooltip of the button that hides or shows the second part of the splitter.  

ELEMENTS

<!ELEMENT SPLITTER 
	  ((%PANEL;)*,
	   CONSTRAINT?,
	   DATA*)>
Element Mand. Mult. Description
PANEL
no yes List of additional panels of the container.
At least one is needed in order to have at least two panels.
CONSTRAINT no no Positioning constraint of the panels splitter.
DATA no yes SPLITTER.DATA

SAMPLE

<!-- Panels with separator of vertical type:
the first panel occupies 30% of the total place (sizes="3 7") -->
<SPLITTER style="VERTICAL" sizes="3 7">
	<!-- First panel: tree -->
	<TREE id="_tree">
		<TREE_NODE label="Administration" image="admin.gif"/>
	</TREE>
	<!-- Second panel: form -->
	<FORM id="_form">
		<FIELD id="BR_NAME_ID">
			<CAPTION label="Nom"/>
			<TEXT label="Dupont"/>
		</FIELD>
	</FORM>
</SPLITTER>