Class ArrayInspector

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class ArrayInspector extends JDialog implements PropertyChangeListener
A dialog that displays an ArrayTable.
Version:
1.0
Author:
Douglas Brown
See Also:
  • Method Details

    • getInspector

      public static ArrayInspector getInspector(XMLProperty arrayProp)
      Gets an array inspector for the specified array XMLProperty.
      Parameters:
      arrayProp - the array XMLProperty
      Returns:
      the array inspector
    • getInspector

      public static ArrayInspector getInspector(Object arrayObj, String name)
      Gets an array inspector for the specified array.
      Parameters:
      arrayObj - the array
      name - the display name for the array
      Returns:
      the array inspector
    • canInspect

      public static boolean canInspect(XMLProperty arrayProp)
      Determines if an XMLProperty can be inspected with an array inspector.
      Parameters:
      arrayProp - the XMLProperty
      Returns:
      true if it can be inspected
    • canInspect

      public static boolean canInspect(Object obj)
      Determines if an object is an array that can be inspected.
      Parameters:
      obj - the object
      Returns:
      true if it can be inspected
    • getArray

      public Object getArray()
      Gets the array.
      Returns:
      the array
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Listens for cell events (data changes) from ArrayTable.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      e - the property change event
    • setEditable

      public void setEditable(boolean editable)
      Sets the editable property.
      Parameters:
      editable - true to allow editing of the cell values
    • refreshTable

      public void refreshTable()
      Refresh the data in the table.
    • createGUI

      protected void createGUI()
      Creates the GUI.