public class IlvGraphicBidiUtil extends Object
IlvGraphicBidiUtil class consists of utility methods
for editing bidirectional text.| Modifier and Type | Method and Description |
|---|---|
static TextArea |
getBidiTextArea(String text,
int rows,
int columns,
int baseTextDirection)
Returns an AWT text area that can handle the base text direction.
|
static TextField |
getBidiTextField(int columns,
int baseTextDirection)
Returns an AWT text field that can handle the base text direction.
|
static KeyListener |
getJTextKeyListener(IlvGraphic obj,
JTextComponent text)
Returns the listener, used in out-of-place editing
with Swing text components.
|
static KeyListener |
getJTextKeyListener(IlvGraphic obj,
JTextComponent text,
boolean allowChanges)
Returns the listener, used in out-of-place editing
with Swing text components.
|
static KeyListener |
getTextKeyListener(int baseTextDirection)
Returns the listener, used in out-of-place editing
with AWT text components, containing text with
bidi marks.
|
public static KeyListener getTextKeyListener(int baseTextDirection)
baseTextDirection - One of the following:
IlvBidiUtil.LEFT_TO_RIGHT:
left-to-right base text direction.
IlvBidiUtil.RIGHT_TO_LEFT:
right-to-left base text direction.
IlvBidiUtil.CONTEXTUAL_DIRECTION:
contextual base text direction.
KeyListenerpublic static KeyListener getJTextKeyListener(IlvGraphic obj, JTextComponent text)
obj - The edited object.text - A text component, used for editing.KeyListenerpublic static KeyListener getJTextKeyListener(IlvGraphic obj, JTextComponent text, boolean allowChanges)
obj - The edited object.text - A text component, used for editing.allowChanges - If true, dynamic changes of base
text direction are allowed by using Shift-Control
Arrow keys.KeyListenerpublic static TextField getBidiTextField(int columns, int baseTextDirection)
columns - The number of columns.baseTextDirection - One of the following:
IlvBidiUtil.LEFT_TO_RIGHT:
left-to-right base text direction.
IlvBidiUtil.RIGHT_TO_LEFT:
right-to-left base text direction.
IlvBidiUtil.CONTEXTUAL_DIRECTION:
contextual base text direction.
TextFieldpublic static TextArea getBidiTextArea(String text, int rows, int columns, int baseTextDirection)
text - Text contained in the text area.rows - The number of rows.columns - The number of columns.baseTextDirection - One of the following:
IlvBidiUtil.LEFT_TO_RIGHT:
left-to-right base text direction.
IlvBidiUtil.RIGHT_TO_LEFT:
right-to-left base text direction.
IlvBidiUtil.CONTEXTUAL_DIRECTION:
contextual base text direction.
TextArea© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.