|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EditorComponent
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface thinwire.ui.AlignTextComponent |
|---|
AlignTextComponent.AlignX |
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_CURSOR_INDEX
|
static java.lang.String |
PROPERTY_MAX_LENGTH
|
static java.lang.String |
PROPERTY_SELECTION_BEGIN_INDEX
|
static java.lang.String |
PROPERTY_SELECTION_END_INDEX
|
| Fields inherited from interface thinwire.ui.AlignTextComponent |
|---|
PROPERTY_ALIGN_X |
| Fields inherited from interface thinwire.ui.TextComponent |
|---|
PROPERTY_TEXT |
| Fields inherited from interface thinwire.ui.Component |
|---|
ACTION_CLICK, ACTION_DOUBLE_CLICK, PROPERTY_ENABLED, PROPERTY_FOCUS, PROPERTY_FOCUS_CAPABLE, PROPERTY_HEIGHT, PROPERTY_LIMIT, PROPERTY_USER_OBJECT, PROPERTY_VISIBLE, PROPERTY_WIDTH, PROPERTY_X, PROPERTY_Y |
| Method Summary | |
|---|---|
int |
getCursorIndex()
Retuns the index of the current cursor position |
int |
getMaxLength()
Gets the TextField's max length. |
int |
getSelectionBeginIndex()
Returns the index of the beginning of the selection |
int |
getSelectionEndIndex()
Returns the index of the end of the selection |
void |
setCursorIndex(int index)
Sets the index of the cursor position Events: |
void |
setMaxLength(int maxLength)
Sets the editor max length. |
void |
setSelectionBeginIndex(int selectionBeginIndex)
Sets the index of the beginning of a selection Events: |
void |
setSelectionEndIndex(int selectionEndIndex)
Sets the index of the end of the selection Events: |
void |
setSelectionRange(int selectionBeginIndex,
int selectionEndIndex)
Sets the range of the selection Events: |
| Methods inherited from interface thinwire.ui.AlignTextComponent |
|---|
getAlignX, setAlignX |
| Methods inherited from interface thinwire.ui.TextComponent |
|---|
getText, setText |
| Field Detail |
|---|
static final java.lang.String PROPERTY_SELECTION_BEGIN_INDEX
static final java.lang.String PROPERTY_SELECTION_END_INDEX
static final java.lang.String PROPERTY_CURSOR_INDEX
static final java.lang.String PROPERTY_MAX_LENGTH
| Method Detail |
|---|
void setSelectionRange(int selectionBeginIndex,
int selectionEndIndex)
If the prior values and new values differ, setting this property causes 2 PropertyChangeEvents ( propertyName = PROPERTY_SELECTION_BEGIN_INDEX and propertyName = PROPERTY_SELECTION_END_INDEX ) to be generated.
selectionBeginIndex - the index of the start of the selectionselectionEndIndex - the index of the end of the selectionsetSelectionBeginIndex(int),
setSelectionEndIndex(int),
PROPERTY_SELECTION_BEGIN_INDEX,
PROPERTY_SELECTION_END_INDEX,
PropertyChangeEventint getSelectionBeginIndex()
#setSelectionBeginIndex()void setSelectionBeginIndex(int selectionBeginIndex)
If the prior values and new values differ, setting this property causes a PropertyChangeEvent ( propertyName = PROPERTY_SELECTION_BEGIN_INDEX ) to be generated.
selectionBeginIndex - the index of the start of the selectiongetSelectionBeginIndex(),
setSelectionRange(int, int),
PROPERTY_SELECTION_BEGIN_INDEX,
PropertyChangeEventint getSelectionEndIndex()
setSelectionEndIndex(int)void setSelectionEndIndex(int selectionEndIndex)
If the prior values and new values differ, setting this property causes a PropertyChangeEvent ( propertyName = PROPERTY_SELECTION_END_INDEX ) to be generated.
selectionEndIndex - the index of the end of the selectiongetSelectionEndIndex(),
setSelectionRange(int, int),
PROPERTY_SELECTION_END_INDEX,
PropertyChangeEventint getCursorIndex()
setCursorIndex(int)void setCursorIndex(int index)
If the prior values and new values differ, setting this property causes a PropertyChangeEvent ( propertyName = PROPERTY_CURSOR_INDEX ) to be generated.
index - the index of the cursorgetCursorIndex(),
PROPERTY_CURSOR_INDEX,
PropertyChangeEventvoid setMaxLength(int maxLength)
maxLength - The maxLength to set.int getMaxLength()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||