private void initAvailableEstimators() { Class<? extends TimeMap> type = column.getTypeClass(); try { TimeMap dummy = type.newInstance(); for (Estimator estimator : Estimator.values()) { if (dummy.isSupported(estimator)) { comboBox.addItem(new EstimatorWrapper(estimator)); } } } catch (InstantiationException ex) { throw new RuntimeException(ex); } catch (IllegalAccessException ex) { throw new RuntimeException(ex); } }
@Override public void setValueAsString(String value) { setValueToAllElements(AttributeUtils.parse(value, column.getTypeClass())); }
@Override public boolean canExecute() { return AttributeUtils.isNumberType(column.getTypeClass()); }