cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding transparent containter wrapping

Former Member
0 Kudos

Hi

Am new to webdynpro, i need details on Transparent container wrapping.

1. How to create dymically a transparent container and how set the wrapping properties

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Use the following code

hope it will be very helpful for you

IWDTransparentContainer trans=(IWDTransparentContainer)view.createElement(IWDTransparentContainer.class,"TranF");

trans.destroyAllChildren();

trans.createLayout(IWDMatrixLayout.class);

trans.createLayoutData(IWDMatrixData.class);

Xop=Some Text like length more than 40

int mop=Xop.length();

if (mop>35)

{

<Name>.setWrapping(true);

} else

{

<Name>.setWrapping(false);

}

<Name>.createLayoutData(IWDMatrixHeadData.class);

trans.addChild<Name>

Regards

Dhinakar J

Former Member
0 Kudos

@Dhinakaran:

Please be more careful when posting code.

- when you create a new container, you don't need to destroy its (non-existing) children

- you create the layout twice

- you create layout data but do not mention the parent (which is irrelevant for this example)

- you use undefined variables like Xop, thetxtVragName

- etc.

And you don't answer the question. At least you got 10 points

Armin

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

There is no wrapping property for the transparent container. But we have to create a layout.

IWDTransparentContainer container = (IWDTransparentContainer)view.getElement("Transparent container").

By default it has FlowLayout,so set to Matrix as,

container.createLayout(IWDMatrixLayout.class);

When you add elements to this container, set the element's createLayoutData property to "MatrixHeadData.class" in a wrapped manner

Regards,

Saravanan K

Message was edited by: Saravanan K

former_member182372
Active Contributor
0 Kudos

Hi,

In wdDoModifyView put


IWDTransparentContainer newContainer = (IWDTransparentContainer)view.createElement(IWDTransparentContainer.class, null);

but there is no wrapping property for this container. You should use appropriate layout with this container to make wrapping.

best regards, Maksim Rashchynski.