Class IconTableModel

    • Constructor Detail

      • IconTableModel

        public IconTableModel()
        Constructs a new IconTableModel, initially empty.
    • Method Detail

      • addIconEntry

        protected void addIconEntry​(String name,
                                    String category,
                                    Image icon,
                                    Long size)
        Adds a new entry to the table model.
        Parameters:
        name - The icon name.
        category - The category name.
        icon - The icon.
        size - The size of the icon image in bytes.
      • clear

        public void clear()
      • getRowCount

        public int getRowCount()
        Returns the number of rows in the table model.
        Returns:
        The row count.
      • getColumnCount

        public int getColumnCount()
        Returns the number of columns in the table model.
        Returns:
        The column count.
      • getValueAt

        public Object getValueAt​(int row,
                                 int column)
        Returns the data item at the specified row and column.
        Parameters:
        row - The row index.
        column - The column index.
        Returns:
        The data item.