public class NumberColumn<S,T extends java.lang.Number> extends BaseColumn<S,T>
filterableProperty, requiredProperty, tableCriteriaProperty
cellFactoryProperty, cellValueFactoryProperty, comparatorProperty, contextMenuProperty, editableProperty, graphicProperty, idProperty, maxWidthProperty, minWidthProperty, onEditCancelProperty, onEditCommitProperty, onEditStartProperty, parentColumnProperty, prefWidthProperty, resizableProperty, sortableProperty, sortNodeProperty, sortTypeProperty, styleProperty, tableViewProperty, textProperty, visibleProperty, widthProperty
Modifier and Type | Class and Description |
---|---|
class |
NumberColumn.NumberTableCell |
Modifier and Type | Field and Description |
---|---|
protected java.text.DecimalFormat |
formatter |
protected java.lang.String |
pattern |
alignment
Constructor and Description |
---|
NumberColumn(java.lang.String propertyName,
java.lang.Class<T> clazz) |
NumberColumn(java.lang.String propertyName,
java.lang.Class<T> clazz,
double prefWidth) |
Modifier and Type | Method and Description |
---|---|
protected T |
convertFromString_Impl(java.lang.String stringValue) |
java.lang.String |
convertToString(T value)
Convert
value to String as represented in TableControl |
int |
getMaxLength() |
protected java.lang.String |
getPattern(boolean grouping) |
boolean |
isGrouping() |
void |
setGrouping(boolean grouping) |
void |
setMaxLength(int maxLength)
Set maximum character length is acceptable in input field
|
convertFromString, filterableProperty, getAlignment, getPropertyName, getTableCriteria, isFilterable, isRequired, requiredProperty, setAlignment, setFilterable, setRequired, setTableCriteria, tableCriteriaProperty
addEventHandler, buildEventDispatchChain, cellFactoryProperty, cellValueFactoryProperty, comparatorProperty, contextMenuProperty, editableProperty, editAnyEvent, editCancelEvent, editCommitEvent, editStartEvent, getCellData, getCellData, getCellFactory, getCellObservableValue, getCellObservableValue, getCellValueFactory, getColumns, getComparator, getContextMenu, getGraphic, getId, getMaxWidth, getMinWidth, getOnEditCancel, getOnEditCommit, getOnEditStart, getParentColumn, getPrefWidth, getProperties, getSortNode, getSortType, getStyle, getStyleClass, getTableView, getText, getUserData, getWidth, graphicProperty, hasProperties, idProperty, impl_getStyleable, impl_setWidth, isEditable, isResizable, isSortable, isVisible, maxWidthProperty, minWidthProperty, onEditCancelProperty, onEditCommitProperty, onEditStartProperty, parentColumnProperty, prefWidthProperty, removeEventHandler, resizableProperty, setCellFactory, setCellValueFactory, setComparator, setContextMenu, setEditable, setGraphic, setId, setMaxWidth, setMinWidth, setOnEditCancel, setOnEditCommit, setOnEditStart, setPrefWidth, setResizable, setSortable, setSortNode, setSortType, setStyle, setText, setUserData, setVisible, sortableProperty, sortNodeProperty, sortTypeProperty, styleProperty, tableViewProperty, textProperty, visibleProperty, widthProperty
protected java.lang.String pattern
protected java.text.DecimalFormat formatter
public NumberColumn(java.lang.String propertyName, java.lang.Class<T> clazz)
public NumberColumn(java.lang.String propertyName, java.lang.Class<T> clazz, double prefWidth)
public boolean isGrouping()
public void setGrouping(boolean grouping)
public java.lang.String convertToString(T value)
BaseColumn
value
to String as represented in TableControlconvertToString
in class BaseColumn<S,T extends java.lang.Number>
protected T convertFromString_Impl(java.lang.String stringValue)
convertFromString_Impl
in class BaseColumn<S,T extends java.lang.Number>
public void setMaxLength(int maxLength)
maxLength
- public int getMaxLength()
protected java.lang.String getPattern(boolean grouping)