public class UIGridColumn extends com.vaadin.ui.AbstractComponent implements UIComponent, UIComponentWithHints2, UIComponentWithCustomVisibility
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, 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 | Method and Description |
---|---|
boolean |
applyHint(String hintName,
Variant<Object> newValue,
Variant<Object> oldValue)
Applies the given hint to this component.
|
com.vaadin.data.util.converter.Converter<?,?> |
createConverterForRenderer() |
com.vaadin.ui.Alignment |
getAlignment() |
UIComponentData |
getComponentData()
Returns the component definition (LSPS RecordHolder instance which is
subtype of "ui::Component") associated with this Vaadin component.
|
Variant<Object> |
getContent(Object input)
Runs the "content" closure or property on given input and returns the result.
|
Type |
getContentType()
Returns the type of the values returned by
getContent(Object) . |
com.vaadin.ui.Field<?> |
getEditor()
Creates an editor capable of editing the column's value.
|
Filter.ValueProvider<?> |
getFilterValueProvider() |
String |
getHeader()
Returns ui::GridColumn.header
|
com.vaadin.ui.Alignment |
getHeaderAlignment() |
com.vaadin.ui.renderers.Renderer<?> |
getRenderer() |
String |
getRendererFormatPattern()
Returns the format pattern of the renderer defined for the column.
|
ISort |
getSort(int columnId)
Returns the sorting criteria for this column.
|
com.vaadin.ui.AbstractComponent |
getWidget()
Returns the Vaadin widget which implements the UI part of this component.
|
boolean |
isEditable()
Checks whether this column is editable.
|
boolean |
isFiltrable() |
boolean |
isHiddenByUser() |
boolean |
isPropertyPath()
True if the ui::GridColumn.content field is a property path.
|
boolean |
isShown()
Returns true if the LSPS UI component represented by this Vaadin
component is visible.
|
boolean |
isSortable()
Returns true if this column is sortable.
|
void |
refresh()
This method is called from LSPS rendering engine.
|
void |
setAlignment(com.vaadin.ui.Alignment alignment) |
void |
setContent(Variant<Object> row,
Object content)
Sets the value to the row object.
|
void |
setHeaderAlignment(com.vaadin.ui.Alignment headerAlignment) |
void |
setHiddenByUser(boolean hiddenByUser) |
String |
toString() |
boolean |
unapplyHint(String hintName,
Variant<Object> oldValue)
The hint has been removed from the hint map.
|
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, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined, writeDesign
addAttachListener, 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, setResource
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public boolean isSortable()
public Type getContentType()
getContent(Object)
.public Variant<Object> getContent(Object input)
input
- the grid row objectUnreachablePropertyPathValueException
- if the value of the input cannot be reached using the defined property pathpublic void setContent(Variant<Object> row, Object content)
row
- the row objectcontent
- the content to setpublic boolean isPropertyPath()
public boolean isEditable()
true
.public String getHeader()
public ISort getSort(int columnId)
IllegalStateException
- if the column is not sortable.public boolean isFiltrable()
public Filter.ValueProvider<?> getFilterValueProvider()
public com.vaadin.ui.renderers.Renderer<?> getRenderer()
public String getRendererFormatPattern()
ui::NumberRenderer
ui::DateRenderer
null
.public com.vaadin.data.util.converter.Converter<?,?> createConverterForRenderer()
public com.vaadin.ui.Field<?> getEditor()
public boolean isShown()
UIComponentWithCustomVisibility
UIComponents.isShown(UIComponent)
.isShown
in interface UIComponentWithCustomVisibility
public boolean applyHint(String hintName, Variant<Object> newValue, Variant<Object> oldValue)
UIComponentWithHints2
applyHint
in interface UIComponentWithHints2
hintName
- 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 boolean unapplyHint(String hintName, Variant<Object> oldValue)
UIComponentWithHints2
unapplyHint
in interface UIComponentWithHints2
hintName
- 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.ui.AbstractComponent getWidget()
UIComponent
getWidget
in interface UIComponent
public void refresh()
UIComponent
UIComponentData.getHints()
.refresh
in interface UIComponent
public UIComponentData getComponentData()
UIComponent
getComponentData
in interface UIComponent
public com.vaadin.ui.Alignment getAlignment()
public void setAlignment(com.vaadin.ui.Alignment alignment)
public com.vaadin.ui.Alignment getHeaderAlignment()
public void setHeaderAlignment(com.vaadin.ui.Alignment headerAlignment)
public boolean isHiddenByUser()
public void setHiddenByUser(boolean hiddenByUser)
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.