19 package org.sleuthkit.autopsy.datasourcesummary.uiutils;
21 import java.util.ArrayList;
22 import java.util.Collections;
23 import java.util.List;
24 import java.util.function.Function;
25 import java.util.function.Supplier;
58 if (stringConverter == null) {
59 text = this.data == null ?
"" : this.data.toString();
61 text = stringConverter.apply(this.data);
112 if (popupMenu != null) {
113 return Collections.unmodifiableList(popupMenu);
115 if (menuItemSupplier != null) {
116 return this.menuItemSupplier.get();
141 this.popupMenu = popupMenu == null ? null :
new ArrayList<>(
popupMenu);
CellModel.HorizontalAlign horizontalAlignment
DefaultCellModel< T > setPopupMenuRetriever(Supplier< List< MenuItem >> menuItemSupplier)
Supplier< List< MenuItem > > menuItemSupplier
List< MenuItem > getPopupMenu()
DefaultCellModel(T data, Function< T, String > stringConverter)
DefaultCellModel< T > setHorizontalAlignment(CellModel.HorizontalAlign alignment)
List< MenuItem > popupMenu
HorizontalAlign getHorizontalAlignment()
DefaultCellModel< T > setPopupMenu(List< MenuItem > popupMenu)
DefaultCellModel< T > setTooltip(String tooltip)