Class TableColumnUtils

java.lang.Object
de.edgesoft.edgeutils.javafx.TableColumnUtils

public class TableColumnUtils
extends java.lang.Object
Utilities for TableColumn.

When trying Kotlin, all static methods are candidates for extending the menuitem class.

Legal stuff

Copyright 2010-2020 Ekkart Kleinod ekleinod@edgesoft.de

This file is part of edgeutils.

edgeutils is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

edgeutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with edgeutils. If not, see http://www.gnu.org/licenses/.

Since:
0.12.0
Author:
Ekkart Kleinod
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String PREFIX
    Variable name prefix.
  • Constructor Summary

    Constructors 
    Constructor Description
    TableColumnUtils()  
  • Method Summary

    Modifier and Type Method Description
    static void fillTableColumn​(javafx.scene.control.TableColumn<?,​?> theTableColumn, java.lang.Object theController, int theSize, ResourceType... theResourceTypes)
    Fills table column with resource types.
    static void fillTableColumn​(javafx.scene.control.TableColumn<?,​?> theTableColumn, java.lang.Object theController, ResourceType... theResourceTypes)
    Fills table column with resource types.
    static void fillTableColumns​(java.lang.Object theController, ResourceType theResourceType, javafx.scene.control.TableColumn<?,​?>... theTableColumns)
    Fills table columns with resource type.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • fillTableColumn

      public static void fillTableColumn​(javafx.scene.control.TableColumn<?,​?> theTableColumn, java.lang.Object theController, ResourceType... theResourceTypes)
      Fills table column with resource types.
      Parameters:
      theTableColumn - table column to fill
      theController - view controller
      theResourceTypes - resource types
    • fillTableColumn

      public static void fillTableColumn​(javafx.scene.control.TableColumn<?,​?> theTableColumn, java.lang.Object theController, int theSize, ResourceType... theResourceTypes)
      Fills table column with resource types. I wanted to reuse the code of ControlUtils for this method but table columns and buttons do not share a common class, thus this is copy'n'paste for the moment.
      Parameters:
      theTableColumn - table column to fill
      theController - view controller
      theSize - size of the icon
      theResourceTypes - resource types
    • fillTableColumns

      public static void fillTableColumns​(java.lang.Object theController, ResourceType theResourceType, javafx.scene.control.TableColumn<?,​?>... theTableColumns)
      Fills table columns with resource type.
      Parameters:
      theController - view controller
      theResourceType - resource type
      theTableColumns - table columns to fill
      Since:
      0.17.0