APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.awt.X11

pack-priv final Class XTextFieldPeer

extends XComponentPeer
implements TextFieldPeer
Class Inheritance
All Implemented Interfaces
java.awt.peer.TextFieldPeer, java.awt.peer.TextComponentPeer, java.awt.peer.ComponentPeer
Imports
java.awt.*, java.awt.peer.*, java.awt.event.*, javax.swing.text.*, javax.swing.event.DocumentListener, .DocumentEvent, javax.swing.plaf.ComponentUI, .UIResource, javax.swing.InputMap, .JPasswordField, .SwingUtilities, .TransferHandler, .UIDefaults, .JTextField, .JComponent, javax.swing.border.Border, com.sun.java.swing.plaf.motif.*, java.awt.im.InputMethodRequests, sun.util.logging.PlatformLogger, sun.awt.AWTAccessor

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final boolean
private static final PlatformLogger
private static final int
private String
private final XTextFieldPeer.XAWTTextField
Inherited from sun.awt.X11.XComponentPeer:
backgroundBACKGROUND_COLORbHasFocusboundsOperationdarkShadowfontforegroundFOREGROUND_COLORHIGHLIGHT_COLORisLayoutinglightShadowpaintPendingselectColorSHADOW_COLORsystemColors

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
action(final long when, final int modifiers)

public void
deselect()

Deselects the highlighted text.

public void
dispose()

Overrides sun.awt.X11.XWindow.dispose.

Implements java.awt.peer.ComponentPeer.dispose.

Disposes all resources held by the component peer.

protected void
public void
focusGained(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusGained.

Called when component receives focus

public void
focusLost(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusLost.

Called when component loses focus

public int
public InputMethodRequests
public Dimension
getMinimumSize()

Overrides sun.awt.X11.XComponentPeer.getMinimumSize.

Implements java.awt.peer.ComponentPeer.getMinimumSize.

Determines the minimum size of the component.

public Dimension
getMinimumSize(int cols)

Implements java.awt.peer.TextFieldPeer.getMinimumSize.

Returns the minimum size of the text field with the specified number of columns.

public Dimension
getPreferredSize()

Overrides sun.awt.X11.XComponentPeer.getPreferredSize.

Implements java.awt.peer.ComponentPeer.getPreferredSize.

Determines the preferred size of the component.

public Dimension
getPreferredSize(int cols)

Implements java.awt.peer.TextFieldPeer.getPreferredSize.

Returns the preferred size of the text field with the specified number of columns.

public int
getSelectionEnd()

Implements java.awt.peer.TextComponentPeer.getSelectionEnd.

Returns the end index of the current selection.

public int
getSelectionStart()

Implements java.awt.peer.TextComponentPeer.getSelectionStart.

Returns the start index of the current selection.

public String
getText()

Implements java.awt.peer.TextComponentPeer.getText.

Returns the current content of the text component.

pack-priv void
pack-priv void
public void
pack-priv void
public boolean
isFocusable()

Overrides sun.awt.X11.XComponentPeer.isFocusable.

Implements java.awt.peer.ComponentPeer.isFocusable.

Returns true when the component takes part in the focus traversal, false otherwise.

pack-priv void
public void
pack-priv void
public void
select(int s, int e)

Implements java.awt.peer.TextComponentPeer.select.

Selects an area of the text component.

public void
setBackground(Color c)

Overrides sun.awt.X11.XComponentPeer.setBackground.

Implements java.awt.peer.ComponentPeer.setBackground.

Sets the background color of this component.

public void
setBounds(int x, int y, int width, int height, int op)

Overrides sun.awt.X11.XComponentPeer.setBounds.

Implements java.awt.peer.ComponentPeer.setBounds.

Sets the location or size or both of the component.

public void
setCaretPosition(int position)

Implements java.awt.peer.TextComponentPeer.setCaretPosition.

to be implemented.

public void
setEchoChar(char c)

Implements java.awt.peer.TextFieldPeer.setEchoChar.

Sets the echo character.

public void
setEditable(boolean editable)

Implements java.awt.peer.TextComponentPeer.setEditable.

Sets if the text component should be editable or not.

public void
setEnabled(boolean enabled)

Overrides sun.awt.X11.XComponentPeer.setEnabled.

Implements java.awt.peer.ComponentPeer.setEnabled.

Enables or disables a component.

public void
setFont(Font f)

Overrides sun.awt.X11.XComponentPeer.setFont.

Implements java.awt.peer.ComponentPeer.setFont.

Sets the font of this component.

public void
setForeground(Color c)

Overrides sun.awt.X11.XComponentPeer.setForeground.

Implements java.awt.peer.ComponentPeer.setForeground.

Sets the foreground color of this component.

public void
setText(String text)

Implements java.awt.peer.TextComponentPeer.setText.

Sets the content for the text component.

public void
setVisible(boolean b)

Overrides sun.awt.X11.XComponentPeer.setVisible.

Implements java.awt.peer.ComponentPeer.setVisible.

Makes a component visible or invisible.

private void
Inherited from sun.awt.X11.XComponentPeer:
addDropTargetapplyShapebeginLayoutbeginValidatecanDetermineObscuritycoalescePaintEventcreateBufferscreateImagecreateVolatileImagedestroyBuffersdraw3DOvaldraw3DOvaldraw3DRectdraw3DRectdrawMotif3DRectdrawScrollbarendLayoutendValidateflipgetBackBuffergetBackBufferCapsgetFontgetFontMetricsgetGraphicsgetGUIcolorsgetInsetsgetParentTopLevelgetPeerBackgroundgetPeerFontgetPeerForegroundgetPeerSizegetRGBvalsgetSystemColorsgetWinBackgroundhandleEventhandleF10JavaKeyEventhandleJavaFocusEventhandleJavaMouseWheelEventhandleJavaWindowFocusEventhandlesWheelScrollinghasFocushideisEnabledisEventDisabledisInitialReshapeisObscuredisPaintPendingisReparentSupportedlayoutnotifyTextComponentChangeoperationToStringpaintpostInitpreInitpSetCursorpSetCursorremoveDropTargetreparentrequestFocusreshapesetBoundsOperationsetZOrderupdateCursorImmediatelyupdateGraphicsDataupdateMotifColorswrapInSequenced

Field Detail

firstChangeSkippedback to summary
private final boolean firstChangeSkipped
logback to summary
private static final PlatformLogger log

Hides sun.awt.X11.XComponentPeer.log.

PADDINGback to summary
private static final int PADDING
textback to summary
private String text
xtextback to summary
private final XTextFieldPeer.XAWTTextField xtext

Constructor Detail

XTextFieldPeerback to summary
pack-priv XTextFieldPeer(TextField target)

Method Detail

actionback to summary
public void action(final long when, final int modifiers)
deselectback to summary
public void deselect()

Deselects the highlighted text.

disposeback to summary
public void dispose()

Overrides sun.awt.X11.XWindow.dispose.

Implements java.awt.peer.ComponentPeer.dispose.

Doc from java.awt.peer.ComponentPeer.dispose.

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.

Annotations
@Override
disposeImplback to summary
protected void disposeImpl()
focusGainedback to summary
public void focusGained(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusGained.

Doc from sun.awt.X11.XComponentPeer.focusGained.

Called when component receives focus

Annotations
@Override
focusLostback to summary
public void focusLost(FocusEvent e)

Overrides sun.awt.X11.XComponentPeer.focusLost.

Doc from sun.awt.X11.XComponentPeer.focusLost.

Called when component loses focus

Annotations
@Override
getCaretPositionback to summary
public int getCaretPosition()

Implements java.awt.peer.TextComponentPeer.getCaretPosition.

to be implemented.

Annotations
@Override
See Also
java.awt.peer.TextComponentPeer
getInputMethodRequestsback to summary
public InputMethodRequests getInputMethodRequests()

Implements java.awt.peer.TextComponentPeer.getInputMethodRequests.

Doc from java.awt.peer.TextComponentPeer.getInputMethodRequests.

Returns the input method requests.

Annotations
@Override
See Also
java.awt.peer.TextComponentPeer
getMinimumSizeback to summary
public Dimension getMinimumSize()

Overrides sun.awt.X11.XComponentPeer.getMinimumSize.

Implements java.awt.peer.ComponentPeer.getMinimumSize.

Doc from java.awt.peer.ComponentPeer.getMinimumSize.

Determines the minimum size of the component.

Annotations
@Override
getMinimumSizeback to summary
public Dimension getMinimumSize(int cols)

Implements java.awt.peer.TextFieldPeer.getMinimumSize.

Doc from java.awt.peer.TextFieldPeer.getMinimumSize.

Returns the minimum size of the text field with the specified number of columns.

Annotations
@Override
getPreferredSizeback to summary
public Dimension getPreferredSize()

Overrides sun.awt.X11.XComponentPeer.getPreferredSize.

Implements java.awt.peer.ComponentPeer.getPreferredSize.

Doc from java.awt.peer.ComponentPeer.getPreferredSize.

Determines the preferred size of the component.

Annotations
@Override
getPreferredSizeback to summary
public Dimension getPreferredSize(int cols)

Implements java.awt.peer.TextFieldPeer.getPreferredSize.

Doc from java.awt.peer.TextFieldPeer.getPreferredSize.

Returns the preferred size of the text field with the specified number of columns.

Annotations
@Override
getSelectionEndback to summary
public int getSelectionEnd()

Implements java.awt.peer.TextComponentPeer.getSelectionEnd.

Doc from java.awt.peer.TextComponentPeer.getSelectionEnd.

Returns the end index of the current selection.

Annotations
@Override
See Also
java.awt.peer.TextComponentPeer
getSelectionStartback to summary
public int getSelectionStart()

Implements java.awt.peer.TextComponentPeer.getSelectionStart.

Doc from java.awt.peer.TextComponentPeer.getSelectionStart.

Returns the start index of the current selection.

Annotations
@Override
See Also
java.awt.peer.TextComponentPeer
getTextback to summary
public String getText()

Implements java.awt.peer.TextComponentPeer.getText.

Doc from java.awt.peer.TextComponentPeer.getText.

Returns the current content of the text component.

Annotations
@Override
@SuppressWarnings:deprecation
See Also
java.awt.peer.TextComponentPeer
handleJavaInputMethodEventback to summary
pack-priv void handleJavaInputMethodEvent(InputMethodEvent e)

Overrides sun.awt.X11.XComponentPeer.handleJavaInputMethodEvent.

Annotations
@Override
handleJavaKeyEventback to summary
pack-priv void handleJavaKeyEvent(KeyEvent e)

Overrides sun.awt.X11.XComponentPeer.handleJavaKeyEvent.

Annotations
@Override
handleJavaMouseEventback to summary
public void handleJavaMouseEvent(MouseEvent mouseEvent)

Overrides sun.awt.X11.XComponentPeer.handleJavaMouseEvent.

Annotations
@Override
initTextFieldback to summary
pack-priv void initTextField()
isFocusableback to summary
public boolean isFocusable()

Overrides sun.awt.X11.XComponentPeer.isFocusable.

Implements java.awt.peer.ComponentPeer.isFocusable.

Doc from java.awt.peer.ComponentPeer.isFocusable.

Returns true when the component takes part in the focus traversal, false otherwise.

Annotations
@Override
paintPeerback to summary
pack-priv void paintPeer(final Graphics g)

Overrides sun.awt.X11.XWindow.paintPeer.

Annotations
@Override
repaintback to summary
public void repaint()

Overrides sun.awt.X11.XWindow.repaint.

Annotations
@Override
repaintTextback to summary
pack-priv void repaintText()
selectback to summary
public void select(int s, int e)

Implements java.awt.peer.TextComponentPeer.select.

Doc from java.awt.peer.TextComponentPeer.select.

Selects an area of the text component.

Annotations
@Override
See Also
java.awt.peer.TextComponentPeer
setBackgroundback to summary
public void setBackground(Color c)

Overrides sun.awt.X11.XComponentPeer.setBackground.

Implements java.awt.peer.ComponentPeer.setBackground.

Doc from java.awt.peer.ComponentPeer.setBackground.

Sets the background color of this component.

Annotations
@Override
setBoundsback to summary
public void setBounds(int x, int y, int width, int height, int op)

Overrides sun.awt.X11.XComponentPeer.setBounds.

Implements java.awt.peer.ComponentPeer.setBounds.

Doc from java.awt.peer.ComponentPeer.setBounds.

Sets the location or size or both of the component. The location is specified relative to the component's parent. The op parameter specifies which properties change. If it is SET_LOCATION, then only the location changes (and the size parameters can be ignored). If op is SET_SIZE, then only the size changes (and the location can be ignored). If op is SET_BOUNDS, then both change. There is a special value SET_CLIENT_SIZE, which is used only for window-like components to set the size of the client (i.e. the 'inner' size, without the insets of the window borders).

Annotations
@Override
setCaretPositionback to summary
public void setCaretPosition(int position)

Implements java.awt.peer.TextComponentPeer.setCaretPosition.

to be implemented.

Annotations
@Override
See Also
java.awt.peer.TextComponentPeer
setEchoCharback to summary
public void setEchoChar(char c)

Implements java.awt.peer.TextFieldPeer.setEchoChar.

Doc from java.awt.peer.TextFieldPeer.setEchoChar.

Sets the echo character.

Annotations
@Override
See Also
java.awt.peer.TextFieldPeer
setEditableback to summary
public void setEditable(boolean editable)

Implements java.awt.peer.TextComponentPeer.setEditable.

Doc from java.awt.peer.TextComponentPeer.setEditable.

Sets if the text component should be editable or not.

Annotations
@Override
See Also
java.awt.peer.TextComponentPeer
setEnabledback to summary
public void setEnabled(boolean enabled)

Overrides sun.awt.X11.XComponentPeer.setEnabled.

Implements java.awt.peer.ComponentPeer.setEnabled.

Doc from java.awt.peer.ComponentPeer.setEnabled.

Enables or disables a component. Disabled components are usually grayed out and cannot be activated.

Annotations
@Override
See Also
java.awt.peer.ComponentPeer
setFontback to summary
public void setFont(Font f)

Overrides sun.awt.X11.XComponentPeer.setFont.

Implements java.awt.peer.ComponentPeer.setFont.

Doc from java.awt.peer.ComponentPeer.setFont.

Sets the font of this component.

Annotations
@Override
setForegroundback to summary
public void setForeground(Color c)

Overrides sun.awt.X11.XComponentPeer.setForeground.

Implements java.awt.peer.ComponentPeer.setForeground.

Doc from java.awt.peer.ComponentPeer.setForeground.

Sets the foreground color of this component.

Annotations
@Override
setTextback to summary
public void setText(String text)

Implements java.awt.peer.TextComponentPeer.setText.

Doc from java.awt.peer.TextComponentPeer.setText.

Sets the content for the text component.

Annotations
@Override
See Also
java.awt.peer.TextComponentPeer
setVisibleback to summary
public void setVisible(boolean b)

Overrides sun.awt.X11.XComponentPeer.setVisible.

Implements java.awt.peer.ComponentPeer.setVisible.

Doc from java.awt.peer.ComponentPeer.setVisible.

Makes a component visible or invisible.

Annotations
@Override
setXAWTTextFieldback to summary
private void setXAWTTextField(String txt)
sun.awt.X11 back to summary

pack-priv final Class XTextFieldPeer.AWTTextFieldUI

extends MotifPasswordFieldUI
Class Inheritance

Field Summary

Modifier and TypeField and Description
private JTextField

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected Caret
createCaret()

Overrides com.sun.java.swing.plaf.motif.MotifPasswordFieldUI.createCaret.

Creates the object to use for a caret.

protected String
getPropertyPrefix()

Overrides javax.swing.plaf.basic.BasicPasswordFieldUI.getPropertyPrefix.

Fetches the name used as a key to look up properties through the UIManager.

protected void
public void
installUI(JComponent c)

Overrides javax.swing.plaf.basic.BasicTextUI.installUI.

Installs the UI for a component.

Inherited from com.sun.java.swing.plaf.motif.MotifPasswordFieldUI:
createUI

Field Detail

jtfback to summary
private JTextField jtf

Constructor Detail

AWTTextFieldUIback to summary
pack-priv AWTTextFieldUI()

Method Detail

createCaretback to summary
protected Caret createCaret()

Overrides com.sun.java.swing.plaf.motif.MotifPasswordFieldUI.createCaret.

Doc from com.sun.java.swing.plaf.motif.MotifPasswordFieldUI.createCaret.

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.

Annotations
@Override
getPropertyPrefixback to summary
protected String getPropertyPrefix()

Overrides javax.swing.plaf.basic.BasicPasswordFieldUI.getPropertyPrefix.

Doc from javax.swing.plaf.basic.BasicPasswordFieldUI.getPropertyPrefix.

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.

Annotations
@Override
installKeyboardActionsback to summary
protected void installKeyboardActions()

Overrides javax.swing.plaf.basic.BasicTextUI.installKeyboardActions.

Doc from javax.swing.plaf.basic.BasicTextUI.installKeyboardActions.

Registers keyboard actions.

Annotations
@Override
installUIback to summary
public void installUI(JComponent c)

Overrides javax.swing.plaf.basic.BasicTextUI.installUI.

Doc from javax.swing.plaf.basic.BasicTextUI.installUI.

Installs the UI for a component. This does the following things.

  1. Sets the associated component to opaque if the opaque property has not already been set by the client program. This will cause the component's background color to be painted.
  2. Installs the default caret and highlighter into the associated component. These properties are only set if their current value is either null or an instance of UIResource.
  3. Attaches to the editor and model. If there is no model, a default one is created.
  4. Creates the view factory and the view hierarchy used to represent the model.
Annotations
@Override
sun.awt.X11 back to summary

pack-priv final Class XTextFieldPeer.XAWTTextField

extends JPasswordField
implements ActionListener, DocumentListener
Class Inheritance
All Implemented Interfaces
javax.swing.event.DocumentListener, java.util.EventListener, java.awt.event.ActionListener
Annotations
@SuppressWarnings:serial

Field Summary

Modifier and TypeField and Description
private boolean
private final XComponentPeer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent actionEvent)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

public void
changedUpdate(DocumentEvent e)

Implements javax.swing.event.DocumentListener.changedUpdate.

Gives notification that an attribute or set of attributes changed.

pack-priv void
pack-priv void
public Graphics
getGraphics()

Overrides javax.swing.JComponent.getGraphics.

Returns this component's graphics context, which lets you draw on a component.

public boolean
hasFocus()

Overrides java.awt.Component.hasFocus.

Returns true if this Component is the focus owner.

public void
insertUpdate(DocumentEvent e)

Implements javax.swing.event.DocumentListener.insertUpdate.

Gives notification that there was an insert into the document.

public void
public void
public void
public void
removeUpdate(DocumentEvent e)

Implements javax.swing.event.DocumentListener.removeUpdate.

Gives notification that a portion of the document has been removed.

public void
public void
setEchoChar(char c)

Overrides javax.swing.JPasswordField.setEchoChar.

Sets the echo character for this JPasswordField.

public void
setTransferHandler(final TransferHandler newHandler)

Overrides javax.swing.JComponent.setTransferHandler.

Sets the TransferHandler, which provides support for transfer of data into and out of this component via cut/copy/paste and drag and drop.

public void
updateUI()

Overrides javax.swing.JPasswordField.updateUI.

Reloads the pluggable UI.

Inherited from javax.swing.JPasswordField:
copycutechoCharIsSetgetAccessibleContextgetEchoChargetPasswordgetTextgetTextgetUIClassIDparamStringsetText

Field Detail

isFocusedback to summary
private boolean isFocused
xwinback to summary
private final XComponentPeer xwin

Constructor Detail

XAWTTextFieldback to summary
pack-priv XAWTTextField(String text, XComponentPeer xwin, Container parent)

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent actionEvent)

Implements java.awt.event.ActionListener.actionPerformed.

Doc from java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

Annotations
@Override
@SuppressWarnings:deprecation
changedUpdateback to summary
public void changedUpdate(DocumentEvent e)

Implements javax.swing.event.DocumentListener.changedUpdate.

Doc from javax.swing.event.DocumentListener.changedUpdate.

Gives notification that an attribute or set of attributes changed.

Annotations
@Override
forwardFocusGainedback to summary
pack-priv void forwardFocusGained(FocusEvent e)
forwardFocusLostback to summary
pack-priv void forwardFocusLost(FocusEvent e)
getGraphicsback to summary
public Graphics getGraphics()

Overrides javax.swing.JComponent.getGraphics.

Doc from javax.swing.JComponent.getGraphics.

Returns this component's graphics context, which lets you draw on a component. Use this method to get a Graphics object and then invoke operations on that object to draw on the component.

Annotations
@Override
hasFocusback to summary
public boolean hasFocus()

Overrides java.awt.Component.hasFocus.

Doc from java.awt.Component.hasFocus.

Returns true if this Component is the focus owner. This method is obsolete, and has been replaced by isFocusOwner().

Annotations
@Override
insertUpdateback to summary
public void insertUpdate(DocumentEvent e)

Implements javax.swing.event.DocumentListener.insertUpdate.

Doc from javax.swing.event.DocumentListener.insertUpdate.

Gives notification that there was an insert into the document. The range given by the DocumentEvent bounds the freshly inserted region.

Annotations
@Override
processInputMethodEventImplback to summary
public void processInputMethodEventImpl(InputMethodEvent e)
processMouseEventImplback to summary
public void processMouseEventImpl(MouseEvent e)
processMouseMotionEventImplback to summary
public void processMouseMotionEventImpl(MouseEvent e)
removeUpdateback to summary
public void removeUpdate(DocumentEvent e)

Implements javax.swing.event.DocumentListener.removeUpdate.

Doc from javax.swing.event.DocumentListener.removeUpdate.

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).

Annotations
@Override
repaintNowback to summary
public void repaintNow()
setEchoCharback to summary
public void setEchoChar(char c)

Overrides javax.swing.JPasswordField.setEchoChar.

Doc from javax.swing.JPasswordField.setEchoChar.

Sets the echo character for this JPasswordField. Note that this is largely a suggestion, since the view that gets installed can use whatever graphic techniques it desires to represent the field. Setting a value of 0 indicates that you wish to see the text as it is typed, similar to the behavior of a standard JTextField.

Annotations
@Override
setTransferHandlerback to summary
public void setTransferHandler(final TransferHandler newHandler)

Overrides javax.swing.JComponent.setTransferHandler.

Doc from javax.swing.JComponent.setTransferHandler.

Sets the TransferHandler, which provides support for transfer of data into and out of this component via cut/copy/paste and drag and drop. This may be null if the component does not support data transfer operations.

If the new TransferHandler is not null, this method also installs a new DropTarget on the component to activate drop handling through the TransferHandler and activate any built-in support (such as calculating and displaying potential drop locations). If you do not wish for this component to respond in any way to drops, you can disable drop support entirely either by removing the drop target (setDropTarget(null)) or by de-activating it (getDropTaget().setActive(false)).

If the new TransferHandler is null, this method removes the drop target.

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 non-null value. Second, if the system property suppressSwingDropSupport is true. The default value for the system property is false.

Please see How to Use Drag and Drop and Data Transfer, a section in The Java Tutorial, for more information.

Annotations
@Override
updateUIback to summary
public void updateUI()

Overrides javax.swing.JPasswordField.updateUI.

Doc from javax.swing.JPasswordField.updateUI.

Reloads the pluggable UI. The key used to fetch the new interface is getUIClassID(). The type of the UI is TextUI. invalidate is called after setting the UI.

Annotations
@Override