public static class IlvText.Editor extends IlvTextEditor
Constructor and Description |
---|
Editor()
Creates a new instance of the text editor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
copySelection(IlvTextInterface text,
int startIndex,
int endIndex)
Copies the region from the input text object to the clipboard.
|
protected void |
deleteSelection(IlvTextInterface text,
int startIndex,
int endIndex)
Delete the region from the input text object.
|
protected void |
replaceSelection(IlvTextInterface text,
int startIndex,
int endIndex,
AttributedString s)
Replace the region from the input text object.
|
protected void |
replaceSelection(IlvTextInterface text,
int startIndex,
int endIndex,
String s)
Replace the region from the input text object.
|
lostOwnership, processEvent
drawGhost, drawGhost, getBoundingBox, getCursor, getPreserveAspectModifier, getPreserveAspectModifierEx, handleButtonDown, handleButtonDragged, handleButtonUp, handleExpose, isOpaqueMode, isPredictionCursorMode, isPreserveAspectModifierDown, onEnter, onExit, reshapeObject, setOpaqueMode, setPredictionCursorMode, setPreserveAspectModifier
Get, Put
protected void deleteSelection(IlvTextInterface text, int startIndex, int endIndex)
label.substring(startIndex, endIndex)
is removed from the label of the text object.deleteSelection
in class IlvTextEditor
text
- The text objectstartIndex
- The index of the first character to be removed.endIndex
- The index of the first character that is not anymore
removed.protected void replaceSelection(IlvTextInterface text, int startIndex, int endIndex, String s)
label.substring(startIndex, endIndex)
is replaced from the label of the text object.replaceSelection
in class IlvTextEditor
text
- The text objectstartIndex
- The index of the first character to be replaced.endIndex
- The index of the first character that is not anymore
replaced.s
- The replacement string.protected void replaceSelection(IlvTextInterface text, int startIndex, int endIndex, AttributedString s)
label.substring(startIndex, endIndex)
is replaced from the label of the text object.replaceSelection
in class IlvTextEditor
text
- The text objectstartIndex
- The index of the first character to be replaced.endIndex
- The index of the first character that is not anymore
replaced.s
- The replacement string as attributed text.protected void copySelection(IlvTextInterface text, int startIndex, int endIndex)
label.substring(startIndex, endIndex)
is copied from the label of the text object to the clipboard.copySelection
in class IlvTextEditor
text
- The text objectstartIndex
- The index of the first character to be removed.endIndex
- The index of the first character that is not anymore
removed.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.