public interface ITextControl
Modifier and Type | Method and Description |
---|---|
void |
addDisposeListener(org.eclipse.swt.events.DisposeListener listener)
Adds a dispose listener to text control.
|
void |
addModifyListener(org.eclipse.swt.events.ModifyListener listener)
Adds a modify listener to text control
|
void |
dispose()
Dispose method
|
java.lang.String |
getContent()
Retrieve the content of the text control
|
java.lang.String |
getContentInPlainText()
Retrieve the content of the text control in plain text.
|
org.eclipse.swt.widgets.Control |
getControl()
Retrieve the text control
|
boolean |
isDirty()
Whether the text control is dirty
|
boolean |
isEditable() |
void |
refresh()
Refreshes the text control
|
void |
setContent(java.lang.String content)
Set the content of the text control
|
void |
setEditable(boolean isEditable)
Specifies if the text control is editable or not
|
void |
setLayoutData(java.lang.Object layoutData)
Sets text control layout
|
void setContent(java.lang.String content)
content
- contentjava.lang.String getContent()
java.lang.String getContentInPlainText()
ITextConverter
, and then returns the converted text.boolean isDirty()
org.eclipse.swt.widgets.Control getControl()
void setLayoutData(java.lang.Object layoutData)
layoutData
- void dispose()
void refresh()
void setEditable(boolean isEditable)
isEditable
- true if the text control is editable,
false otherwise.boolean isEditable()
true
if the text control is editable,
false
otherwise.void addDisposeListener(org.eclipse.swt.events.DisposeListener listener)
listener
- dispose listenervoid addModifyListener(org.eclipse.swt.events.ModifyListener listener)
listener
- modify listener