Class MapTableBrowser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable

public class MapTableBrowser extends JTable

The MapTableBrowser class extends a JTable to browse a list of attributes and their values as a single row table with columns headed by the attribute descriptions (if supplied) or their names.

For details of some of the methods implemented here see javax.swing.JTable.

See Also:
  • Constructor Details

    • MapTableBrowser

      public MapTableBrowser(MapTableModel model)

      Build and display a graphical user interface view of an existing table model.

      Parameters:
      model -
    • MapTableBrowser

      public MapTableBrowser(Map map, Map descriptiveNameMap)

      Build and display a graphical user interface view of a new table model constructed from the supplied attributes and values.

      Parameters:
      map - a map of string names for attributes to their string values
      descriptiveNameMap - a map of string names for attributes to descriptions for use as column titles (may be null)
    • MapTableBrowser

      public MapTableBrowser(Map map, Map descriptiveNameMap, HashSet includeList, HashSet excludeList)

      Build and display a graphical user interface view of a new table model constructed from the supplied attributes and values.

      Parameters:
      map - a map of string names for attributes to their string values
      descriptiveNameMap - a map of string names for attributes to descriptions for use as column titles (may be null)
      includeList - a set of upper case string names for suitable attributes (may be null)
      excludeList - a set of upper case string names for unsuitable attributes (may be null)
  • Method Details

    • setColumnWidths

      public void setColumnWidths()