|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.swt.data.editors.api.PropertyEditor com.ibm.commons.swt.data.editors.api.AbstractTextEditor
public abstract class AbstractTextEditor
An editor that uses a text control.
Constructor Summary | |
---|---|
AbstractTextEditor()
Constructs a new instance of this class. |
|
AbstractTextEditor(IValidator validator)
Constructs a new instance of this class with the given validator. |
Method Summary | |
---|---|
org.eclipse.swt.widgets.Control |
createControl(CompositeEditor parent)
This method is called by the PropertyEditor during initialization. |
int |
getCols()
Return the number of columns this text should span. |
int |
getRows()
Return the number of rows this text should span. |
protected int |
getTextStyle()
|
void |
initControlValue(CompositeEditor parent,
java.lang.String value)
Set the given value into the control created for this property editor. |
boolean |
isImmediateUpdate()
|
void |
setCols(int cols)
Sets the number of columns this text should span. |
void |
setId(java.lang.String id)
Allows the implementor to associate an ID attribute with this control. |
void |
setRows(int rows)
Sets the number of rows this text should span. |
boolean |
stopEdit(CompositeEditor parent)
Called to tell the current editor to stop editing the associated attribute. |
Methods inherited from class com.ibm.commons.swt.data.editors.api.PropertyEditor |
---|
addPropertyEditorUpdateListener, addValidator, callDialog, getContextAttribute, getContextObject, getDefaultEditor, getDialogButtonAltText, getDialogButtonImage, getDialogButtonText, getEditor, getRenderedValue, getScriptMode, getTextValidator, getValidator, getWorkBenchPart, hasDialogButton, isScriptModeFixed, postModelUpdate, preModelUpdate, removePropertyEditorUpdateListener, setContextAttribute, setContextObject, setScriptMode, setValidator, setWorkBenchPart |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTextEditor()
public AbstractTextEditor(IValidator validator)
IValidator
Method Detail |
---|
public org.eclipse.swt.widgets.Control createControl(CompositeEditor parent)
PropertyEditor
createControl
in class PropertyEditor
parent
- - The parent of the control
public void setId(java.lang.String id)
PropertyEditor
setId
in class PropertyEditor
public void initControlValue(CompositeEditor parent, java.lang.String value)
PropertyEditor
initControlValue
in class PropertyEditor
CompositeEditor
public boolean stopEdit(CompositeEditor parent)
PropertyEditor
stopEdit
in class PropertyEditor
parent
- - CompositeEditor
public boolean isImmediateUpdate()
protected int getTextStyle()
public int getCols()
public int getRows()
public void setCols(int cols)
public void setRows(int rows)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |