public interface FrameContext
| Modifier and Type | Method and Description |
|---|---|
Subscription |
addValueChangeListener(java.lang.String componentName,
java.util.function.Consumer<HasValue.ValueChangeEvent> listener)
Add the value listener to the specified component
|
Frame |
getFrame() |
java.util.Map<java.lang.String,java.lang.Object> |
getParams()
For a window contains parameters passed to the window on opening.
|
<T> T |
getParamValue(java.lang.String param)
Value of an external parameters passed to the window on opening.
|
<T> T |
getValue(java.lang.String property)
Retrieves value of a component by complex name, dereferencing path to the component
and possible drill down to the value
|
void |
removeValueChangeListener(java.lang.String componentName,
java.util.function.Consumer<HasValue.ValueChangeEvent> listener)
Deprecated.
Use
Subscription instead |
void |
setValue(java.lang.String property,
java.lang.Object value)
Set value of a component by its path in the window
|
Frame getFrame()
java.util.Map<java.lang.String,java.lang.Object> getParams()
openFrame() method contains parameters, passed to the method.<T> T getParamValue(java.lang.String param)
@Nullable <T> T getValue(java.lang.String property)
property - path to the value. Parsed by the following rules:
HasValue
or ListComponent, retrieve its value.
Instance, drill down to it and return the value
of the property by remaining property path.
EnumClass and remaining
property path is "id", return EnumClass.getId() value.void setValue(java.lang.String property,
java.lang.Object value)
property - path to the component (separated by dots, taking into account square brackets)value - value to setjava.lang.UnsupportedOperationException - if the component not found or is not a HasValueSubscription addValueChangeListener(java.lang.String componentName, java.util.function.Consumer<HasValue.ValueChangeEvent> listener)
componentName - a component namelistener - a listener to addvoid removeValueChangeListener(java.lang.String componentName,
java.util.function.Consumer<HasValue.ValueChangeEvent> listener)
Subscription insteadcomponentName - a component namelistener - a listener to remove