Top Description Fields Constructors Methods
sun.tools.jconsole.inspector

public Class XTextField

extends JPanel
implements DocumentListener, ActionListener
Class Inheritance
All Implemented Interfaces
java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.DocumentListener
Known Direct Subclasses
sun.tools.jconsole.inspector.XTextFieldEditor
Annotations
@SuppressWarnings:serial
Imports
java.awt.*, java.awt.event.*, javax.swing.event.*, javax.swing.*

This list implements the drag and drop functionality.

Field Summary

Modifier and TypeField and Description
private static boolean
private JButton
protected static final int
protected static final int
protected static final int
private XOperations
private XObject
protected JTextField

Constructor Summary

AccessConstructor and Description
public
public
public
XTextField(Object value, int colWidth)

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

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent
the event to be processed
e
)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.
protected JMenuItem
buildJMenuItem(XObject xobject, int valueType)

public void
changedUpdate(DocumentEvent
the document event
e
)

Implements javax.swing.event.DocumentListener.changedUpdate.

Gives notification that an attribute or set of attributes changed.
private synchronized void
public static boolean
public Object
getValue()

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

protected void
init(Object value, Class<?> expectedClass)

public void
insertUpdate(DocumentEvent
the document event
e
)

Implements javax.swing.event.DocumentListener.insertUpdate.

Gives notification that there was an insert into the document.
public void
removeUpdate(DocumentEvent
the document event
e
)

Implements javax.swing.event.DocumentListener.removeUpdate.

Gives notification that a portion of the document has been removed.
private synchronized void
public void
public static void
setNullSelectionAllowed(boolean allowNullSelection)

Inherited from javax.swing.JPanel:
getAccessibleContextgetUIgetUIClassIDparamStringsetUIupdateUI

Field Detail

allowNullSelectionback to summary
private static boolean allowNullSelection
buttonback to summary
private JButton button
COMPATIBLE_VALUEback to summary
protected static final int COMPATIBLE_VALUE
CURRENT_VALUEback to summary
protected static final int CURRENT_VALUE
NULL_VALUEback to summary
protected static final int NULL_VALUE
operationback to summary
private XOperations operation
selectedObjectback to summary
private XObject selectedObject
textFieldback to summary
protected JTextField textField

Constructor Detail

XTextFieldback to summary
public XTextField()
XTextFieldback to summary
public XTextField(Object value)
XTextFieldback to summary
public XTextField(Object value, int colWidth)
XTextFieldback to summary
public XTextField(Object value, Class<?> expectedClass, int colWidth, boolean isCallable, JButton button, XOperations operation)

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

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

Invoked when an action occurs.

Parameters
e:ActionEvent

the event to be processed

buildJMenuItemback to summary
protected JMenuItem buildJMenuItem(XObject xobject, int valueType)
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.

Parameters
e:DocumentEvent

the document event

clearObjectback to summary
private synchronized void clearObject()
getNullSelectionAllowedback to summary
public static boolean getNullSelectionAllowed()
getValueback to summary
public Object getValue()

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

initback to summary
protected void init(Object value, Class<?> expectedClass)
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.

Parameters
e:DocumentEvent

the document event

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

Parameters
e:DocumentEvent

the document event

setDefaultColorsback to summary
private synchronized void setDefaultColors()
setHorizontalAlignmentback to summary
public void setHorizontalAlignment(int h)
setNullSelectionAllowedback to summary
public static void setNullSelectionAllowed(boolean allowNullSelection)