cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic word wrap in text view

Former Member
0 Kudos

HI,

is there a possibility to display a text with automatic word wrap in Webdynpro Java? For example, i have a transparent container with a width of 200px. When the text is wider than 200px it should bei wrapped automatic.

Can I solve this problem with a formatted text view? Or which type of UI element can I use?

Best regards,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

p330068
Active Contributor
0 Kudos

Hi Peter,

Set wrapping=true for TextView properties.

Hope it will helps

Regards

Arun Jaiswal

Former Member
0 Kudos

HI,

thank you, this solved my problem. I looked at the properties of the TextView, but must somehow overlooked this property.

Thanks for your help.

Best regards,

Peter

Answers (1)

Answers (1)

former_member185086
Active Contributor
0 Kudos

Hi

Apart form the given solution ,you can use the text view and format it manually with any delimeter and +*

+*.

String textData = "Text (literary theory), a concept in literary theory"+ "
" +"a 2010 song by Mann featuring Jason Derülo.";
		wdContext.currentContextElement().setTextData(textData) ;

Best Regards

Satish Kumar