Class InstanceEasyGridConfiguration
java.lang.Object
com.flowingcode.vaadin.addons.easygrid.config.InstanceEasyGridConfiguration
- All Implemented Interfaces:
Serializable
Instance-level
EasyGrid configuration. Configurations registered here apply only to the
specific EasyGrid instance that holds this object and take precedence over
GlobalEasyGridConfiguration.
See resolve(Class) for the full resolution order.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> ColumnConfiguration<V>Returns theColumnConfigurationfor the given type at the instance level, creating it if it does not yet exist.<V> ColumnConfiguration<V>Returns the effectiveColumnConfigurationfor the given type, chaining configurations across all levels of the tree.
-
Constructor Details
-
InstanceEasyGridConfiguration
public InstanceEasyGridConfiguration()
-
-
Method Details
-
forType
Returns theColumnConfigurationfor the given type at the instance level, creating it if it does not yet exist. Modifications to the returned configuration take effect immediately.- Parameters:
type- the column value type- Returns:
- the
ColumnConfigurationfor the given type
-
resolve
Returns the effectiveColumnConfigurationfor the given type, chaining configurations across all levels of the tree. The resolution order, from most to least specific, is:- Type-level configuration registered on this instance via
forType(Class). - Type-level configuration registered on
GlobalEasyGridConfiguration.
nullfields take precedence over the levels below it.- Parameters:
type- the column value type- Returns:
- the resolved configuration, never
null
- Type-level configuration registered on this instance via
-