Child pages
  • SCROLLBAR

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Div
styledisplay:none

DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.

Div
iddescription



HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Constants Summary
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
HORIZONTAL_SCROLLBAR_ALWAYS
Used to set the horizontal scroll bar policy so that horizontal scrollbars are always displayed.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
HORIZONTAL_SCROLLBAR_AS_NEEDED
Used to set the horizontal scroll bar policy so that horizontal scrollbars are displayed only when needed.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
HORIZONTAL_SCROLLBAR_NEVER
Used to set the horizontal scroll bar policy so that horizontal scrollbars are never displayed.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
SCROLLBARS_WHEN_NEEDED
Used to set the horizontal and vertical scroll bar policy so that both scrollbars are displayed
only when needed.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
VERTICAL_SCROLLBAR_ALWAYS
Used to set the vertical scroll bar policy so that vertical scrollbars are always displayed.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
VERTICAL_SCROLLBAR_AS_NEEDED
Used to set the vertical scroll bar policy so that vertical scrollbars are displayed only when needed.
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
VERTICAL_SCROLLBAR_NEVER
Used to set the vertical scroll bar policy so that vertical scrollbars are never displayed.



HTML Table
idconstant
classservoy sDetail
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Constants Details
Table Body (tbody)
idHORIZONTAL_SCROLLBAR_ALWAYS
Table Row (tr)
idname
Table Cell (td)

HORIZONTAL_SCROLLBAR_ALWAYS

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Used to set the horizontal scroll bar policy so that horizontal scrollbars are always displayed.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var alwaysScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 230, 10, 100, 100);
alwaysScrollbars.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_ALWAYS | SM_SCROLLBAR.VERTICAL_SCROLLBAR_ALWAYS;
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idHORIZONTAL_SCROLLBAR_AS_NEEDED
Table Row (tr)
idname
Table Cell (td)

HORIZONTAL_SCROLLBAR_AS_NEEDED

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Used to set the horizontal scroll bar policy so that horizontal scrollbars are displayed only when needed.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var neededScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 120, 10, 100, 100);
neededScrollbars.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_AS_NEEDED | SM_SCROLLBAR.VERTICAL_SCROLLBAR_AS_NEEDED;
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idHORIZONTAL_SCROLLBAR_NEVER
Table Row (tr)
idname
Table Cell (td)

HORIZONTAL_SCROLLBAR_NEVER

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Used to set the horizontal scroll bar policy so that horizontal scrollbars are never displayed.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var noScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 10, 10, 100, 100);
noScrollbars.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_NEVER | SM_SCROLLBAR.VERTICAL_SCROLLBAR_NEVER;
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idSCROLLBARS_WHEN_NEEDED
Table Row (tr)
idname
Table Cell (td)

SCROLLBARS_WHEN_NEEDED

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Used to set the horizontal and vertical scroll bar policy so that both scrollbars are displayed
only when needed.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var neededScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 120, 10, 100, 100);
// This is the default option, but if you really want you can set it explicitly.
neededScrollbars.scrollbars = SM_SCROLLBAR.SCROLLBARS_WHEN_NEEDED;
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idVERTICAL_SCROLLBAR_ALWAYS
Table Row (tr)
idname
Table Cell (td)

VERTICAL_SCROLLBAR_ALWAYS

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Used to set the vertical scroll bar policy so that vertical scrollbars are always displayed.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var alwaysScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 230, 10, 100, 100);
alwaysScrollbars.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_ALWAYS | SM_SCROLLBAR.VERTICAL_SCROLLBAR_ALWAYS;
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idVERTICAL_SCROLLBAR_AS_NEEDED
Table Row (tr)
idname
Table Cell (td)

VERTICAL_SCROLLBAR_AS_NEEDED

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Used to set the vertical scroll bar policy so that vertical scrollbars are displayed only when needed.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var neededScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 120, 10, 100, 100);
neededScrollbars.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_AS_NEEDED | SM_SCROLLBAR.VERTICAL_SCROLLBAR_AS_NEEDED;
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
idVERTICAL_SCROLLBAR_NEVER
Table Row (tr)
idname
Table Cell (td)

VERTICAL_SCROLLBAR_NEVER

Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Used to set the vertical scroll bar policy so that vertical scrollbars are never displayed.
Table Row (tr)
idret
Table Cell (td)

Returns

Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)

Sample

Div
classsIndent
Code Block
languagejavascript
var noScrollbars = form.newField('my_table_text', JSField.TEXT_AREA, 10, 10, 100, 100);
noScrollbars.scrollbars = SM_SCROLLBAR.HORIZONTAL_SCROLLBAR_NEVER | SM_SCROLLBAR.VERTICAL_SCROLLBAR_NEVER;
Table Row (tr)
classlastDetailRow
Table Cell (td)