public class UITableColumn extends com.vaadin.ui.AbstractComponent implements UIComponent, UIComponentWithHints2, UIRefreshHandler, UIComponentWithCustomVisibility, UIComponentListeningOnRefresh
UIComponentWithCustomVisibility and return true otherwise UIComponents.isShown(com.whitestein.lsps.vaadin.ui.components.UIComponent)
will not work properly and will report false for
all UITableColumn descendants.com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, 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 |
|---|---|
Filter.ValueProvider<?> |
filterValueProvider
A guess of what this column displays and which values are used for filtering.
|
Variant.ScopedClosureVariant |
groupValue
The value of the "groupValue" property.
|
ISort |
sort
Sort to use when sorting by this column.
|
protected com.vaadin.ui.CustomTable |
table
Owner Vaadin table, never null.
|
| Constructor and Description |
|---|
UITableColumn(com.vaadin.ui.CustomTable table,
UIComponentData componentData,
String columnId)
Constructs a new table column.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyHint(String hintName,
Variant<Object> newValue,
Variant<Object> oldValue)
Applies the given hint to this component.
|
com.vaadin.ui.Alignment |
getAlignment() |
String |
getColumnId()
The column ID.
|
UIComponentData |
getComponentData()
Returns the component definition (LSPS RecordHolder instance which is
subtype of "ui::Component") associated with this Vaadin component.
|
FilterUI |
getFilterUI() |
Object |
getOrdering()
Returns the value of the ordering property.
|
Set<UIComponent> |
getRefreshedComponents() |
com.vaadin.data.Property |
getStringRepresentation(Object itemId)
Returns a property which returns text representation of the data displayed in this column, if possible.
|
protected UITableBase |
getUITable()
Owner UITableBase, not null.
|
String |
getUnformattedCaption()
Returns the unformatted column header (without any divs or spans).
|
com.vaadin.ui.AbstractComponent |
getWidget()
Returns the Vaadin widget which implements the UI part of this component.
|
void |
initChildren(boolean isFirstLoad)
Should initialize all visible child components.
|
boolean |
isFiltrable()
Checks whether the column supports filtering.
|
boolean |
isPerformanceInline() |
boolean |
isShown()
True if the column is shown (the "shown" property).
|
boolean |
isSortable()
Checks if this column is sortable.
|
void |
onChildRefresh(UIComponent child)
Invoked when a child UI component is refreshed, or when this method is called on child.
|
static void |
patchCssLayoutToShowErrorMessagesCorrectly(com.vaadin.ui.CssLayout parent,
UIComponent component) |
void |
refresh()
This method is called from LSPS rendering engine.
|
void |
refreshChildren(Set<Integer> itemIDsToRefresh)
Refreshes/creates child components.
|
void |
refreshColumn(boolean calledFromTable)
Performs the column refresh.
|
void |
registerChildren()
Should register all child components in the screen.
|
void |
setAlignment(com.vaadin.ui.Alignment alignment) |
void |
setCaption(String caption) |
void |
setComponentError(com.vaadin.server.ErrorMessage componentError) |
void |
setHeaderAlignment(com.vaadin.ui.Alignment alignment) |
void |
setVisible(boolean visible) |
String |
toString() |
boolean |
unapplyHint(String hintName,
Variant<Object> oldValue)
The hint has been removed from the hint map.
|
void |
unregisterChildren()
Should unregister all child components in the screen.
|
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaptionAsHtml, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setWidth, setWidth, setWidthUndefined, writeDesignaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResourceclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic final ISort sort
isSortable() for details.public final Filter.ValueProvider<?> filterValueProvider
public final Variant.ScopedClosureVariant groupValue
protected final com.vaadin.ui.CustomTable table
public UITableColumn(com.vaadin.ui.CustomTable table,
UIComponentData componentData,
String columnId)
table - owner table, not null.componentData - data definition, not null.public void setVisible(boolean visible)
setVisible in interface com.vaadin.ui.ComponentsetVisible in class com.vaadin.ui.AbstractComponentpublic static void patchCssLayoutToShowErrorMessagesCorrectly(com.vaadin.ui.CssLayout parent,
UIComponent component)
protected final UITableBase getUITable()
public Object getOrdering()
public boolean isFiltrable()
filterValueProvider values, false if value provider is null
or does not return instances of string, decimal, date nor enum.public FilterUI getFilterUI()
public boolean isSortable()
sort is not null.public boolean isShown()
isShown in interface UIComponentWithCustomVisibilitypublic void refresh()
UIComponentUIComponentData.getHints().refresh in interface UIComponentpublic void refreshColumn(boolean calledFromTable)
calledFromTable - if true then we are called from a table and we must not call UITableBase.recreateColumns().public void refreshChildren(Set<Integer> itemIDsToRefresh)
itemIDsToRefresh - if not null, restricts which rows will be refreshed. If null, all rows will be refreshed.public void onChildRefresh(UIComponent child)
UIComponentListeningOnRefreshonChildRefresh in interface UIComponentListeningOnRefreshpublic void setComponentError(com.vaadin.server.ErrorMessage componentError)
setComponentError in class com.vaadin.ui.AbstractComponentpublic void setCaption(String caption)
setCaption in interface com.vaadin.ui.ComponentsetCaption in class com.vaadin.ui.AbstractComponentpublic String getUnformattedCaption()
public UIComponentData getComponentData()
UIComponentgetComponentData in interface UIComponentpublic String getColumnId()
Container.getContainerPropertyIds()).
Needs to be stable, pass the MODELING_ID here: https://experjira.whitestein.com/browse/LSPS-6977public Set<UIComponent> getRefreshedComponents()
getRefreshedComponents in interface UIRefreshHandlerpublic void registerChildren()
UIRefreshHandlerUIScreen.registerUIComponent(UIComponent).registerChildren in interface UIRefreshHandlerpublic void unregisterChildren()
UIRefreshHandlerUIScreen.unregisterUIComponent(UIComponent).unregisterChildren in interface UIRefreshHandlerpublic void initChildren(boolean isFirstLoad)
UIRefreshHandlerUIComponents.initChildren(java.util.List, boolean).initChildren in interface UIRefreshHandlerisFirstLoad - value of field UIFieldNames.IS_FIRST_LOAD
of the created init eventpublic boolean applyHint(String hintName, Variant<Object> newValue, Variant<Object> oldValue)
UIComponentWithHints2applyHint in interface UIComponentWithHints2hintName - the hint name, not null.newValue - variant containing the new hint value, never null, may contain null value.oldValue - variant containing the previous hint value, never null, may contain null value if the hint was missing or the old value was null.public void setHeaderAlignment(com.vaadin.ui.Alignment alignment)
public void setAlignment(com.vaadin.ui.Alignment alignment)
public com.vaadin.ui.Alignment getAlignment()
public boolean unapplyHint(String hintName, Variant<Object> oldValue)
UIComponentWithHints2unapplyHint in interface UIComponentWithHints2hintName - the the hint name, not null.oldValue - variant containing the previous hint value, never null, may contain null value if the old value was null.public com.vaadin.data.Property getStringRepresentation(Object itemId)
itemId - the item ID as seen in the Container, not null.public boolean isPerformanceInline()
public com.vaadin.ui.AbstractComponent getWidget()
UIComponentgetWidget in interface UIComponentCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.