org.bklab.flow.base.HasValueAndElementFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-vaadin-flow Show documentation
Show all versions of fluent-vaadin-flow Show documentation
Broderick Labs for fluent vaadin flow. Inherits common Vaadin components.
/*
* Copyright (c) 2008 - 2020. - Broderick Labs.
* Author: Broderick Johansson
* E-mail: [email protected]
* Modify date:2020-07-02 09:28:45
* _____________________________
* Project name: fluent-vaadin-flow
* Class name:org.bklab.flow.base.HasValueAndElementFactory
* Copyright (c) 2008 - 2020. - Broderick Labs.
*/
package org.bklab.flow.base;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.HasValue;
import com.vaadin.flow.component.HasValueAndElement;
import org.bklab.flow.IFlowFactory;
@SuppressWarnings("unchecked")
public interface HasValueAndElementFactory, C extends Component & HasValueAndElement,
E extends HasValueAndElementFactory> extends IFlowFactory,
HasValueFactory,
HasEnabledFactory {
default E readOnly(boolean readOnly) {
get().setReadOnly(readOnly);
return (E) this;
}
default E requiredIndicatorVisible(boolean requiredIndicatorVisible) {
get().setRequiredIndicatorVisible(requiredIndicatorVisible);
return (E) this;
}
default E readOnly() {
get().setReadOnly(true);
return (E) this;
}
default E requiredIndicatorVisible() {
get().setRequiredIndicatorVisible(true);
return (E) this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy