@Override protected UploadState getState() { return (UploadState) super.getState(); } }
@Override public CalendarState getState() { return (CalendarState) super.getState(); }
@Override protected CalendarState getState(boolean markAsDirty) { return (CalendarState) super.getState(markAsDirty); }
@Override protected ColorPickerState getState(boolean markAsDirty) { return (ColorPickerState) super.getState(markAsDirty); }
@Override protected AbstractFieldState getState(boolean markAsDirty) { return (AbstractFieldState) super.getState(markAsDirty); }
/** * Sets the component's immediate mode to the specified status. * <p> * Since Vaadin 8, the default mode is immediate. * * @param immediate * the boolean value specifying if the component should be in the * immediate mode after the call. */ public void setImmediate(boolean immediate) { explicitImmediateValue = immediate; getState().immediate = immediate; }
@Override protected LabelState getState() { return (LabelState) super.getState(); }
@Override protected LabelState getState(boolean markAsDirty) { return (LabelState) super.getState(markAsDirty); }
@Override protected ColorPickerState getState() { return (ColorPickerState) super.getState(); }
@Override protected AbstractFieldState getState() { return (AbstractFieldState) super.getState(); }
/** * Tests whether the component is in the read-only mode. The user can not * change the value of a read-only component. As only {@code AbstractField} * or {@code LegacyField} components normally have a value that can be input * or changed by the user, this is mostly relevant only to field components, * though not restricted to them. * * <p> * Notice that the read-only mode only affects whether the user can change * the <i>value</i> of the component; it is possible to, for example, scroll * a read-only table. * </p> * * <p> * The method will return {@code true} if the component or any of its * parents is in the read-only mode. * </p> * * @return <code>true</code> if the component or any of its parents is in * read-only mode, <code>false</code> if not. * @see #setReadOnly(boolean) */ @Override public boolean isReadOnly() { return getState(false).readOnly; }
/** * Sets the read-only mode of the component to the specified mode. The user * can not change the value of a read-only component. * * <p> * As only {@code AbstractField} or {@code LegacyField} components normally * have a value that can be input or changed by the user, this is mostly * relevant only to field components, though not restricted to them. * </p> * * <p> * Notice that the read-only mode only affects whether the user can change * the <i>value</i> of the component; it is possible to, for example, scroll * a read-only table. * </p> * * <p> * In Vaadin 8 the read-only property is part of {@link HasValue} API. * </p> * * @param readOnly * a boolean value specifying whether the component is put * read-only mode or not */ @Override public void setReadOnly(boolean readOnly) { getState().readOnly = readOnly; }
@Override public void beforeClientResponse(boolean initial) { super.beforeClientResponse(initial); getState().immediate = isImmediate(); }