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>
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 -
Method Summary
Modifier and TypeMethodDescriptionThe model object wrapped by this item.booleanDetermines if this item is the placeholder marking the location where the currently dragged item came from.booleanDetermines if this item is one of the two placeholder items used during drag and drop.booleanDetermines if this item is the placeholder marking the location where the currently dragged item will be dropped.toString()
-
Constructor Details
-
ColumnItem
Creates a new wrapper for the given model object.- Parameters:
userObject- the model object shown by the control
-
-
Method Details
-
getUserObject
The model object wrapped by this item. Returnsnullfor 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
-