cancel
Showing results for 
Search instead for 
Did you mean: 

Drawing vertical line in WebDynpro

former_member188321
Contributor
0 Kudos

Hi,

1.I need to draw/simulate Vertical line between two Labels.

How can I achieve that? Can somebody give some sample code?

2.Also, how to set LayoutData Properties for a textView at runtime?

Eg. LayoutData is of type MatrixHeadData like:

tv.createLayoutData(IWDMatrixHeadData.class);

Now how to set CellDesign Property at runtime for textView tv?

Regards,

Daman

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Damandeep,

1. Use matrix layout. Place two lables, then for second label select in layout properties gutter as medium with rule.

2. IWDMatrixHeadData cell = (IWDMatrixHeadData)tv.createLayoutData(IWDMatrixHeadData.class);

Now use cell to alter properties.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Message was edited by: Valery Silaev

former_member188321
Contributor
0 Kudos

Hi Valery,

Perfectly! I wanted the same. Now can I have this line with color black, rather then the light colored gutter?

Regards,

Damandeep

Former Member
0 Kudos

Damandeep,

No -- you cannot this way. This would require altering of comple CSS theme usign WD Theme Editor (rather complex task and result affects all applications).

Try to create matrix layout with 3 cells.

1. Label, valign=middle, no gutter.

2. Image (we will discuss it later), valign=middle, gutter=medium without rule.

3. Label, valign=middle, gutter=medium without rule.

For image create 1x1 black GIF or PNG image and place it under src/mimes/components/<qualified-component-name> folder. Name file, say black.png.

Assign plack.png as image source, set image width to 1px (or 2px or more -- this will control width), and height to 10pt -- this is approximate height of labels.

This way you may emulate gutter of any color.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

former_member188321
Contributor
0 Kudos

Thanks Valery!

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can set the layout as

<textview>.createLayoutData(IWDMatrixData.class);

and design properties like

<textview>.setDesign(WDTextViewDesign.<designs)

As per i know there is no provision for vertical lines

Regards