Show TOC

Object documentationScroll Container Locate this document in the navigation structure

 

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

Syntax Syntax

  1.   <hbj:scrollContainer id="scrCont"
        width="400"
        height="200"
      />
    
End of the code.

using the classlib

Syntax Syntax

  1.     Form form = (Form)this.getForm();
        ScrollContaimer scrCont = new ScrollContainer("scrCont");
        scrCont.setWidth("400");
        scrCont.setHeight("200");
        form.addComponent(scrCont);
    
End of the code.
Result

This graphic is explained in the accompanying text.