|
TIBCO ActiveMatrix Mediation Implementation Type v3.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tibco.amsb.core.task.ui.property.MultiLineTextListener
public class MultiLineTextListener
A text area wishing to expand itself as the user adds lines can add this modify listener and the expansion will happen automagically.
Field Summary | |
---|---|
protected int |
lastLineCount
|
protected int |
maximumLineCount
|
protected int |
minimumLineCount
|
protected org.eclipse.swt.custom.StyledText |
styledText
|
protected org.eclipse.swt.widgets.Text |
text
|
Constructor Summary | |
---|---|
MultiLineTextListener(org.eclipse.swt.custom.StyledText text)
Use this constructor if the text box is a styled text widget. |
|
MultiLineTextListener(org.eclipse.swt.custom.StyledText text,
int min,
int max)
Use this constructor if the text box is a styled text widget. |
|
MultiLineTextListener(org.eclipse.swt.widgets.Text text)
Use this constructor for normal text widgets. |
|
MultiLineTextListener(org.eclipse.swt.widgets.Text text,
int min,
int max)
Use this constribute for Text widgets. |
Method Summary | |
---|---|
protected void |
forceLayoutForScrollParent(org.eclipse.swt.custom.StyledText text)
|
protected void |
forceLayoutForScrollParent(org.eclipse.swt.widgets.Text text)
|
void |
modifyText(org.eclipse.swt.events.ModifyEvent event)
Internal method used to watch the text widget and adjust the size as the text is changed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.eclipse.swt.widgets.Text text
protected org.eclipse.swt.custom.StyledText styledText
protected int lastLineCount
protected int minimumLineCount
protected int maximumLineCount
Constructor Detail |
---|
public MultiLineTextListener(org.eclipse.swt.widgets.Text text)
text
- public MultiLineTextListener(org.eclipse.swt.custom.StyledText text)
text
- - styled text widgetpublic MultiLineTextListener(org.eclipse.swt.widgets.Text text, int min, int max)
text
- - the text widgetmin
- - minimum number of lines to displaymax
- - maximum number of lines before the scrollbar appearspublic MultiLineTextListener(org.eclipse.swt.custom.StyledText text, int min, int max)
text
- - styled text widgetmin
- - minimum number of lines to displaymax
- - maximum number of lines before the scrollbar appearsMethod Detail |
---|
public void modifyText(org.eclipse.swt.events.ModifyEvent event)
modifyText
in interface org.eclipse.swt.events.ModifyListener
event
- an event containing information about the modifyprotected void forceLayoutForScrollParent(org.eclipse.swt.widgets.Text text)
protected void forceLayoutForScrollParent(org.eclipse.swt.custom.StyledText text)
|
TIBCO ActiveMatrix Mediation Implementation Type v3.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |