public interface Form extends Component, Component.BelongToFrame, Component.HasCaption, Component.HasIcon, ComponentContainer, Component.Editable, EditableChangeNotifier, HasContextHelp, ChildEditableController, HasValueSourceProvider, HasHtmlCaption, HasHtmlDescription
Modifier and Type | Interface and Description |
---|---|
static class |
Form.CaptionPosition
Caption alignment.
|
EditableChangeNotifier.EditableChangeEvent
HasContextHelp.ContextHelpIconClickEvent
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider, Component.Wrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
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 a columns with a given index.
|
void |
add(Component childComponent,
int column,
int row)
Adds a component to a columns with a given index to a given position.
|
Form.CaptionPosition |
getCaptionPosition() |
int |
getChildrenCaptionWidth() |
int |
getChildrenCaptionWidth(int column)
Returns fixed caption width for column with a given index.
|
int |
getColumns() |
Component |
getComponent(int column,
int row) |
java.util.Collection<Component> |
getComponents(int column) |
void |
setCaptionPosition(Form.CaptionPosition captionAlignment)
Sets alignment of component captions.
|
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 |
setColumns(int columns)
Sets the number of columns in the Form.
|
getFrame, setFrame
getIcon, setIcon, setIconFromSet
focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream, remove, remove, removeAll
addEditableChangeListener, removeEditableChangeListener
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
isEditable, isEditableWithParent, setEditable
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getValueSourceProvider, setValueSourceProvider
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
static final java.lang.String NAME
void add(Component childComponent)
add
in interface ComponentContainer
childComponent
- a component to adddefault void add(Component... childComponents)
add
in interface ComponentContainer
childComponents
- components to addvoid add(Component childComponent, int column)
childComponent
- a component to addcolumn
- a columns indexvoid add(Component childComponent, int column, int row)
childComponent
- a component to addcolumn
- a columns indexrow
- a row indexjava.util.Collection<Component> getComponents(int column)
column
- a column indexComponent getComponent(int column, int row)
column
- a columns indexrow
- a row indexForm.CaptionPosition getCaptionPosition()
void setCaptionPosition(Form.CaptionPosition captionAlignment)
captionAlignment
- component captions alignmentint getChildrenCaptionWidth()
void setChildrenCaptionWidth(int width)
width
- fixed caption widthint 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 Form