Package org.linkki.core.ui.layout
Class HorizontalLayoutComponentDefinition
- java.lang.Object
-
- org.linkki.core.ui.layout.HorizontalLayoutComponentDefinition
-
- All Implemented Interfaces:
LinkkiComponentDefinition
public class HorizontalLayoutComponentDefinition extends Object implements LinkkiComponentDefinition
Defines aHorizontalLayoutwith the given default vertical alignment.
-
-
Constructor Summary
Constructors Constructor Description HorizontalLayoutComponentDefinition(VerticalAlignment verticalAlignment, boolean spacing, boolean padding)Creates a newHorizontalLayoutComponentDefinitionwith the given vertical alignment.
-
-
-
Constructor Detail
-
HorizontalLayoutComponentDefinition
public HorizontalLayoutComponentDefinition(VerticalAlignment verticalAlignment, boolean spacing, boolean padding)
Creates a newHorizontalLayoutComponentDefinitionwith the given vertical alignment.For use cases where input fields do not have captions,
VerticalAlignment.MIDDLEyields the most consistent looking result. However, captions above input fields would create the effect that input fields themselves are lower than those components without a caption, e.g. buttons. In this case, considerVerticalAlignment.BOTTOMto make the controls better aligned. The state of spacing and padding can be applied. When activ then predefined style will apply to the layout. By default padding is deactivated and spacing is activated.
-
-
Method Detail
-
createComponent
public Object createComponent(Object pmo)
- Specified by:
createComponentin interfaceLinkkiComponentDefinition
-
-