Class JTextComponent
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html
public class JTextComponent : JComponent, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JTextComponent
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
JTextComponent()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("JTextComponent class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public JTextComponent()
JTextComponent(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
[Obsolete("JTextComponent class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public JTextComponent(params object[] args)
Parameters
args
object[]
Properties
Actions
public Action[] Actions { get; }
Property Value
- Action[]
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
Caret
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getCaret() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setCaret(javax.swing.text.Caret)
public Caret Caret { get; set; }
Property Value
CaretColor
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getCaretColor() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setCaretColor(java.awt.Color)
public Color CaretColor { get; set; }
Property Value
CaretListeners
public CaretListener[] CaretListeners { get; }
Property Value
CaretPosition
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getCaretPosition() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setCaretPosition(int)
public int CaretPosition { get; set; }
Property Value
DEFAULT_KEYMAP
public static String DEFAULT_KEYMAP { get; }
Property Value
DisabledTextColor
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getDisabledTextColor() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setDisabledTextColor(java.awt.Color)
public Color DisabledTextColor { get; set; }
Property Value
Document
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getDocument() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setDocument(javax.swing.text.Document)
public Document Document { get; set; }
Property Value
DragEnabled
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getDragEnabled() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setDragEnabled(boolean)
public bool DragEnabled { get; set; }
Property Value
DropMode
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getDropMode() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setDropMode(javax.swing.DropMode)
public DropMode DropMode { get; set; }
Property Value
FOCUS_ACCELERATOR_KEY
public static String FOCUS_ACCELERATOR_KEY { get; }
Property Value
FocusAccelerator
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getFocusAccelerator() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setFocusAccelerator(char)
public char FocusAccelerator { get; set; }
Property Value
GetDropLocation
public JTextComponent.DropLocation GetDropLocation { get; }
Property Value
Highlighter
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getHighlighter() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setHighlighter(javax.swing.text.Highlighter)
public Highlighter Highlighter { get; set; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
Keymap
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getKeymap() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setKeymap(javax.swing.text.Keymap)
public Keymap Keymap { get; set; }
Property Value
Margin
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getMargin() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setMargin(java.awt.Insets)
public Insets Margin { get; set; }
Property Value
NavigationFilter
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getNavigationFilter() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setNavigationFilter(javax.swing.text.NavigationFilter)
public NavigationFilter NavigationFilter { get; set; }
Property Value
PreferredScrollableViewportSize
public Dimension PreferredScrollableViewportSize { get; }
Property Value
ScrollableTracksViewportHeight
public bool ScrollableTracksViewportHeight { get; }
Property Value
ScrollableTracksViewportWidth
public bool ScrollableTracksViewportWidth { get; }
Property Value
SelectedText
public String SelectedText { get; }
Property Value
SelectedTextColor
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getSelectedTextColor() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setSelectedTextColor(java.awt.Color)
public Color SelectedTextColor { get; set; }
Property Value
SelectionColor
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getSelectionColor() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setSelectionColor(java.awt.Color)
public Color SelectionColor { get; set; }
Property Value
SelectionEnd
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getSelectionEnd() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setSelectionEnd(int)
public int SelectionEnd { get; set; }
Property Value
SelectionStart
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getSelectionStart() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setSelectionStart(int)
public int SelectionStart { get; set; }
Property Value
Text
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#getText() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/text/JTextComponent.html#setText(java.lang.String)
public String Text { get; set; }
Property Value
Methods
AddCaretListener(CaretListener)
public void AddCaretListener(CaretListener arg0)
Parameters
AddKeymap(String, Keymap)
public static Keymap AddKeymap(String arg0, Keymap arg1)
Parameters
Returns
Copy()
public void Copy()
Cut()
public void Cut()
GetKeymap(String)
public static Keymap GetKeymap(String arg0)
Parameters
Returns
GetPrintable(MessageFormat, MessageFormat)
public Printable GetPrintable(MessageFormat arg0, MessageFormat arg1)
Parameters
arg0
MessageFormatarg1
MessageFormat
Returns
GetScrollableBlockIncrement(Rectangle, int, int)
public int GetScrollableBlockIncrement(Rectangle arg0, int arg1, int arg2)
Parameters
Returns
GetScrollableUnitIncrement(Rectangle, int, int)
public int GetScrollableUnitIncrement(Rectangle arg0, int arg1, int arg2)
Parameters
Returns
GetText(int, int)
public String GetText(int arg0, int arg1)
Parameters
Returns
Exceptions
IsEditable()
public bool IsEditable()
Returns
LoadKeymap(Keymap, KeyBinding[], Action[])
public static void LoadKeymap(Keymap arg0, JTextComponent.KeyBinding[] arg1, Action[] arg2)
Parameters
arg0
Keymaparg1
KeyBinding[]arg2
Action[]
ModelToView2D(int)
public Rectangle2D ModelToView2D(int arg0)
Parameters
Returns
Exceptions
MoveCaretPosition(int)
public void MoveCaretPosition(int arg0)
Parameters
Paste()
public void Paste()
Print()
public bool Print()
Returns
Exceptions
Print(MessageFormat, MessageFormat)
public bool Print(MessageFormat arg0, MessageFormat arg1)
Parameters
arg0
MessageFormatarg1
MessageFormat
Returns
Exceptions
Print(MessageFormat, MessageFormat, bool, PrintService, PrintRequestAttributeSet, bool)
public bool Print(MessageFormat arg0, MessageFormat arg1, bool arg2, PrintService arg3, PrintRequestAttributeSet arg4, bool arg5)
Parameters
arg0
MessageFormatarg1
MessageFormatarg2
boolarg3
PrintServicearg4
PrintRequestAttributeSetarg5
bool
Returns
Exceptions
Read(Reader, object)
public void Read(Reader arg0, object arg1)
Parameters
Exceptions
RemoveCaretListener(CaretListener)
public void RemoveCaretListener(CaretListener arg0)
Parameters
RemoveKeymap(String)
public static Keymap RemoveKeymap(String arg0)
Parameters
Returns
ReplaceSelection(String)
public void ReplaceSelection(String arg0)
Parameters
Select(int, int)
public void Select(int arg0, int arg1)
Parameters
SelectAll()
public void SelectAll()
SetEditable(bool)
public void SetEditable(bool arg0)
Parameters
SetUI(TextUI)
public void SetUI(TextUI arg0)
Parameters
ViewToModel2D(Point2D)
public int ViewToModel2D(Point2D arg0)
Parameters
Returns
Write(Writer)
public void Write(Writer arg0)
Parameters
Exceptions
Operators
implicit operator Accessible(JTextComponent)
Converter from JTextComponent to Accessible
public static implicit operator Accessible(JTextComponent t)
Parameters
Returns
implicit operator Scrollable(JTextComponent)
Converter from JTextComponent to Scrollable
public static implicit operator Scrollable(JTextComponent t)