Table of Contents

Class JTextComponent

Namespace
Javax.Swing.Text
Assembly
MASES.JNet.dll
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

string

Caret

public Caret Caret { get; set; }

Property Value

Caret

CaretColor

public Color CaretColor { get; set; }

Property Value

Color

CaretListeners

public CaretListener[] CaretListeners { get; }

Property Value

CaretListener[]

CaretPosition

public int CaretPosition { get; set; }

Property Value

int

DEFAULT_KEYMAP

public static String DEFAULT_KEYMAP { get; }

Property Value

String

DisabledTextColor

public Color DisabledTextColor { get; set; }

Property Value

Color

Document

public Document Document { get; set; }

Property Value

Document

DragEnabled

public bool DragEnabled { get; set; }

Property Value

bool

DropMode

public DropMode DropMode { get; set; }

Property Value

DropMode

FOCUS_ACCELERATOR_KEY

public static String FOCUS_ACCELERATOR_KEY { get; }

Property Value

String

FocusAccelerator

public char FocusAccelerator { get; set; }

Property Value

char

GetDropLocation

public JTextComponent.DropLocation GetDropLocation { get; }

Property Value

JTextComponent.DropLocation

Highlighter

public Highlighter Highlighter { get; set; }

Property Value

Highlighter

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Keymap

public Keymap Keymap { get; set; }

Property Value

Keymap

Margin

public Insets Margin { get; set; }

Property Value

Insets

NavigationFilter

public NavigationFilter NavigationFilter { get; set; }

Property Value

NavigationFilter

PreferredScrollableViewportSize

public Dimension PreferredScrollableViewportSize { get; }

Property Value

Dimension

ScrollableTracksViewportHeight

public bool ScrollableTracksViewportHeight { get; }

Property Value

bool

ScrollableTracksViewportWidth

public bool ScrollableTracksViewportWidth { get; }

Property Value

bool

SelectedText

public String SelectedText { get; }

Property Value

String

SelectedTextColor

public Color SelectedTextColor { get; set; }

Property Value

Color

SelectionColor

public Color SelectionColor { get; set; }

Property Value

Color

SelectionEnd

public int SelectionEnd { get; set; }

Property Value

int

SelectionStart

public int SelectionStart { get; set; }

Property Value

int

Text

public String Text { get; set; }

Property Value

String

Methods

AddCaretListener(CaretListener)

public void AddCaretListener(CaretListener arg0)

Parameters

arg0 CaretListener

CaretListener

AddKeymap(String, Keymap)

public static Keymap AddKeymap(String arg0, Keymap arg1)

Parameters

arg0 String

String

arg1 Keymap

Keymap

Returns

Keymap

Keymap

Copy()

public void Copy()

Cut()

public void Cut()

GetKeymap(String)

public static Keymap GetKeymap(String arg0)

Parameters

arg0 String

String

Returns

Keymap

Keymap

GetPrintable(MessageFormat, MessageFormat)

public Printable GetPrintable(MessageFormat arg0, MessageFormat arg1)

Parameters

arg0 MessageFormat

MessageFormat

arg1 MessageFormat

MessageFormat

Returns

Printable

Printable

GetScrollableBlockIncrement(Rectangle, int, int)

public int GetScrollableBlockIncrement(Rectangle arg0, int arg1, int arg2)

Parameters

arg0 Rectangle

Rectangle

arg1 int

int

arg2 int

int

Returns

int

int

GetScrollableUnitIncrement(Rectangle, int, int)

public int GetScrollableUnitIncrement(Rectangle arg0, int arg1, int arg2)

Parameters

arg0 Rectangle

Rectangle

arg1 int

int

arg2 int

int

Returns

int

int

GetText(int, int)

public String GetText(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

String

String

Exceptions

BadLocationException

IsEditable()

public bool IsEditable()

Returns

bool

bool

LoadKeymap(Keymap, KeyBinding[], Action[])

public static void LoadKeymap(Keymap arg0, JTextComponent.KeyBinding[] arg1, Action[] arg2)

Parameters

arg0 Keymap

Keymap

arg1 KeyBinding[]

JTextComponent.KeyBinding

arg2 Action[]

Action

ModelToView2D(int)

public Rectangle2D ModelToView2D(int arg0)

Parameters

arg0 int

int

Returns

Rectangle2D

Rectangle2D

Exceptions

BadLocationException

MoveCaretPosition(int)

public void MoveCaretPosition(int arg0)

Parameters

arg0 int

int

Paste()

public void Paste()

Print()

public bool Print()

Returns

bool

bool

Exceptions

PrinterException

Print(MessageFormat, MessageFormat)

public bool Print(MessageFormat arg0, MessageFormat arg1)

Parameters

arg0 MessageFormat

MessageFormat

arg1 MessageFormat

MessageFormat

Returns

bool

bool

Exceptions

PrinterException

Print(MessageFormat, MessageFormat, bool, PrintService, PrintRequestAttributeSet, bool)

public bool Print(MessageFormat arg0, MessageFormat arg1, bool arg2, PrintService arg3, PrintRequestAttributeSet arg4, bool arg5)

Parameters

arg0 MessageFormat

MessageFormat

arg1 MessageFormat

MessageFormat

arg2 bool

bool

arg3 PrintService

PrintService

arg4 PrintRequestAttributeSet

PrintRequestAttributeSet

arg5 bool

bool

Returns

bool

bool

Exceptions

PrinterException

Read(Reader, object)

public void Read(Reader arg0, object arg1)

Parameters

arg0 Reader

Reader

arg1 object

object

Exceptions

IOException

RemoveCaretListener(CaretListener)

public void RemoveCaretListener(CaretListener arg0)

Parameters

arg0 CaretListener

CaretListener

RemoveKeymap(String)

public static Keymap RemoveKeymap(String arg0)

Parameters

arg0 String

String

Returns

Keymap

Keymap

ReplaceSelection(String)

public void ReplaceSelection(String arg0)

Parameters

arg0 String

String

Select(int, int)

public void Select(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

SelectAll()

public void SelectAll()

SetEditable(bool)

public void SetEditable(bool arg0)

Parameters

arg0 bool

bool

SetUI(TextUI)

public void SetUI(TextUI arg0)

Parameters

arg0 TextUI

TextUI

ViewToModel2D(Point2D)

public int ViewToModel2D(Point2D arg0)

Parameters

arg0 Point2D

Point2D

Returns

int

int

Write(Writer)

public void Write(Writer arg0)

Parameters

arg0 Writer

Writer

Exceptions

IOException

Operators

implicit operator Accessible(JTextComponent)

Converter from JTextComponent to Accessible

public static implicit operator Accessible(JTextComponent t)

Parameters

t JTextComponent

Returns

Accessible

implicit operator Scrollable(JTextComponent)

Converter from JTextComponent to Scrollable

public static implicit operator Scrollable(JTextComponent t)

Parameters

t JTextComponent

Returns

Scrollable