Scroll Container
Definition
The ScrollContainer is an area defined by width and height that displays scrollbars when the contents of the ScrollContainer extends the defined size.
-
height
Specifies the height of the ScrollContainer control.
-
id
Identification name of the ScrollContainer control.
-
width
Specifies the width of the ScrollContainer control.
|
Attributes |
M |
Values |
Usage |
|---|---|---|---|
|
height |
Unit |
Taglib height="300" Classlib setHeight("300") |
|
|
id |
* |
String (cs) |
Taglib id="scrCont" Classlib setId("scrCont") |
|
width |
Unit |
Taglib width="500" Classlib setWidth("500") |
Example
using the taglib
<hbj:scrollContainer id="scrCont"
width="400"
height="200"
/>
using the classlib
Form form = (Form)this.getForm();
ScrollContaimer scrCont = new ScrollContainer("scrCont");
scrCont.setWidth("400");
scrCont.setHeight("200");
form.addComponent(scrCont);
Result