Annotation Type UIButton
-
@Retention(RUNTIME) @Target(METHOD) @LinkkiBoundProperty(org.linkki.core.binding.descriptor.property.annotation.BoundPropertyCreator.SimpleMemberNameBoundPropertyCreator.class) @LinkkiAspect(ButtonAspectCreator.class) public @interface UIButton
Marks a method which is carried out when theUIButtonis clicked.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description intpositionMandatory attribute that defines the order in which UI-Elements are displayed
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringcaptionStatic text displayed on the button.CaptionTypecaptionTypeDefines how the value of caption should be retrieved, using values ofCaptionType.EnabledTypeenabledDefines if an UI-Component is editable, using values ofEnabledTypecom.vaadin.flow.component.icon.VaadinIconiconDefines the button's icon, using constants inVaadinIconStringlabelProvides a description label next to the buttonString[]shortcutKeyCodeSet a short cut for the button.com.vaadin.flow.component.KeyModifier[]shortcutKeyModifiersSet a modifier for the short cut.booleanshowIconIftrue, the button will be displayed with the definedicon()com.vaadin.flow.component.button.ButtonVariant[]variantsDefines the look of the button.VisibleTypevisibleSpecifies if a component is shown, using values ofVisibleType
-
-
-
-
label
String label
Provides a description label next to the button- Default:
- ""
-
-
-
caption
String caption
Static text displayed on the button. If the value should be determined dynamically, useCaptionType.DYNAMICinstead and ignore this attribute.- Default:
- "derived.by.linkki"
-
-
-
captionType
CaptionType captionType
Defines how the value of caption should be retrieved, using values ofCaptionType.Despite in other annotations like
BindCaptionthe default here isCaptionType.STATIC(and NOTCaptionType.AUTObecause it is a common use case to have a button with only an icon but no caption.- Default:
- org.linkki.core.defaults.ui.aspects.types.CaptionType.STATIC
-
-
-
enabled
EnabledType enabled
Defines if an UI-Component is editable, using values ofEnabledType- Default:
- org.linkki.core.defaults.ui.aspects.types.EnabledType.ENABLED
-
-
-
visible
VisibleType visible
Specifies if a component is shown, using values ofVisibleType- Default:
- org.linkki.core.defaults.ui.aspects.types.VisibleType.VISIBLE
-
-
-
showIcon
boolean showIcon
Iftrue, the button will be displayed with the definedicon()- Default:
- false
-
-
-
shortcutKeyModifiers
com.vaadin.flow.component.KeyModifier[] shortcutKeyModifiers
Set a modifier for the short cut. Only useful in combination with ashortcutKeyCode(). Use constants fromKeyModifier.- Default:
- {}
-
-