summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/gui/browser/BlankHeaderProvider.java
blob: 77013b4b2672e42cce1d0a104a8c1ce7afbc2e19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package bjc.utils.gui.browser;

/** Provides header text for reserved blank columns. */
@FunctionalInterface
public interface BlankHeaderProvider {
	/**
	 * @param depthFromRoot 0 = first real column (children of root), 1 = second,
	 *                      etc. For blanks, this is the depth they would represent
	 *                      if populated now.
	 * @param blankOrdinal  0-based ordinal among the consecutive blanks
	 *                      (left-to-right).
	 * @param model         current model.
	 * @return header text; return null/empty to hide the header for that blank.
	 */
	String getBlankHeader(int depthFromRoot, int blankOrdinal, JBrowserModel model);
}