| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private static final PlatformLogger | |
| private static final int | |
| private String | |
| private final XTextFieldPeer. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | dispose()
Overrides sun. Implements java. Disposes all resources held by the component peer. |
| protected void | |
| public void | focusGained(FocusEvent e)
Overrides sun. Called when component receives focus |
| public void | focusLost(FocusEvent e)
Overrides sun. Called when component loses focus |
| public int | |
| public InputMethodRequests | getInputMethodRequests()
Implements java. Returns the input method requests. |
| public Dimension | getMinimumSize()
Overrides sun. Implements java. Determines the minimum size of the component. |
| public Dimension | getMinimumSize(int cols)
Implements java. Returns the minimum size of the text field with the specified number of columns. |
| public Dimension | getPreferredSize()
Overrides sun. Implements java. Determines the preferred size of the component. |
| public Dimension | getPreferredSize(int cols)
Implements java. Returns the preferred size of the text field with the specified number of columns. |
| public int | getSelectionEnd()
Implements java. Returns the end index of the current selection. |
| public int | getSelectionStart()
Implements java. Returns the start index of the current selection. |
| public String | getText()
Implements java. Returns the current content of the text component. |
| pack-priv void | |
| pack-priv void | |
| public void | handleJavaMouseEvent(MouseEvent mouseEvent)
Overrides sun.
|
| pack-priv void | |
| public boolean | isFocusable()
Overrides sun. Implements java. Returns |
| pack-priv void | |
| public void | print(Graphics g)
Overrides sun. Implements java. Prints the component to the specified graphics context. |
| public void | |
| pack-priv void | |
| public void | select(int s, int e)
Implements java. Selects an area of the text component. |
| public void | setBackground(Color c)
Overrides sun. Implements java. Sets the background color of this component. |
| public void | setBounds(int x, int y, int width, int height, int op)
Overrides sun. Implements java. Sets the location or size or both of the component. |
| public void | setCaretPosition(int position)
Implements java. to be implemented. |
| public void | |
| public void | setEditable(boolean editable)
Implements java. Sets if the text component should be editable or not. |
| public void | setEnabled(boolean enabled)
Overrides sun. Implements java. Enables or disables a component. |
| public void | setFont(Font f)
Overrides sun. Implements java. Sets the font of this component. |
| public void | setForeground(Color c)
Overrides sun. Implements java. Sets the foreground color of this component. |
| public void | setText(String text)
Implements java. Sets the content for the text component. |
| public void | setVisible(boolean b)
Overrides sun. Implements java. Makes a component visible or invisible. |
| private void |
| firstChangeSkipped | back to summary |
|---|---|
| private final boolean firstChangeSkipped | |
| log | back to summary |
|---|---|
| private static final PlatformLogger log | |
| PADDING | back to summary |
|---|---|
| private static final int PADDING | |
| text | back to summary |
|---|---|
| private String text | |
| xtext | back to summary |
|---|---|
| private final XTextFieldPeer. | |
| XTextFieldPeer | back to summary |
|---|---|
| pack-priv XTextFieldPeer(TextField target) | |
| action | back to summary |
|---|---|
| public void action(final long when, final int modifiers) | |
| deselect | back to summary |
|---|---|
| public void deselect() Deselects the highlighted text. | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides sun. Implements java. Doc from java. Disposes all resources held by the component peer. This is called when the component has been disconnected from the component hierarchy and is about to be garbage collected.
| |
| disposeImpl | back to summary |
|---|---|
| protected void disposeImpl() | |
| focusGained | back to summary |
|---|---|
| public void focusGained(FocusEvent e) Overrides sun. Doc from sun. Called when component receives focus
| |
| focusLost | back to summary |
|---|---|
| public void focusLost(FocusEvent e) Overrides sun. Doc from sun. Called when component loses focus
| |
| getCaretPosition | back to summary |
|---|---|
| public int getCaretPosition() Implements java. to be implemented.
| |
| getInputMethodRequests | back to summary |
|---|---|
| public InputMethodRequests getInputMethodRequests() Implements java. Doc from java. Returns the input method requests.
| |
| getMinimumSize | back to summary |
|---|---|
| public Dimension getMinimumSize() Overrides sun. Implements java. Doc from java. Determines the minimum size of the component.
| |
| getMinimumSize | back to summary |
|---|---|
| public Dimension getMinimumSize(int cols) Implements java. Doc from java. Returns the minimum size of the text field with the specified number of columns.
| |
| getPreferredSize | back to summary |
|---|---|
| public Dimension getPreferredSize() Overrides sun. Implements java. Doc from java. Determines the preferred size of the component.
| |
| getPreferredSize | back to summary |
|---|---|
| public Dimension getPreferredSize(int cols) Implements java. Doc from java. Returns the preferred size of the text field with the specified number of columns.
| |
| getSelectionEnd | back to summary |
|---|---|
| public int getSelectionEnd() Implements java. Doc from java. Returns the end index of the current selection.
| |
| getSelectionStart | back to summary |
|---|---|
| public int getSelectionStart() Implements java. Doc from java. Returns the start index of the current selection.
| |
| getText | back to summary |
|---|---|
| public String getText() Implements java. Doc from java. Returns the current content of the text component.
| |
| handleJavaInputMethodEvent | back to summary |
|---|---|
| pack-priv void handleJavaInputMethodEvent(InputMethodEvent e) Overrides sun.
| |
| handleJavaKeyEvent | back to summary |
|---|---|
| pack-priv void handleJavaKeyEvent(KeyEvent e) Overrides sun.
| |
| handleJavaMouseEvent | back to summary |
|---|---|
| public void handleJavaMouseEvent(MouseEvent mouseEvent) Overrides sun.
| |
| initTextField | back to summary |
|---|---|
| pack-priv void initTextField() | |
| isFocusable | back to summary |
|---|---|
| public boolean isFocusable() Overrides sun. Implements java. Doc from java. Returns
| |
| paintPeer | back to summary |
|---|---|
| pack-priv void paintPeer(final Graphics g) Overrides sun.
| |
| back to summary | |
|---|---|
| public void print(Graphics g) Overrides sun. Implements java. Doc from java. Prints the component to the specified graphics context. This is called
by
| |
| repaint | back to summary |
|---|---|
| public void repaint() Overrides sun.
| |
| repaintText | back to summary |
|---|---|
| pack-priv void repaintText() | |
| select | back to summary |
|---|---|
| public void select(int s, int e) Implements java. Doc from java. Selects an area of the text component.
| |
| setBackground | back to summary |
|---|---|
| public void setBackground(Color c) Overrides sun. Implements java. Doc from java. Sets the background color of this component.
| |
| setBounds | back to summary |
|---|---|
| public void setBounds(int x, int y, int width, int height, int op) Overrides sun. Implements java. Doc from java. Sets the location or size or both of the component. The location is
specified relative to the component's parent. The
| |
| setCaretPosition | back to summary |
|---|---|
| public void setCaretPosition(int position) Implements java. to be implemented.
| |
| setEchoChar | back to summary |
|---|---|
| public void setEchoChar(char c) Implements java. Doc from java. Sets the echo character.
| |
| setEditable | back to summary |
|---|---|
| public void setEditable(boolean editable) Implements java. Doc from java. Sets if the text component should be editable or not.
| |
| setEnabled | back to summary |
|---|---|
| public void setEnabled(boolean enabled) Overrides sun. Implements java. Doc from java. Enables or disables a component. Disabled components are usually grayed out and cannot be activated.
| |
| setFont | back to summary |
|---|---|
| public void setFont(Font f) Overrides sun. Implements java. Doc from java. Sets the font of this component.
| |
| setForeground | back to summary |
|---|---|
| public void setForeground(Color c) Overrides sun. Implements java. Doc from java. Sets the foreground color of this component.
| |
| setText | back to summary |
|---|---|
| public void setText(String text) Implements java. Doc from java. Sets the content for the text component.
| |
| setVisible | back to summary |
|---|---|
| public void setVisible(boolean b) Overrides sun. Implements java. Doc from java. Makes a component visible or invisible.
| |
| setXAWTTextField | back to summary |
|---|---|
| private void setXAWTTextField(String txt) | |
| Modifier and Type | Field and Description |
|---|---|
| private JTextField |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Caret | createCaret()
Overrides com. Creates the object to use for a caret. |
| protected String | getPropertyPrefix()
Overrides javax. Fetches the name used as a key to look up properties through the UIManager. |
| protected void | installKeyboardActions()
Overrides javax. Registers keyboard actions. |
| public void | installUI(JComponent c)
Overrides javax. Installs the UI for a component. |
| jtf | back to summary |
|---|---|
| private JTextField jtf | |
| AWTTextFieldUI | back to summary |
|---|---|
| pack-priv AWTTextFieldUI() | |
| createCaret | back to summary |
|---|---|
| protected Caret createCaret() Overrides com. Doc from com. Creates the object to use for a caret. By default an instance of MotifTextUI.MotifCaret is created. This method can be redefined to provide something else that implements the Caret interface.
| |
| getPropertyPrefix | back to summary |
|---|---|
| protected String getPropertyPrefix() Overrides javax. Doc from javax. Fetches the name used as a key to look up properties through the UIManager. This is used as a prefix to all the standard text properties.
| |
| installKeyboardActions | back to summary |
|---|---|
| protected void installKeyboardActions() Overrides javax. Doc from javax. Registers keyboard actions.
| |
| installUI | back to summary |
|---|---|
| public void installUI(JComponent c) Overrides javax. Doc from javax. Installs the UI for a component. This does the following things.
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final XComponentPeer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | actionPerformed(ActionEvent actionEvent)
Implements java. Invoked when an action occurs. |
| public void | changedUpdate(DocumentEvent e)
Implements javax. Gives notification that an attribute or set of attributes changed. |
| pack-priv void | |
| pack-priv void | |
| public Graphics | getGraphics()
Overrides javax. Returns this component's graphics context, which lets you draw on a component. |
| public boolean | |
| public void | insertUpdate(DocumentEvent e)
Implements javax. Gives notification that there was an insert into the document. |
| public void | |
| public void | |
| public void | |
| public void | removeUpdate(DocumentEvent e)
Implements javax. Gives notification that a portion of the document has been removed. |
| public void | |
| public void | setEchoChar(char c)
Overrides javax. Sets the echo character for this |
| public void | setTransferHandler(final TransferHandler newHandler)
Overrides javax. Sets the |
| public void |
| isFocused | back to summary |
|---|---|
| private boolean isFocused | |
| xwin | back to summary |
|---|---|
| private final XComponentPeer xwin | |
| XAWTTextField | back to summary |
|---|---|
| pack-priv XAWTTextField(String text, XComponentPeer xwin, Container parent) | |
| actionPerformed | back to summary |
|---|---|
| public void actionPerformed(ActionEvent actionEvent) Implements java. Doc from java. Invoked when an action occurs.
| |
| changedUpdate | back to summary |
|---|---|
| public void changedUpdate(DocumentEvent e) Implements javax. Doc from javax. Gives notification that an attribute or set of attributes changed.
| |
| forwardFocusGained | back to summary |
|---|---|
| pack-priv void forwardFocusGained(FocusEvent e) | |
| forwardFocusLost | back to summary |
|---|---|
| pack-priv void forwardFocusLost(FocusEvent e) | |
| getGraphics | back to summary |
|---|---|
| public Graphics getGraphics() Overrides javax. Doc from javax. Returns this component's graphics context, which lets you draw
on a component. Use this method to get a
| |
| hasFocus | back to summary |
|---|---|
| public boolean hasFocus() Overrides java. Doc from java. Returns
| |
| insertUpdate | back to summary |
|---|---|
| public void insertUpdate(DocumentEvent e) Implements javax. Doc from javax. Gives notification that there was an insert into the document. The range given by the DocumentEvent bounds the freshly inserted region.
| |
| processInputMethodEventImpl | back to summary |
|---|---|
| public void processInputMethodEventImpl(InputMethodEvent e) | |
| processMouseEventImpl | back to summary |
|---|---|
| public void processMouseEventImpl(MouseEvent e) | |
| processMouseMotionEventImpl | back to summary |
|---|---|
| public void processMouseMotionEventImpl(MouseEvent e) | |
| removeUpdate | back to summary |
|---|---|
| public void removeUpdate(DocumentEvent e) Implements javax. Doc from javax. Gives notification that a portion of the document has been removed. The range is given in terms of what the view last saw (that is, before updating sticky positions).
| |
| repaintNow | back to summary |
|---|---|
| public void repaintNow() | |
| setEchoChar | back to summary |
|---|---|
| public void setEchoChar(char c) Overrides javax. Doc from javax. Sets the echo character for this
| |
| setTransferHandler | back to summary |
|---|---|
| public void setTransferHandler(final TransferHandler newHandler) Overrides javax. Doc from javax. Sets the
If the new
If the new
Under two circumstances, this method does not modify the drop target:
First, if the existing drop target on this component was explicitly
set by the developer to a Please see How to Use Drag and Drop and Data Transfer, a section in The Java Tutorial, for more information.
| |
| updateUI | back to summary |
|---|---|
| public void updateUI() Overrides javax. Doc from javax. Reloads the pluggable UI. The key used to fetch the
new interface is
| |