Package org.linkki.core.ui.aspects
Class LabelAspectDefinition
- java.lang.Object
-
- org.linkki.core.binding.descriptor.aspect.base.ModelToUiAspectDefinition<String>
-
- org.linkki.core.ui.aspects.LabelAspectDefinition
-
- All Implemented Interfaces:
LinkkiAspectDefinition
public class LabelAspectDefinition extends ModelToUiAspectDefinition<String>
Aspect definition to bind the label of a component.The label can be defined using a static value, or it can be dynamically bind to the model.
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME-
Fields inherited from interface org.linkki.core.binding.descriptor.aspect.LinkkiAspectDefinition
DERIVED_BY_LINKKI, VALUE_ASPECT_NAME
-
-
Constructor Summary
Constructors Constructor Description LabelAspectDefinition(String label)Aspect definition which represents a static label.LabelAspectDefinition(String label, LabelType labelType)Aspect definition which represents a label of the passedtype.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Aspect<String>createAspect()Consumer<String>createComponentValueSetter(ComponentWrapper componentWrapper)booleansupports(WrapperType type)-
Methods inherited from class org.linkki.core.binding.descriptor.aspect.base.ModelToUiAspectDefinition
createUiUpdater, handleUiUpdateException
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.linkki.core.binding.descriptor.aspect.LinkkiAspectDefinition
initModelUpdate
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LabelAspectDefinition
public LabelAspectDefinition(String label)
Aspect definition which represents a static label.- Parameters:
label- The label text
-
-
Method Detail
-
createAspect
public Aspect<String> createAspect()
- Specified by:
createAspectin classModelToUiAspectDefinition<String>
-
createComponentValueSetter
public Consumer<String> createComponentValueSetter(ComponentWrapper componentWrapper)
- Specified by:
createComponentValueSetterin classModelToUiAspectDefinition<String>
-
supports
public boolean supports(WrapperType type)
-
-