<SELECTBAR> : Navigation bar

Java class : leon.view.LySelectBar

ROLE

A navigation bar allows displaying 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).

ATTRIBUTES

<!ATTLIST SELECTBAR
	  id NMTOKEN #REQUIRED
	  template NMTOKEN #IMPLIED
	  label CDATA #IMPLIED
	  startItem NMTOKEN "0"
	  itemCount NMTOKEN "20"
	  controller CDATA #IMPLIED
	  color CDATA #IMPLIED
	  hrefColor CDATA #IMPLIED
	  disabledColor CDATA #IMPLIED
	  font CDATA #IMPLIED
	  fontColor CDATA #IMPLIED
	  highlightColor CDATA #IMPLIED
	  visitedColor CDATA #IMPLIED
	  fontTitle CDATA #IMPLIED
	  pageFirstImage CDATA #IMPLIED
	  pagePreviousImage CDATA #IMPLIED
	  pageShowPreviousImage CDATA #IMPLIED
	  pageLastImage CDATA #IMPLIED
	  pageNextImage CDATA #IMPLIED
	  pageShowNextImage CDATA #IMPLIED>
Attribute Mand. Description Default
id yes Identifier of the navigation bar.  
template no SELECTBAR.template  
label no Displayable label of the navigation bar.  
startItem no Start page 0
itemCount no Number of items viewed in the navigation bar. 20
controller no Reference of the controller that manages this navigation bar (i.e. handles user demands and refresh content).  
color no SELECTBAR.color  
hrefColor no SELECTBAR.hrefColor  
disabledColor no SELECTBAR.disabledColor  
font no SELECTBAR.font  
fontColor no SELECTBAR.fontColor  
highlightColor no SELECTBAR.highlightColor  
visitedColor no SELECTBAR.visitedColor  
fontTitle no SELECTBAR.fontTitle  
pageFirstImage no SELECTBAR.pageFirstImage  
pagePreviousImage no SELECTBAR.pagePreviousImage  
pageShowPreviousImage no SELECTBAR.pageShowPreviousImage  
pageLastImage no SELECTBAR.pageLastImage  
pageNextImage no SELECTBAR.pageNextImage  
pageShowNextImage no SELECTBAR.pageShowNextImage  

ELEMENTS

<!ELEMENT SELECTBAR 
	  ((SELECTITEM | SEP)*,
	   FIELD?,
	   CONSTRAINT?)>
Element Mand. Mult. Description
SELECTITEM yes no Item of page selection.
SEP yes no Separator.
FIELD no no Input field displayed on the right side of a navigation bar.
CONSTRAINT no no Positioning constraints

SAMPLE

<!-- Navigation bar with 12 selection items -->
<SELECTBAR id='selectBar'>
	<SELECTITEM id='page_0' label='1' selected='true'/>
	<SELECTITEM id='page_1' label='2'/>
	<SELECTITEM id='page_2' label='3'/>
	<SELECTITEM id='page_3' label='4'/>
	<SELECTITEM id='page_4' label='5'/>
	<SELECTITEM id='page_5' label='6'/>
	<SELECTITEM id='page_6' label='7'/>
	<SELECTITEM id='page_7' label='8'/>
	<SELECTITEM id='page_8' label='9'/>
	<SELECTITEM id='page_9' label='10'/>
	<SELECTITEM id='page_10' label='11'/>
	<SELECTITEM id='page_11' label='12'/>
</SELECTBAR>