Class IconAllComponentsComponentGenerator
java.lang.Object
com.vaadin.copilot.allcomponents.generators.IconAllComponentsComponentGenerator
- All Implemented Interfaces:
AllComponentsComponentGenerator
public class IconAllComponentsComponentGenerator
extends Object
implements AllComponentsComponentGenerator
Generates a representative example for a Vaadin Icon component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds component-specific statements to the generated example.booleanaddDefaultWithoutVariant(Class<?> componentClazz) Determines whether an example without a theme variant should be added.booleanpopulateForEachThemeVariant(Class<?> componentClazz) Determines whether examples should be populated for every available theme variant.Gets the fully qualified name of the component class targeted by this generator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.copilot.allcomponents.AllComponentsComponentGenerator
getVariantExpression, getVariantNameExpressionOrDefaultStringLiteral, hasMethod, hasMethodWithParameterTypeNames, matches, maxShowcaseColumns, parameterNamesMatch, parametersMatch, shouldGenerateExample, styles
-
Constructor Details
-
IconAllComponentsComponentGenerator
public IconAllComponentsComponentGenerator()
-
-
Method Details
-
targetFullyQualifiedClassName
Description copied from interface:AllComponentsComponentGeneratorGets the fully qualified name of the component class targeted by this generator.- Specified by:
targetFullyQualifiedClassNamein interfaceAllComponentsComponentGenerator- Returns:
- the target class name, or
nullwhen the generator is the default fallback
-
addDefaultWithoutVariant
Description copied from interface:AllComponentsComponentGeneratorDetermines whether an example without a theme variant should be added.- Specified by:
addDefaultWithoutVariantin interfaceAllComponentsComponentGenerator- Parameters:
componentClazz- the component class being generated- Returns:
trueto add the default example
-
populateForEachThemeVariant
Description copied from interface:AllComponentsComponentGeneratorDetermines whether examples should be populated for every available theme variant.- Specified by:
populateForEachThemeVariantin interfaceAllComponentsComponentGenerator- Parameters:
componentClazz- the component class being generated- Returns:
trueto generate examples for each theme variant
-
addCustomStatements
Description copied from interface:AllComponentsComponentGeneratorAdds component-specific statements to the generated example.- Specified by:
addCustomStatementsin interfaceAllComponentsComponentGenerator- Parameters:
context- context containing the generated block and component details
-