public class

XTextField

extends JPanel
implements ActionListener DocumentListener
java.lang.Object
   ↳ java.awt.Component
     ↳ java.awt.Container
       ↳ javax.swing.JComponent
         ↳ javax.swing.JPanel
           ↳ sun.tools.jconsole.inspector.XTextField
Known Direct Subclasses

Class Overview

This list implements the drag and drop functionality.

Summary

Constants
int COMPATIBLE_VALUE
int CURRENT_VALUE
int NULL_VALUE
[Expand]
Inherited Constants
From class javax.swing.JComponent
From class java.awt.Component
From interface java.awt.image.ImageObserver
Fields
protected JTextField textField
[Expand]
Inherited Fields
From class javax.swing.JComponent
Public Constructors
XTextField()
XTextField(Object value)
XTextField(Object value, int colWidth)
XTextField(Object value, Class expectedClass, int colWidth, boolean isCallable, JButton button, XOperations operation)
Public Methods
void actionPerformed(ActionEvent e)
Invoked when an action occurs.
void changedUpdate(DocumentEvent e)
Gives notification that an attribute or set of attributes changed.
static boolean getNullSelectionAllowed()
Object getValue()
This method returns either the user inputted String, or an XObject if one was dropped on the input field.
void insertUpdate(DocumentEvent e)
Gives notification that there was an insert into the document.
void removeUpdate(DocumentEvent e)
Gives notification that a portion of the document has been removed.
void setHorizontalAlignment(int h)
static void setNullSelectionAllowed(boolean allowNullSelection)
Protected Methods
JMenuItem buildJMenuItem(XObject xobject, int valueType)
void init(Object value, Class expectedClass)
[Expand]
Inherited Methods
From class javax.swing.JPanel
From class javax.swing.JComponent
From class java.awt.Container
From class java.awt.Component
From class java.lang.Object
From interface java.awt.MenuContainer
From interface java.awt.event.ActionListener
From interface java.awt.image.ImageObserver
From interface javax.accessibility.Accessible
From interface javax.swing.event.DocumentListener

Constants

protected static final int COMPATIBLE_VALUE

Constant Value: 1 (0x00000001)

protected static final int CURRENT_VALUE

Constant Value: 2 (0x00000002)

protected static final int NULL_VALUE

Constant Value: 3 (0x00000003)

Fields

protected JTextField textField

Public Constructors

public XTextField ()

public XTextField (Object value)

public XTextField (Object value, int colWidth)

public XTextField (Object value, Class expectedClass, int colWidth, boolean isCallable, JButton button, XOperations operation)

Public Methods

public void actionPerformed (ActionEvent e)

Invoked when an action occurs.

public void changedUpdate (DocumentEvent e)

Gives notification that an attribute or set of attributes changed.

Parameters
e the document event

public static boolean getNullSelectionAllowed ()

public Object getValue ()

This method returns either the user inputted String, or an XObject if one was dropped on the input field.

public void insertUpdate (DocumentEvent e)

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

Parameters
e the document event

public void removeUpdate (DocumentEvent e)

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

Parameters
e the document event

public void setHorizontalAlignment (int h)

public static void setNullSelectionAllowed (boolean allowNullSelection)

Protected Methods

protected JMenuItem buildJMenuItem (XObject xobject, int valueType)

protected void init (Object value, Class expectedClass)