on 07-21-2006 10:22 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.