Breadcrumb
The breadCrumb represents the sequence of the visited pages (remember the story of Hansel + Gretel). It informs the user about his actual position in your application and allows easy navigation back to start page. An item in the breadCrumb chain is called breadCrumbItem. BreadCrumbItems can be defined with models or manually.
If the breadCrumb line becomes longer than the web client window it is word wrapped like a text line - if there is no word separator in the breadCrumbItem value string, the line is not wrapped.
·
behavior
The breadCrumb can behave as a
DEFAULT
Each breadCrumbItem can be linked independently.
SINGLELINK
The entire breadCrumb string is a single link.
·
id
Identification name of the breadCrumb.
·
model
Defines the model or bean which provides the
breadCrumb with data.
See also IListModel.
·
nameOfKeyColumn
Specifies the name of the column that contains the
key. This is used when you use an underlying table in the
model.
·
onClick
Defines the event handling method that will be
processed when the user clicks on the breadcrumb. The BreadCrumbEventClick object
allows access to the key, which breadCrumb element had been clicked and allows
the definition of parameters.
·
size
Defines the text size of the breadCrumb.
Possible values are:
¡
LARGE
Double the standard text size.
¡
MEDIUM
Standard text size.
¡
SMALL
Half of the standard text size.
·
tooltip
Defines the hint of the button which
is displayed
as the mouse cursor passes over the button, or as the mouse button is pressed
but not released.
Attributes |
M |
Values |
Usage |
behavior |
|
DEFAULT (d) SINGLELINK |
Taglib Classlib |
id |
* |
String (cs) |
Taglib Classlib |
model |
|
String (cs) |
Taglib Classlib |
name |
|
String |
Taglib Classlib |
tooltip |
|
String |
Taglib Classlib |
size |
|
LARGE MEDIUM SMALL |
Taglib Classlib |
Events |
M |
Values |
Usage |
onClick |
|
String (cs)
|
Taglib Classlib |
Defines the items in the breadCrumb instead of the model.

We strongly recommend models to supply the breadCrumb with data.
key
A string which is passed
on to the event handling routine when the event occurs. A key string has to be
defined and must not be empty.
If the attribute 'behavior' is set to "SINGLELINK" the 'key' is set to "null"
when passed on to the event handling routine.
value
Defines the text string displayed in the breadCrumb. A value string has to be
defined and must not be empty.
Attributes |
M |
Values |
Usage |
key |
* |
String (cs)
|
Taglib Classlib |
value |
* |
String |
Taglib Classlib |
Allows access to the event fired by the breadCrumb control.
setParams
Set the parameters for
the HTML page. The parameters depend on the nature of the event. For example,
table related events can include row and column id. The setParams method is inherited from
the com.sapportals.htmlb.event.Event class. See the HTMLB
Javadoc - Class "Event" for more details on how to set parameters for the HTML
page and how to have access.
getKey
Returns the key of the breadCrumb control element, that has been clicked.
using the taglib
<hbj:breadCrumb |
using the classlib
Form form = (Form)this.getForm(); |
