Interface FormThemeReference.Matcher<R, E extends Throwable>
- Type Parameters:
R- The return type of the matcher functions.E- The type of exception that the matcher functions may throw.
- All Known Implementing Classes:
FormThemeReference.DefaultMatcher
- Enclosing class:
FormThemeReference
public static interface FormThemeReference.Matcher<R, E extends Throwable>
A matcher on a
FormThemeReference. Calls a different method depending on the type.-
Method Summary
Modifier and TypeMethodDescriptionCalled when the theme reference is aFormThemeReference.ClientFormTheme.Called when the theme reference is aFormThemeReference.FormThemePlugin.system(FormThemeReference.System theme) Called when the theme reference is aFormThemeReference.System.
-
Method Details
-
clientFormTheme
Called when the theme reference is aFormThemeReference.ClientFormTheme.- Parameters:
theme- The client form theme reference.- Returns:
- The result of the function.
- Throws:
E- The exception that may be thrown by the function.
-
formThemePlugin
Called when the theme reference is aFormThemeReference.FormThemePlugin.- Parameters:
theme- The form theme plugin reference.- Returns:
- The result of the function.
- Throws:
E- The exception that may be thrown by the function.
-
system
Called when the theme reference is aFormThemeReference.System.- Parameters:
theme- The system form theme reference.- Returns:
- The result of the function.
- Throws:
E- The exception that may be thrown by the function.
-