E
- EntityT
- UITypepublic class TableColumn<E,T> extends Object implements Comparator<E>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_WIDTH_PX |
static int |
DEFAULT_MIN_WIDTH_PX |
Constructor and Description |
---|
TableColumn(Getter<E,T> getter) |
TableColumn(Getter<E,T> getter,
double width,
Unit unit) |
TableColumn(Getter<E,T> getter,
double width,
Unit unit,
String title) |
TableColumn(Getter<E,T> getter,
int width) |
TableColumn(Getter<E,T> getter,
int width,
String title) |
TableColumn(Getter<E,T> getter,
Setter<E,T> setter) |
TableColumn(Getter<E,T> getter,
Setter<E,T> setter,
double width,
Unit unit) |
TableColumn(Getter<E,T> getter,
Setter<E,T> setter,
double width,
Unit unit,
String title) |
TableColumn(Getter<E,T> getter,
Setter<E,T> setter,
int width) |
TableColumn(Getter<E,T> getter,
Setter<E,T> setter,
int width,
String title) |
TableColumn(Getter<E,T> getter,
Setter<E,T> setter,
String title) |
TableColumn(Getter<E,T> getter,
String title) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final int DEFAULT_MIN_WIDTH_PX
public static final int DEFAULT_MAX_WIDTH_PX
public String getTitle()
public void setTitle(String title)
public double getWidth()
public void setWidth(double width)
public double getMaxWidth()
public void setMaxWidth(double maxWidth)
public double getMinWidth()
public void setMinWidth(double minWidth)
public void setMinMaxWidth(double minWidth, double maxWidth)
public Unit getUnit()
public void setUnit(Unit unit)
unit
- the unit to setpublic TextAlign getHorizontalAlignment()
public void setHorizontalAlignment(@NotNull TextAlign horizontalAlignment)
public TextAlign getTitleHorizontalAlignment()
public void setTitleHorizontalAlignment(TextAlign titleHorizontalAlignment)
public VerticalAlignment getVerticalAlignment()
public void setVerticalAlignment(VerticalAlignment verticalAlignment)
public CellRenderer<E,T> getRenderer()
public void setRenderer(CellRenderer<E,T> renderer)
public String render(E entity, CellRenderingContext<E> ctx)
public void setComparator(Comparator<T> comparator)
public void setComparator(Getter<E,T> comparatorGetter, Comparator<T> comparator)
public int compare(E o1, E o2)
compare
in interface Comparator<E>
public boolean isComparable(E object)
public SortDirection getSortDirection()
public void setSortDirection(@NotNull SortDirection sortDirection)
public void setVisibility(boolean visibility)
visibility
- public boolean isVisible()
public TableColumn<E,T> hide()
public TableColumn<E,T> show()
public boolean isHidden()
Copyright © 2018 Xalys. All rights reserved.