Stay organized with collections
Save and categorize content based on your preferences.
GenericFilteredComponentActionRegistrar
@Incubating interface GenericFilteredComponentActionRegistrar<ComponentT> : FilteredComponentActionRegistrar<ComponentT> where ComponentT : ActionableComponentObject, ComponentT : ComponentIdentity
Allows registering Actions on ComponentT, with the ability to include
filters to target sub sets of ComponentT.
The filter acts on the properties of ComponentIdentity, and on the type of ComponentT.
Calls can be chained to include more than one filter, though in some cases selecting a
particular filter can reduce the list of available filters in the chain.
This extends FilteredComponentActionRegistrar to allow filtering per type.
Summary
Inherited functions
|
From class FilteredComponentActionRegistrar
BuildTypedComponentActionRegistrar<ComponentT> |
withBuildType(buildType: String)
Returns a new registrar for ComponentT objects with a given build type.
|
Unit |
withBuildType(buildType: String, action: Action<ComponentT>)
Registers an Action for ComponentT objects with a given build type.
|
Unit |
withBuildType(buildType: String, action: ComponentT.() -> Unit)
Registers an action for ComponentT objects with a given build type.
|
FlavoredComponentActionRegistrar<ComponentT> |
withFlavor(flavorToDimension: Pair<String, String>)
Returns a new registrar for ComponentT objects with a given (dimension, flavorName).
|
Unit |
withFlavor(flavorToDimension: Pair<String, String>, action: Action<ComponentT>)
Registers an Action for ComponentT objects with a given (dimension, flavorName).
|
Unit |
withFlavor(flavorToDimension: Pair<String, String>, action: ComponentT.() -> Unit)
Registers an action for ComponentT objects with a given (dimension, flavorName).
|
Unit |
withName(pattern: Pattern, action: Action<ComponentT>)
Registers an Action for ComponentT objects with a given name pattern.
|
Unit |
withName(name: String, action: Action<ComponentT>)
Registers an Action for ComponentT objects with a given name.
|
Unit |
withName(name: String, action: ComponentT.() -> Unit)
Registers an action for ComponentT objects with a given name.
|
|
Public methods
withType
abstract fun <NewTypeT : ComponentT> withType(
newType: Class<NewTypeT>,
action: NewTypeT.() -> Unit
): Unit
withType
abstract fun <NewTypeT : ComponentT> withType(
newType: Class<NewTypeT>,
action: Action<NewTypeT>
): Unit
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]