net.wotonomy.ui.swing.util
Class ObjectInspector

java.lang.Object
  extended by net.wotonomy.ui.swing.util.ObjectInspector
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.util.EventListener

public class ObjectInspector
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.MouseListener

The ObjectInspector displays a JFrame containing a PropertyEditorTable that displays an object.

Version:
$Revision: 904 $
Author:
michael@mpowers.net, $Author: cgruber $

Field Summary
static java.lang.String COPY
           
protected  javax.swing.JTable table
           
 
Constructor Summary
ObjectInspector(java.lang.Object anObject)
          Displays the specified object in a frame.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
 void copyToClipboard()
          Copies the contents of the table to the clipboard as a tab-delimited string.
 java.lang.String getTabDelimitedString()
          Converts the contents of the table to a tab-delimited string.
protected  void initLayout(java.lang.Object aTargetObject)
           
 void mouseClicked(java.awt.event.MouseEvent e)
          Double click to call invokeFileFromString.
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected javax.swing.JTable table

COPY

public static final java.lang.String COPY
See Also:
Constant Field Values
Constructor Detail

ObjectInspector

public ObjectInspector(java.lang.Object anObject)
Displays the specified object in a frame.

Method Detail

initLayout

protected void initLayout(java.lang.Object aTargetObject)

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Double click to call invokeFileFromString.

Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

copyToClipboard

public void copyToClipboard()
Copies the contents of the table to the clipboard as a tab-delimited string.


getTabDelimitedString

public java.lang.String getTabDelimitedString()
Converts the contents of the table to a tab-delimited string.

Returns:
A String containing the text contents of the table.


Copyright © 2006 null. All Rights Reserved.