thinwire.ui
Interface EditorComponent

All Superinterfaces:
AlignTextComponent, Component, TextComponent
All Known Subinterfaces:
MaskEditorComponent
All Known Implementing Classes:
DropDown, DropDownDateBox, DropDownGridBox, TextArea, TextField

public interface EditorComponent
extends AlignTextComponent


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
 
Methods inherited from interface thinwire.ui.Component
addActionListener, addActionListener, addDropListener, addDropListener, addKeyPressListener, addKeyPressListener, addPropertyChangeListener, addPropertyChangeListener, fireAction, fireAction, fireAction, fireDrop, fireDrop, fireDrop, fireKeyPress, fireKeyPress, getContainer, getHeight, getLabel, getLimit, getParent, getStyle, getUserObject, getWidth, getX, getY, isEnabled, isFocus, isFocusCapable, isVisible, removeActionListener, removeDropListener, removeKeyPressListener, removePropertyChangeListener, setBounds, setEnabled, setFocus, setFocusCapable, setHeight, setLimit, setPosition, setSize, setUserObject, setVisible, setWidth, setX, setY
 

Field Detail

PROPERTY_SELECTION_BEGIN_INDEX

static final java.lang.String PROPERTY_SELECTION_BEGIN_INDEX
See Also:
Constant Field Values

PROPERTY_SELECTION_END_INDEX

static final java.lang.String PROPERTY_SELECTION_END_INDEX
See Also:
Constant Field Values

PROPERTY_CURSOR_INDEX

static final java.lang.String PROPERTY_CURSOR_INDEX
See Also:
Constant Field Values

PROPERTY_MAX_LENGTH

static final java.lang.String PROPERTY_MAX_LENGTH
See Also:
Constant Field Values
Method Detail

setSelectionRange

void setSelectionRange(int selectionBeginIndex,
                       int selectionEndIndex)
Sets the range of the selection
Events:

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.

Parameters:
selectionBeginIndex - the index of the start of the selection
selectionEndIndex - the index of the end of the selection
See Also:
setSelectionBeginIndex(int), setSelectionEndIndex(int), PROPERTY_SELECTION_BEGIN_INDEX, PROPERTY_SELECTION_END_INDEX, PropertyChangeEvent

getSelectionBeginIndex

int getSelectionBeginIndex()
Returns the index of the beginning of the selection

Returns:
the index at the start of the selection or -1 if there is no selection
See Also:
#setSelectionBeginIndex()

setSelectionBeginIndex

void setSelectionBeginIndex(int selectionBeginIndex)
Sets the index of the beginning of a selection
Events:

If the prior values and new values differ, setting this property causes a PropertyChangeEvent ( propertyName = PROPERTY_SELECTION_BEGIN_INDEX ) to be generated.

Parameters:
selectionBeginIndex - the index of the start of the selection
See Also:
getSelectionBeginIndex(), setSelectionRange(int, int), PROPERTY_SELECTION_BEGIN_INDEX, PropertyChangeEvent

getSelectionEndIndex

int getSelectionEndIndex()
Returns the index of the end of the selection

Returns:
the index of the end of the selection or -1 if there is no selection
See Also:
setSelectionEndIndex(int)

setSelectionEndIndex

void setSelectionEndIndex(int selectionEndIndex)
Sets the index of the end of the selection
Events:

If the prior values and new values differ, setting this property causes a PropertyChangeEvent ( propertyName = PROPERTY_SELECTION_END_INDEX ) to be generated.

Parameters:
selectionEndIndex - the index of the end of the selection
See Also:
getSelectionEndIndex(), setSelectionRange(int, int), PROPERTY_SELECTION_END_INDEX, PropertyChangeEvent

getCursorIndex

int getCursorIndex()
Retuns the index of the current cursor position

Returns:
the index of the cursor or -1 if there is a selection
See Also:
setCursorIndex(int)

setCursorIndex

void setCursorIndex(int index)
Sets the index of the cursor position
Events:

If the prior values and new values differ, setting this property causes a PropertyChangeEvent ( propertyName = PROPERTY_CURSOR_INDEX ) to be generated.

Parameters:
index - the index of the cursor
See Also:
getCursorIndex(), PROPERTY_CURSOR_INDEX, PropertyChangeEvent

setMaxLength

void setMaxLength(int maxLength)
Sets the editor max length.

Parameters:
maxLength - The maxLength to set.

getMaxLength

int getMaxLength()
Gets the TextField's max length.

Returns:
Returns the maxLength.


ThinWire® is a registered of Custom Credit Systems  Copyright © 2007 All rights reserved.
ThinWire_is_Open_Source_under_the_terms_of_the_LGPLv2.1 SourceForge.net_Project_Page java.net_Member Support_ThinWire,_Digg_our_Story