litesoft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package org.litesoft.aokeyhole.swing.namevaluecomponents;
import org.litesoft.aokeyhole.swing.simplecomponents.*;
import org.litesoft.aokeyhole.toolkit.*;
import javax.swing.text.*;
public class NamedStringLinesFieldComponent
extends AbstractNamedDocumentFieldComponent
{
private boolean mWrapTextArea;
public NamedStringLinesFieldComponent( NameValueComponentParams pParams )
{
super( pParams );
mWrapTextArea = pParams.isWrapTextArea();
}
public boolean growsVertically()
{
return true;
}
protected void setCompText( String pText )
{
super.setCompText( (pText == null) ? "" : pText.replace( '|', '\n' ) );
}
protected JTextComponent createJTextComponent()
{
JTextAreaPlus zTextAreaPlus = new JTextAreaPlus();
zTextAreaPlus.setLineWrap( mWrapTextArea );
zTextAreaPlus.setWrapStyleWord( true );
return zTextAreaPlus;
}
}
|
Revision |
Author |
Commited |
Message |
2
|
GeorgeS
|
Sun 07 Feb, 2010 12:50:58 +0000 |
|