Class MultiColumnListView.ColumnItem<T>

java.lang.Object
com.dlsc.gemsfx.MultiColumnListView.ColumnItem<T>
Type Parameters:
T - the type of the wrapped model object
Enclosing class:
MultiColumnListView<T>

public static final class MultiColumnListView.ColumnItem<T> extends Object
A wrapper around the model objects shown by the MultiColumnListView control. All list views managed by the control show instances of this type. This allows the control to add and remove the two marker / placeholder items that are used to visualize an ongoing drag and drop operation without requiring the application to provide model objects for these markers.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ColumnItem(T userObject)
    Creates a new wrapper for the given model object.
  • Method Summary

    Modifier and Type
    Method
    Description
    The model object wrapped by this item.
    boolean
    Determines if this item is the placeholder marking the location where the currently dragged item came from.
    boolean
    Determines if this item is one of the two placeholder items used during drag and drop.
    boolean
    Determines if this item is the placeholder marking the location where the currently dragged item will be dropped.
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ColumnItem

      public ColumnItem(T userObject)
      Creates a new wrapper for the given model object.
      Parameters:
      userObject - the model object shown by the control
  • Method Details

    • getUserObject

      public T getUserObject()
      The model object wrapped by this item. Returns null for the two placeholder items.
      Returns:
      the wrapped model object
    • isPlaceholder

      public boolean isPlaceholder()
      Determines if this item is one of the two placeholder items used during drag and drop.
      Returns:
      true if the item is the "from" or the "to" placeholder
    • isFromPlaceholder

      public boolean isFromPlaceholder()
      Determines if this item is the placeholder marking the location where the currently dragged item came from.
      Returns:
      true if the item is the "from" placeholder
    • isToPlaceholder

      public boolean isToPlaceholder()
      Determines if this item is the placeholder marking the location where the currently dragged item will be dropped.
      Returns:
      true if the item is the "to" placeholder
    • toString

      public String toString()
      Overrides:
      toString in class Object