Java Code Examples for com.vaadin.ui.AbstractField#getValue()
The following examples show how to use
com.vaadin.ui.AbstractField#getValue() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CommonDialogWindow.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
/** * saves the original values in a Map so we can use them for detecting * changes */ public final void setOrginaleValues() { for (final AbstractField<?> field : allComponents) { Object value = field.getValue(); if (field instanceof Table) { value = ((Table) field).getContainerDataSource().getItemIds(); } orginalValues.put(field, value); } saveButton.setEnabled(isSaveButtonEnabledAfterValueChange(null, null)); }
Example 2
Source File: CommonDialogWindow.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
private static Object getCurrentValue(final Component currentChangedComponent, final Object newValue, final AbstractField<?> field) { Object currentValue = field.getValue(); if (field instanceof Table) { currentValue = ((Table) field).getContainerDataSource().getItemIds(); } if (field.equals(currentChangedComponent)) { currentValue = newValue; } return currentValue; }
Example 3
Source File: FieldAccessor.java From jdal with Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ public Object getControlValue() { AbstractField<?> field = (AbstractField<?>) getControl(); return field.getValue(); }