本文整理汇总了Java中javafx.scene.control.TableColumn.CellDataFeatures.getValue方法的典型用法代码示例。如果您正苦于以下问题:Java CellDataFeatures.getValue方法的具体用法?Java CellDataFeatures.getValue怎么用?Java CellDataFeatures.getValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javafx.scene.control.TableColumn.CellDataFeatures
的用法示例。
在下文中一共展示了CellDataFeatures.getValue方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: call
import javafx.scene.control.TableColumn.CellDataFeatures; //导入方法依赖的package包/类
@Override
public ObservableValue<String> call(CellDataFeatures<EventInstance, String> p) {
EventInstance event = p.getValue();
Object refValue = event.getParameters().get(reference);
if (refValue != null) {
String string = stringGetter.apply(refValue);
ObservableValue<String> result = new ReadOnlyObjectWrapper<String>(string);
return result;
}
return null;
}
示例2: call
import javafx.scene.control.TableColumn.CellDataFeatures; //导入方法依赖的package包/类
@Override
public ObservableValue<String> call(CellDataFeatures<EObject, String> p) {
EObject object = p.getValue();
Object refValue = object.eGet(reference);
if (refValue != null) {
String string = stringGetter.apply(refValue);
ObservableValue<String> result = new ReadOnlyObjectWrapper<String>(string);
return result;
}
return null;
}
示例3: call
import javafx.scene.control.TableColumn.CellDataFeatures; //导入方法依赖的package包/类
public ObservableValue<String> call(CellDataFeatures<EntityType, String> features) {
try {
EntityType entity = features.getValue();
Method m = entity.getClass().getMethod(getterName);
BigDecimal bigDecimal = (BigDecimal) m.invoke(entity);
String formattedBigDecimal = formatter.format(bigDecimal);
return new SimpleObservableValue<String>(formattedBigDecimal);
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
示例4: call
import javafx.scene.control.TableColumn.CellDataFeatures; //导入方法依赖的package包/类
public ObservableValue<String> call(CellDataFeatures<EntityType, String> features) {
try {
EntityType entity = features.getValue();
Method m = entity.getClass().getMethod(getterName);
Date date = (Date) m.invoke(entity);
String formattedDate = formatter.format(date);
return new SimpleObservableValue<String>(formattedDate);
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
示例5: cellValueFactory
import javafx.scene.control.TableColumn.CellDataFeatures; //导入方法依赖的package包/类
/**
* @return the cell value factory used to extract data from the data model
*/
default Callback<CellDataFeatures<SelectionTableRowData, T>, ObservableValue<T>> cellValueFactory() {
return new Callback<CellDataFeatures<SelectionTableRowData, T>, ObservableValue<T>>() {
@Override
public ObservableValue<T> call(CellDataFeatures<SelectionTableRowData, T> param) {
if (param.getValue() != null) {
return getObservableValue(param.getValue());
}
return null;
}
};
}
示例6: call
import javafx.scene.control.TableColumn.CellDataFeatures; //导入方法依赖的package包/类
@Override
public ObservableValue<SearchResultConcept> call(CellDataFeatures<SearchResultConcept, SearchResultConcept> param) {
return new SimpleObjectProperty<SearchResultConcept>(param.getValue());
}
示例7: call
import javafx.scene.control.TableColumn.CellDataFeatures; //导入方法依赖的package包/类
@Override
public ObservableValue<MappingItem> call(CellDataFeatures<MappingItem, MappingItem> param) {
return new SimpleObjectProperty<MappingItem>(param.getValue());
}
示例8: call
import javafx.scene.control.TableColumn.CellDataFeatures; //导入方法依赖的package包/类
@Override
public ObservableValue<T> call(
final CellDataFeatures<List<T>, T> cellDataFeatures) {
final List<T> row = cellDataFeatures.getValue();
final T cellValue = row.get(this.columnIndex);
return new ReadOnlyObjectWrapper<>(cellValue);
}