public interface Form extends Component, Component.BelongToFrame, Component.HasCaption, Component.HasIcon, ComponentContainer, Component.Editable, EditableChangeNotifier, HasContextHelp, ChildEditableController, HasValueSourceProvider, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer, SupportsCaptionPosition
| Modifier and Type | Interface and Description |
|---|---|
static class |
Form.CaptionAlignment
Caption alignment of form child components.
|
EditableChangeNotifier.EditableChangeEventHasContextHelp.ContextHelpIconClickEventComponent.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperSupportsCaptionPosition.CaptionPosition| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE| Modifier and Type | Method and Description |
|---|---|
default void |
add(Component... childComponents)
Sequentially adds components to the first column.
|
void |
add(Component childComponent)
Adds a component to the first column.
|
void |
add(Component childComponent,
int column)
Adds a component to the column with the given index.
|
void |
add(Component childComponent,
int column,
int row)
Adds a component to a column with the given index to the given position.
|
void |
add(Component childComponent,
int column,
int colSpan,
int rowSpan)
Adds a component to a column with the given index with the given span.
|
void |
add(Component childComponent,
int column,
int row,
int colSpan,
int rowSpan)
Adds a component to a column with the given index to the given position with the given span.
|
SupportsCaptionPosition.CaptionPosition |
getCaptionPosition() |
Form.CaptionAlignment |
getChildrenCaptionAlignment() |
Form.CaptionAlignment |
getChildrenCaptionAlignment(int column)
Returns alignment of child component captions for a column with the given index.
|
int |
getChildrenCaptionWidth() |
int |
getChildrenCaptionWidth(int column)
Returns fixed caption width for column with a given index.
|
float |
getColumnFlex(int column)
Returns the flex layout ratio for column with a given index.
|
int |
getColumns() |
Component |
getComponent(int column,
int row) |
java.util.Collection<Component> |
getComponents(int column) |
void |
setCaptionPosition(SupportsCaptionPosition.CaptionPosition position)
Sets caption position of form child components.
|
void |
setChildrenCaptionAlignment(Form.CaptionAlignment alignment)
Sets alignment of child component captions in all columns.
|
void |
setChildrenCaptionAlignment(int column,
Form.CaptionAlignment alignment)
Sets alignment of child component captions for a column with the given index.
|
void |
setChildrenCaptionWidth(int width)
Sets fixed captions width for all columns.
|
void |
setChildrenCaptionWidth(int column,
int width)
Set fixed captions width for column with a given index.
|
void |
setColumnFlex(int column,
float flex)
Sets flex layout ratio for column with a given index.
|
void |
setColumns(int columns)
Sets the number of columns in the Form.
|
getFrame, setFramegetIcon, setIcon, setIconFromSetremove, remove, removeAllfocusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStreamaddEditableChangeListenergetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledisEditable, isEditableWithParent, setEditableaddStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositiongetValueSourceProvider, setValueSourceProviderisCaptionAsHtml, setCaptionAsHtmlgetCaption, setCaptiongetDescription, setDescriptionisDescriptionAsHtml, setDescriptionAsHtmlisHtmlSanitizerEnabled, setHtmlSanitizerEnabledstatic final java.lang.String NAME
void add(Component childComponent)
add in interface ComponentContainerchildComponent - a component to adddefault void add(Component... childComponents)
add in interface ComponentContainerchildComponents - components to addvoid add(Component childComponent, int column)
childComponent - a component to addcolumn - a columns indexvoid add(Component childComponent, int column, int colSpan, int rowSpan)
childComponent - a component to addcolumn - a columns indexcolSpan - a number of columns a component should spanrowSpan - a number of rows a component should spanvoid add(Component childComponent, int column, int row)
childComponent - a component to addcolumn - a columns indexrow - a row indexvoid add(Component childComponent, int column, int row, int colSpan, int rowSpan)
childComponent - a component to addcolumn - a columns indexrow - a row indexcolSpan - a number of columns a component should spanrowSpan - a number of rows a component should spanjava.util.Collection<Component> getComponents(int column)
column - a column indexComponent getComponent(int column, int row)
column - a columns indexrow - a row indexSupportsCaptionPosition.CaptionPosition getCaptionPosition()
getCaptionPosition in interface SupportsCaptionPositionvoid setCaptionPosition(SupportsCaptionPosition.CaptionPosition position)
CaptionPosition#LEFT - component captions will be placed
in a separate column on the left side of the componentsCaptionPosition#TOP - component captions will be placed
above the componentssetCaptionPosition in interface SupportsCaptionPositionposition - component caption positionint getChildrenCaptionWidth()
void setChildrenCaptionWidth(int width)
width - fixed caption widthForm.CaptionAlignment getChildrenCaptionAlignment()
void setChildrenCaptionAlignment(Form.CaptionAlignment alignment)
Applicable only when captions position is CaptionPosition#LEFT.
alignment - captions alignmentForm.CaptionAlignment getChildrenCaptionAlignment(int column)
column - a column index to get captionvoid setChildrenCaptionAlignment(int column,
Form.CaptionAlignment alignment)
column - a column index to set captionalignment - alignment of child component captions for a column with the given indexint getChildrenCaptionWidth(int column)
column - a column indexvoid setChildrenCaptionWidth(int column,
int width)
column - a column indexwidth - fixed caption width for column with a given indexint getColumns()
void setColumns(int columns)
columns - the new number of columns in the Formfloat getColumnFlex(int column)
column - a column indexvoid setColumnFlex(int column,
float flex)
column - a column indexflex - the flex ration for the column