public class MoneyCellFactory
extends java.lang.Object
Note that the cells in this class are styled using CSS. The style class
for all cells is
money-cell. The added pseudo class states are
negative and
positive. The default CSS for the
cells in this class is of the form:
.money-cell {
-fx-text-fill: -fx-text-inner-color;
}
.money-cell:selected {
-fx-text-fill: white;
}
.money-cell:positive {
-fx-text-fill: green;
}
.money-cell:negative {
-fx-text-fill: red;
}
You may customise this CSS in your own applications by providing your own stylesheet that overrides these values.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NEGATIVE_STATE
A String used to represent cells that have negative Number values in them, which
is then exposed via CSS to allow for easy styling of these cells.
|
static java.lang.String |
POSITIVE_STATE
A String used to represent cells that have positive Number values in them, which
is then exposed via CSS to allow for easy styling of these cells.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.Number> |
forListView()
Returns a cell factory that creates a default
MoneyListCell with the
default Locale for the users computer. |
static <T extends java.lang.Number> |
forListView(java.util.Locale locale)
Returns a cell factory that creates a
MoneyListCell with the given Locale. |
static <S,T extends java.lang.Number> |
forTableColumn()
Returns a cell factory that creates a default
MoneyTableCell with the
default Locale for the users computer. |
static <S,T extends java.lang.Number> |
forTableColumn(javafx.scene.control.TableColumn<S,T> column)
Returns a cell factory that creates a default
MoneyTableCell with the
default Locale for the users computer. |
static <S,T extends java.lang.Number> |
forTableColumn(javafx.scene.control.TableColumn<S,T> column,
java.util.Locale locale)
Returns a cell factory that creates a
MoneyTableCell with the given Locale. |
public static final java.lang.String NEGATIVE_STATE
public static final java.lang.String POSITIVE_STATE
public static <T extends java.lang.Number> javafx.util.Callback<javafx.scene.control.ListView<T>,javafx.scene.control.ListCell<T>> forListView()
MoneyListCell with the
default Locale for the users computer.public static <T extends java.lang.Number> javafx.util.Callback<javafx.scene.control.ListView<T>,javafx.scene.control.ListCell<T>> forListView(java.util.Locale locale)
MoneyListCell with the given Locale.public static <S,T extends java.lang.Number> javafx.util.Callback<javafx.scene.control.TableColumn<S,T>,javafx.scene.control.TableCell<S,T>> forTableColumn()
MoneyTableCell with the
default Locale for the users computer.public static <S,T extends java.lang.Number> javafx.util.Callback<javafx.scene.control.TableColumn<S,T>,javafx.scene.control.TableCell<S,T>> forTableColumn(javafx.scene.control.TableColumn<S,T> column)
MoneyTableCell with the
default Locale for the users computer.public static <S,T extends java.lang.Number> javafx.util.Callback<javafx.scene.control.TableColumn<S,T>,javafx.scene.control.TableCell<S,T>> forTableColumn(javafx.scene.control.TableColumn<S,T> column,
java.util.Locale locale)
MoneyTableCell with the given Locale.