Class MapTableModel

    • Field Detail

      • m_TypeValue

        protected Class m_TypeValue
        the type of the value column.
    • Constructor Detail

      • MapTableModel

        public MapTableModel()
        Initializes the table model with no data.
      • MapTableModel

        public MapTableModel​(String[] colNames)
        Initializes the table model with no data.
        Parameters:
        colNames - the column names to use
      • MapTableModel

        public MapTableModel​(Map data)
        Initializes the table model.
        Parameters:
        data - the map to display
      • MapTableModel

        public MapTableModel​(Map data,
                             Class typeValue)
        Initializes the table model.
        Parameters:
        data - the map to display
        typeValue - the type for the value column, ignored if null
      • MapTableModel

        public MapTableModel​(Map data,
                             String[] colNames)
        Initializes the table model.
        Parameters:
        data - the map to display
        colNames - the column names to use
      • MapTableModel

        public MapTableModel​(Map data,
                             String[] colNames,
                             Class typeValue)
        Initializes the table model.
        Parameters:
        data - the map to display
        colNames - the column names to use
        typeValue - the type for the value column, ignored if null
    • Method Detail

      • convert

        protected static Object[][] convert​(Map data)
        Turns the hashtable into key-value pairs. The keys are sorted alphabetically.
        Parameters:
        data - the data to convert
        Returns:
        the converted data