Interface ISpecificCaretPosition
- All Known Implementing Classes:
JFormattedTextFieldSCP,JTextFieldWithSCP
public interface ISpecificCaretPosition
Interface with the prototype of methods to have a component with an specific
caret position
- Author:
- Pablo Piqueras Bartolomé (p_queras@hotmail.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionintGets the position of text that will be seenvoidsetCaretPositionMode(int caretPositionMode) Sets the position of text that will be seen
-
Field Details
-
LEFT_POSITIONS
static final int LEFT_POSITIONS- See Also:
-
RIGHT_POSITIONS
static final int RIGHT_POSITIONS- See Also:
-
LIKE_JTEXTCOMPONENT
static final int LIKE_JTEXTCOMPONENT- See Also:
-
-
Method Details
-
getCaretPositionMode
int getCaretPositionMode()Gets the position of text that will be seen- Returns:
- The position of text that will be seen (LEFT_POSITIONS, RIGHT_POSITIONS or LIKE_JTEXTCOMPONENT)
-
setCaretPositionMode
void setCaretPositionMode(int caretPositionMode) Sets the position of text that will be seen- Parameters:
caretPositionMode- The position of text that will be seen (LEFT_POSITIONS, RIGHT_POSITIONS or LIKE_JTEXTCOMPONENT)
-