public class TablePresentationsLayout
extends com.vaadin.ui.VerticalLayout
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandlercom.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandlercom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listenercom.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 org.springframework.context.ApplicationContext |
applicationContext |
protected JmixPopupButton |
button |
protected static java.lang.String |
CONTEXT_MENU_BUTTON_STYLENAME |
protected static java.lang.String |
CURRENT_MENUITEM_STYLENAME |
static java.lang.String |
CUSTOM_STYLE_NAME_PREFIX |
protected static java.lang.String |
DEFAULT_MENUITEM_STYLENAME |
protected JmixMenuBar |
menuBar |
protected io.jmix.core.Messages |
messages |
protected PresentationActionsBuilder |
presentationActionsBuilder |
protected java.util.Map<java.lang.Object,com.vaadin.ui.MenuBar.MenuItem> |
presentationsMenuMap |
protected ComponentSettingsBinder |
settingsBinder |
protected Table |
table |
protected static java.lang.String |
TABLE_PREFS_STYLENAME |
protected JmixEnhancedTable |
tableImpl |
protected com.vaadin.ui.CheckBox |
textSelectionCheckBox |
| Constructor and Description |
|---|
TablePresentationsLayout(Table component,
ComponentSettingsBinder settingsBinder,
org.springframework.context.ApplicationContext applicationContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStyleForItem(com.vaadin.ui.MenuBar.MenuItem item,
java.lang.String styleName) |
protected void |
applyStylesForItem(com.vaadin.ui.MenuBar.MenuItem item,
java.util.List<java.lang.String> styles) |
void |
build() |
protected void |
buildActions() |
protected void |
buildPresentationsList() |
protected JmixButton |
createActionButton(Action action) |
protected java.lang.String |
getMessage(java.lang.String key) |
protected PresentationActionsBuilder |
getPresentationActionsBuilder() |
java.lang.String |
getStyleName() |
protected void |
initLayout() |
protected void |
removeCurrentItemStyle(com.vaadin.ui.MenuBar.MenuItem item) |
protected void |
removeDefaultItemStyle(com.vaadin.ui.MenuBar.MenuItem item) |
protected void |
removeStyleForItem(com.vaadin.ui.MenuBar.MenuItem item,
java.lang.String styleName) |
protected void |
setCurrentItemStyle(com.vaadin.ui.MenuBar.MenuItem item) |
protected void |
setDefaultItemStyle(com.vaadin.ui.MenuBar.MenuItem item) |
protected void |
setPopupButtonAction(JmixButton actionBtn,
Action action) |
void |
setPresentationActionsBuilder(PresentationActionsBuilder presentationActionsBuilder) |
void |
updateTextSelection() |
addComponentsAndExpand, getState, getStateaddComponent, addComponent, addComponentAsFirst, addLayoutClickListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, isSpacing, iterator, readDesign, removeComponent, removeLayoutClickListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesignisRequiredIndicatorVisible, readMargin, setRequiredIndicatorVisible, writeMarginaddComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidthaddContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, focus, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setJTestId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefinedaddAttachListener, 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, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddComponents, getComponentIterator, moveComponentsFrom, removeAllComponentsaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setJTestId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisibleaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic static final java.lang.String CUSTOM_STYLE_NAME_PREFIX
protected static final java.lang.String CURRENT_MENUITEM_STYLENAME
protected static final java.lang.String DEFAULT_MENUITEM_STYLENAME
protected static final java.lang.String TABLE_PREFS_STYLENAME
protected static final java.lang.String CONTEXT_MENU_BUTTON_STYLENAME
protected JmixMenuBar menuBar
protected JmixPopupButton button
protected com.vaadin.ui.CheckBox textSelectionCheckBox
protected Table table
protected JmixEnhancedTable tableImpl
protected ComponentSettingsBinder settingsBinder
protected java.util.Map<java.lang.Object,com.vaadin.ui.MenuBar.MenuItem> presentationsMenuMap
protected io.jmix.core.Messages messages
protected org.springframework.context.ApplicationContext applicationContext
protected PresentationActionsBuilder presentationActionsBuilder
public TablePresentationsLayout(Table component, ComponentSettingsBinder settingsBinder, org.springframework.context.ApplicationContext applicationContext)
public java.lang.String getStyleName()
getStyleName in interface com.vaadin.ui.ComponentgetStyleName in class com.vaadin.ui.AbstractComponentprotected void removeCurrentItemStyle(com.vaadin.ui.MenuBar.MenuItem item)
protected void setCurrentItemStyle(com.vaadin.ui.MenuBar.MenuItem item)
protected void removeDefaultItemStyle(com.vaadin.ui.MenuBar.MenuItem item)
protected void setDefaultItemStyle(com.vaadin.ui.MenuBar.MenuItem item)
protected void addStyleForItem(com.vaadin.ui.MenuBar.MenuItem item,
java.lang.String styleName)
protected void removeStyleForItem(com.vaadin.ui.MenuBar.MenuItem item,
java.lang.String styleName)
protected void applyStylesForItem(com.vaadin.ui.MenuBar.MenuItem item,
java.util.List<java.lang.String> styles)
protected void initLayout()
public void build()
public void updateTextSelection()
protected void buildPresentationsList()
protected void buildActions()
protected JmixButton createActionButton(Action action)
protected void setPopupButtonAction(JmixButton actionBtn, Action action)
@Nullable protected PresentationActionsBuilder getPresentationActionsBuilder()
public void setPresentationActionsBuilder(PresentationActionsBuilder presentationActionsBuilder)
protected java.lang.String getMessage(java.lang.String key)