public class JmixResponsiveGridLayout
extends com.vaadin.ui.AbstractComponent
implements com.vaadin.ui.HasComponents, com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.event.LayoutEvents.LayoutClickNotifier
Modifier and Type | Class and Description |
---|---|
static class |
JmixResponsiveGridLayout.AbstractGridElement |
static class |
JmixResponsiveGridLayout.AlignItems |
static class |
JmixResponsiveGridLayout.AlignSelf |
static class |
JmixResponsiveGridLayout.Breakpoint |
static class |
JmixResponsiveGridLayout.Column |
static class |
JmixResponsiveGridLayout.ColumnsValue |
static class |
JmixResponsiveGridLayout.ContainerType |
static class |
JmixResponsiveGridLayout.JustifyContent |
static class |
JmixResponsiveGridLayout.OffsetValue |
static class |
JmixResponsiveGridLayout.OrderValue |
static class |
JmixResponsiveGridLayout.Row |
static class |
JmixResponsiveGridLayout.RowColumnsValue |
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.server.KeyMapper<JmixResponsiveGridLayout.Column> |
columnIdMap |
protected JmixResponsiveGridLayout.ContainerType |
containerType |
protected boolean |
initialized |
protected java.util.List<JmixResponsiveGridLayout.Row> |
rowOrder |
protected java.util.Map<java.lang.String,com.vaadin.ui.Component> |
slots |
Constructor and Description |
---|
JmixResponsiveGridLayout() |
Modifier and Type | Method and Description |
---|---|
protected void |
addComponent(com.vaadin.ui.Component component,
java.lang.String columnId) |
com.vaadin.shared.Registration |
addComponentAttachListener(com.vaadin.ui.HasComponents.ComponentAttachListener listener) |
com.vaadin.shared.Registration |
addComponentDetachListener(com.vaadin.ui.HasComponents.ComponentDetachListener listener) |
com.vaadin.shared.Registration |
addLayoutClickListener(com.vaadin.event.LayoutEvents.LayoutClickListener listener) |
JmixResponsiveGridLayout.Row |
addRow() |
JmixResponsiveGridLayout.Row |
addRow(int index) |
void |
beforeClientResponse(boolean initial) |
protected void |
checkInitializedState() |
protected JmixResponsiveGridLayoutServerRpc |
createRpc() |
protected void |
fireComponentAttachEvent(com.vaadin.ui.Component component) |
protected void |
fireComponentDetachEvent(com.vaadin.ui.Component component) |
protected java.lang.String |
generateJson() |
protected java.lang.String |
getColumnId(JmixResponsiveGridLayout.Column column) |
JmixResponsiveGridLayout.ContainerType |
getContainerType() |
java.util.List<JmixResponsiveGridLayout.Row> |
getRows() |
protected JmixResponsiveGridLayoutState |
getState() |
protected JmixResponsiveGridLayoutState |
getState(boolean markAsDirty) |
protected void |
initComponent() |
boolean |
isInitialized() |
boolean |
isResponsive() |
java.util.Iterator<com.vaadin.ui.Component> |
iterator() |
void |
removeAllRows() |
protected void |
removeColumnId(JmixResponsiveGridLayout.Column column) |
protected void |
removeComponent(com.vaadin.ui.Component component) |
protected void |
removeComponent(java.lang.String location) |
void |
removeComponentAttachListener(com.vaadin.ui.HasComponents.ComponentAttachListener listener) |
void |
removeComponentDetachListener(com.vaadin.ui.HasComponents.ComponentDetachListener listener) |
void |
removeLayoutClickListener(com.vaadin.event.LayoutEvents.LayoutClickListener listener)
Deprecated.
|
void |
removeRow(JmixResponsiveGridLayout.Row row) |
void |
setContainerType(JmixResponsiveGridLayout.ContainerType containerType) |
void |
setResponsive(boolean responsive) |
void |
setWidth(float width,
com.vaadin.server.Sizeable.Unit unit) |
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, focus, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setJTestId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setRequiredIndicatorVisible, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefined, writeDesign
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setJTestId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected JmixResponsiveGridLayout.ContainerType containerType
protected java.util.List<JmixResponsiveGridLayout.Row> rowOrder
protected com.vaadin.server.KeyMapper<JmixResponsiveGridLayout.Column> columnIdMap
protected java.util.Map<java.lang.String,com.vaadin.ui.Component> slots
protected boolean initialized
protected JmixResponsiveGridLayoutServerRpc createRpc()
protected void initComponent()
protected java.lang.String getColumnId(JmixResponsiveGridLayout.Column column)
protected void removeColumnId(JmixResponsiveGridLayout.Column column)
public JmixResponsiveGridLayout.Row addRow()
public JmixResponsiveGridLayout.Row addRow(int index)
public void removeRow(JmixResponsiveGridLayout.Row row)
public void removeAllRows()
public java.util.List<JmixResponsiveGridLayout.Row> getRows()
public JmixResponsiveGridLayout.ContainerType getContainerType()
public void setContainerType(JmixResponsiveGridLayout.ContainerType containerType)
public java.util.Iterator<com.vaadin.ui.Component> iterator()
iterator
in interface com.vaadin.ui.HasComponents
iterator
in interface java.lang.Iterable<com.vaadin.ui.Component>
public com.vaadin.shared.Registration addComponentAttachListener(com.vaadin.ui.HasComponents.ComponentAttachListener listener)
addComponentAttachListener
in interface com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
public void removeComponentAttachListener(com.vaadin.ui.HasComponents.ComponentAttachListener listener)
removeComponentAttachListener
in interface com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
public com.vaadin.shared.Registration addComponentDetachListener(com.vaadin.ui.HasComponents.ComponentDetachListener listener)
addComponentDetachListener
in interface com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
public void removeComponentDetachListener(com.vaadin.ui.HasComponents.ComponentDetachListener listener)
removeComponentDetachListener
in interface com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
protected void addComponent(com.vaadin.ui.Component component, java.lang.String columnId)
protected void removeComponent(@Nullable com.vaadin.ui.Component component)
protected void removeComponent(java.lang.String location)
protected void fireComponentAttachEvent(com.vaadin.ui.Component component)
protected void fireComponentDetachEvent(com.vaadin.ui.Component component)
public com.vaadin.shared.Registration addLayoutClickListener(com.vaadin.event.LayoutEvents.LayoutClickListener listener)
addLayoutClickListener
in interface com.vaadin.event.LayoutEvents.LayoutClickNotifier
@Deprecated public void removeLayoutClickListener(com.vaadin.event.LayoutEvents.LayoutClickListener listener)
removeLayoutClickListener
in interface com.vaadin.event.LayoutEvents.LayoutClickNotifier
protected JmixResponsiveGridLayoutState getState()
getState
in class com.vaadin.ui.AbstractComponent
protected JmixResponsiveGridLayoutState getState(boolean markAsDirty)
getState
in class com.vaadin.ui.AbstractComponent
public void beforeClientResponse(boolean initial)
beforeClientResponse
in interface com.vaadin.server.ClientConnector
beforeClientResponse
in class com.vaadin.ui.AbstractComponent
protected java.lang.String generateJson()
public void setWidth(float width, com.vaadin.server.Sizeable.Unit unit)
setWidth
in interface com.vaadin.server.Sizeable
setWidth
in class com.vaadin.ui.AbstractComponent
public boolean isResponsive()
isResponsive
in class com.vaadin.ui.AbstractComponent
public void setResponsive(boolean responsive)
setResponsive
in class com.vaadin.ui.AbstractComponent
public boolean isInitialized()
protected void checkInitializedState()