public abstract class AbstractCanvasLayout extends io.jmix.ui.component.impl.CssLayoutImpl implements CanvasLayout
io.jmix.ui.component.Component.Alignment, io.jmix.ui.component.Component.BelongToFrame, io.jmix.ui.component.Component.Disposable, io.jmix.ui.component.Component.Editable, io.jmix.ui.component.Component.Focusable, io.jmix.ui.component.Component.HasCaption, io.jmix.ui.component.Component.HasDescription, io.jmix.ui.component.Component.HasIcon, io.jmix.ui.component.Component.HasXmlDescriptor, io.jmix.ui.component.Component.Wrapper
Modifier and Type | Field and Description |
---|---|
protected io.jmix.ui.component.HBoxLayout |
buttonsPanel |
protected io.jmix.ui.UiComponents |
components |
protected io.jmix.ui.component.ComponentContainer |
delegate |
protected DashboardLayout |
model |
protected java.util.UUID |
uuid |
layoutClickRegistration, ownComponents, shortcuts
Constructor and Description |
---|
AbstractCanvasLayout() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(io.jmix.ui.component.Component component)
Add specified component to the layout.
|
io.jmix.core.common.event.Subscription |
addLayoutClickListener(java.util.function.Consumer<io.jmix.ui.component.LayoutClickNotifier.LayoutClickEvent> listener) |
io.jmix.ui.component.HBoxLayout |
createButtonsPanel()
Creates an empty panel for dashboard layout actions.
|
io.jmix.ui.component.HBoxLayout |
getButtonsPanel() |
io.jmix.ui.component.Component |
getDelegate() |
java.util.Collection<io.jmix.ui.component.Component> |
getLayoutComponents() |
DashboardLayout |
getModel() |
java.util.UUID |
getUuid() |
int |
getWeight() |
<T extends io.jmix.ui.component.ComponentContainer> |
init(DashboardLayout model,
java.lang.Class<T> componentClass) |
AbstractCanvasLayout |
init(DashboardLayout model,
io.jmix.ui.component.ComponentContainer delegate) |
void |
setButtonsPanel(io.jmix.ui.component.HBoxLayout buttonsPanel)
Sets a buttons panel.
|
void |
setUuid(java.util.UUID uuid)
Sets a canvas layout id.
|
void |
setWeight(int weight) |
createComponent, isRequiredIndicatorVisible, setRequiredIndicatorVisible
add, add, addShortcutAction, attached, detached, findChildComponent, getComponent, getComponent, getComponents, getDescription, getOwnComponent, getOwnComponents, getOwnComponentsStream, indexOf, internalRemoveLayoutClickListener, remove, removeAll, removeShortcutAction, setDescription, setFrame
addAttachListener, addDetachListener, addStyleName, assignDebugId, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescriptionAsHtml, setEnabled, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, remove, remove, removeAll
addStyleName, 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, withUnwrappedComposition
focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream
add, getComponent, getComponentNN, indexOf
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
addShortcutAction, removeShortcutAction
isCaptionAsHtml, setCaptionAsHtml
getDescription, setDescription
protected io.jmix.ui.component.ComponentContainer delegate
protected io.jmix.ui.component.HBoxLayout buttonsPanel
protected java.util.UUID uuid
protected DashboardLayout model
@Autowired protected io.jmix.ui.UiComponents components
public AbstractCanvasLayout init(DashboardLayout model, io.jmix.ui.component.ComponentContainer delegate)
public <T extends io.jmix.ui.component.ComponentContainer> AbstractCanvasLayout init(DashboardLayout model, java.lang.Class<T> componentClass)
public io.jmix.ui.component.Component getDelegate()
getDelegate
in interface CanvasLayout
ComponentContainer
or ResponsiveGridLayout
.public void addComponent(io.jmix.ui.component.Component component)
CanvasLayout
addComponent
in interface CanvasLayout
component
- componentpublic java.util.Collection<io.jmix.ui.component.Component> getLayoutComponents()
getLayoutComponents
in interface CanvasLayout
public io.jmix.ui.component.HBoxLayout createButtonsPanel()
CanvasLayout
createButtonsPanel
in interface CanvasLayout
ActionsProvider.getLayoutActions(DashboardLayout)
public io.jmix.ui.component.HBoxLayout getButtonsPanel()
getButtonsPanel
in interface CanvasLayout
public void setButtonsPanel(io.jmix.ui.component.HBoxLayout buttonsPanel)
CanvasLayout
setButtonsPanel
in interface CanvasLayout
buttonsPanel
- new buttons panelpublic io.jmix.core.common.event.Subscription addLayoutClickListener(java.util.function.Consumer<io.jmix.ui.component.LayoutClickNotifier.LayoutClickEvent> listener)
addLayoutClickListener
in interface io.jmix.ui.component.LayoutClickNotifier
addLayoutClickListener
in class io.jmix.ui.component.impl.AbstractOrderedLayout<com.vaadin.ui.CssLayout>
public java.util.UUID getUuid()
getUuid
in interface CanvasLayout
public void setUuid(java.util.UUID uuid)
CanvasLayout
setUuid
in interface CanvasLayout
uuid
- idpublic DashboardLayout getModel()
getModel
in interface CanvasLayout