public abstract class DesktopAbstractTable<C extends org.jdesktop.swingx.JXTable,E extends Entity> extends DesktopAbstractActionsHolderComponent<C> implements Table<E>, LookupComponent.LookupSelectionChangeNotifier
Table.AggregationStyle, Table.CellClickListener, Table.Column, Table.ColumnAlignment, Table.ColumnCollapseListener, Table.ColumnGenerator<E extends Entity>, Table.PlainTextCell, Table.Printable<E extends Entity,P>, Table.PrintableColumnGenerator<E extends Entity,P>, Table.RowHeaderMode, Table.SortDirection, Table.SortInfo, Table.StyleProvider<E extends Entity>
ListComponent.IconProvider<E extends Entity>
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
LookupComponent.LookupSelectionChangeEvent, LookupComponent.LookupSelectionChangeListener, LookupComponent.LookupSelectionChangeNotifier
SWING_PROPERTY_CLASS, SWING_PROPERTY_ID
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
void |
addAggregationProperty(java.lang.String columnId,
AggregationInfo.Type type) |
void |
addAggregationProperty(Table.Column columnId,
AggregationInfo.Type type) |
void |
addColumn(Table.Column column) |
void |
addColumnCollapsedListener(Table.ColumnCollapseListener columnCollapsedListener) |
void |
addGeneratedColumn(java.lang.String columnId,
Table.ColumnGenerator<? super E> generator)
Add a generated column to the table.
|
void |
addGeneratedColumn(java.lang.String columnId,
Table.ColumnGenerator<? super E> generator,
java.lang.Class<? extends Component> componentClass)
Add a generated column to the table.
|
void |
addLookupValueChangeListener(LookupComponent.LookupSelectionChangeListener listener) |
void |
addPrintable(java.lang.String columnId,
Table.Printable<? super E,?> printable)
Adds
Table.Printable representation for column. |
void |
addStyleProvider(Table.StyleProvider<? super E> styleProvider)
Add style provider for the table.
Table can use several providers to obtain many style names for cells and rows. |
void |
addValidator(Field.Validator validator) |
void |
addValidator(Table.Column column,
Field.Validator validator) |
void |
applyPresentation(java.lang.Object id) |
void |
applyPresentationAsDefault(java.lang.Object id) |
void |
applySettings(org.dom4j.Element element) |
void |
assignAutoDebugId() |
java.util.Map<java.lang.Object,java.lang.Object> |
getAggregationResults() |
Table.AggregationStyle |
getAggregationStyle() |
ButtonsPanel |
getButtonsPanel() |
Table.Column |
getColumn(java.lang.String id) |
boolean |
getColumnControlVisible() |
boolean |
getColumnReorderingAllowed() |
java.util.List<Table.Column> |
getColumns() |
boolean |
getColumnSortable(java.lang.String columnId) |
boolean |
getColumnSortable(Table.Column column) |
javax.swing.JComponent |
getComposition() |
CollectionDatasource |
getDatasource() |
java.lang.Object |
getDefaultPresentationId() |
java.lang.String |
getDescription() |
Action |
getEnterPressAction() |
Action |
getItemClickAction() |
Datasource |
getItemDatasource(Entity item)
This method returns the datasource which contains the provided item.
|
java.util.Collection |
getLookupSelectedItems() |
java.util.List<Table.Column> |
getNotCollapsedColumns() |
int |
getPreferredRowHeight(int rowIndex)
Returns the preferred height of a row.
|
Presentations |
getPresentations() |
Table.Printable |
getPrintable(java.lang.String columnId)
Get
Table.Printable representation for column. |
Table.Printable |
getPrintable(Table.Column column)
Get
Table.Printable representation for column. |
int |
getRowHeaderWidth() |
RowsCount |
getRowsCount() |
java.util.Set<E> |
getSelected() |
E |
getSingleSelected() |
Table.SortInfo |
getSortInfo() |
AnyTableModelAdapter |
getTableModel() |
boolean |
isAggregatable() |
boolean |
isColumnHeaderVisible() |
boolean |
isContentRepaintEnabled() |
boolean |
isContextMenuEnabled() |
boolean |
isEditable() |
boolean |
isMultiLineCells() |
boolean |
isMultiSelect() |
boolean |
isSettingsEnabled() |
boolean |
isShowSelection() |
boolean |
isShowTotalAggregation() |
boolean |
isSortable() |
boolean |
isTextSelectionEnabled() |
boolean |
isUsePresentations() |
void |
loadPresentations() |
void |
packRows()
Sets the height of each row into the preferred height of the tallest cell in that row.
|
void |
refresh() |
void |
removeAggregationProperty(java.lang.String columnId) |
void |
removeClickListener(java.lang.String columnId)
Remove click listener.
|
void |
removeColumn(Table.Column column) |
void |
removeColumnCollapseListener(Table.ColumnCollapseListener columnCollapseListener) |
void |
removeGeneratedColumn(java.lang.String columnId) |
void |
removeLookupValueChangeListener(LookupComponent.LookupSelectionChangeListener listener) |
void |
removePrintable(java.lang.String columnId)
Removes
Table.Printable representation of column. |
void |
removeStyleProvider(Table.StyleProvider<? super E> styleProvider)
Remove style provider for the table.
|
void |
repaint()
Repaint UI representation of the table (columns, generated columns) without refreshing the table data
|
void |
requestFocus(E itemId,
java.lang.String columnId)
Set focus on inner field of editable/generated column.
|
void |
resetPresentation() |
boolean |
saveSettings(org.dom4j.Element element) |
void |
scrollTo(E item)
Scroll table to specified row.
|
void |
selectAll() |
void |
setAggregatable(boolean aggregatable) |
void |
setAggregationStyle(Table.AggregationStyle aggregationStyle) |
void |
setButtonsPanel(ButtonsPanel panel) |
void |
setClickListener(java.lang.String columnId,
Table.CellClickListener clickListener)
Add lightweight click handler for column cells.
Web specific: cell value will be wrapped in span with cuba-table-clickable-cell style name. You can use .cuba-table-clickable-cell for CSS rules to specify custom representation of cell value. |
void |
setColumnAlignment(java.lang.String columnId,
Table.ColumnAlignment alignment) |
void |
setColumnAlignment(Table.Column column,
Table.ColumnAlignment alignment) |
void |
setColumnCaption(java.lang.String columnId,
java.lang.String caption)
Assign caption for column in runtime.
|
void |
setColumnCaption(Table.Column column,
java.lang.String caption) |
void |
setColumnCollapsed(java.lang.String columnId,
boolean collapsed)
Show/hide column in runtime.
|
void |
setColumnCollapsed(Table.Column column,
boolean collapsed) |
void |
setColumnControlVisible(boolean columnCollapsingAllowed) |
void |
setColumnDescription(java.lang.String columnId,
java.lang.String description)
Assign description for column in runtime.
|
void |
setColumnDescription(Table.Column column,
java.lang.String description) |
void |
setColumnHeaderVisible(boolean visible)
Set visibility for table header
|
void |
setColumnReorderingAllowed(boolean columnReorderingAllowed) |
void |
setColumnSortable(java.lang.String columnId,
boolean sortable) |
void |
setColumnSortable(Table.Column column,
boolean sortable) |
void |
setColumnWidth(java.lang.String columnId,
int width)
Set column width in runtime.
|
void |
setColumnWidth(Table.Column column,
int width) |
void |
setContentRepaintEnabled(boolean contentRepaintEnabled) |
void |
setContextMenuEnabled(boolean contextMenuEnabled) |
void |
setDatasource(CollectionDatasource datasource) |
void |
setDescription(java.lang.String description) |
void |
setEditable(boolean editable) |
void |
setEnterPressAction(Action action)
Assign action to be executed on Enter key press.
|
void |
setIconProvider(ListComponent.IconProvider iconProvider)
Set the row icon provider for the table.
|
void |
setId(java.lang.String id)
Set component ID
|
void |
setItemClickAction(Action action)
Assign action to be executed on double click inside a table row.
|
void |
setLookupSelectHandler(java.lang.Runnable selectHandler) |
void |
setMultiLineCells(boolean multiLineCells) |
void |
setMultiSelect(boolean multiselect) |
void |
setRequired(Table.Column column,
boolean required,
java.lang.String message) |
void |
setRowHeaderMode(Table.RowHeaderMode mode) |
void |
setRowHeaderWidth(int width)
Set width of row header column.
|
void |
setRowsCount(RowsCount rowsCount) |
void |
setSelected(java.util.Collection<E> items) |
void |
setSelected(E item) |
void |
setSettingsEnabled(boolean settingsEnabled) |
void |
setShowSelection(boolean showSelection)
Hide or show selection
|
void |
setShowTotalAggregation(boolean showAggregation) |
void |
setSortable(boolean sortable) |
void |
setStyleProvider(Table.StyleProvider<? super E> styleProvider)
Set the cell style provider for the table.
All style providers added before this call will be removed. |
void |
setTextSelectionEnabled(boolean value)
Enable or disable text selection in Table cells.
|
void |
setWidth(java.lang.String width)
Set component width in
Component.getWidthUnits() |
void |
showCustomPopup(Component popupComponent)
Show popup inside of Table, relative to last cell click event.
Call this method from Table.CellClickListener implementation. |
void |
showCustomPopupActions(java.util.List<Action> actions)
Show autocloseable popup view with actions, relative to last cell click event.
Call this method from Table.CellClickListener implementation.Autocloseable means that after any click on action popup will be closed. |
void |
sort(java.lang.String columnId,
Table.SortDirection direction)
Sorts the Table data for passed column id in the chosen sort direction.
|
void |
sortBy(java.lang.Object propertyId,
boolean ascending)
Sort the table by a column.
|
void |
updateEnabled() |
void |
usePresentations(boolean b) |
addAction, addAction, getAction, getActions, getActionsPermissions, removeAction, removeAction, removeAllActions
addStyleName, getAlignment, getCaption, getComponent, getDebugId, getFrame, getHeight, getHeightUnits, getIcon, getId, getParent, getStyleName, getTabIndex, getWidth, getWidthUnits, getXmlDescriptor, isComponentVisible, isEnabled, isEnabledItself, isParentEnabled, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setCaption, setContainer, setDebugId, setEnabled, setExpanded, setFrame, setHeight, setIcon, setParent, setParentEnabled, setResponsive, setStyleName, setTabIndex, setVisible, setXmlDescriptor, unwrap, unwrapComposition
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFrame, setFrame
addAction, addAction, getAction, getActionNN, getActions, removeAction, removeAction, removeAllActions
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidthAuto, setWidthFull, unwrap, unwrapComposition
isEditableWithParent
getCaption, setCaption
getIcon, setIcon
getTabIndex, isFocusable, setFocusable, setTabIndex
public void setWidth(java.lang.String width)
Component
Component.getWidthUnits()
setWidth
in interface Component
setWidth
in class DesktopAbstractComponent<C extends org.jdesktop.swingx.JXTable>
public void setLookupSelectHandler(java.lang.Runnable selectHandler)
setLookupSelectHandler
in interface LookupComponent
selectHandler
- handler that should be executed when a user select an item in the lookup screenpublic java.util.Collection getLookupSelectedItems()
getLookupSelectedItems
in interface LookupComponent
public javax.swing.JComponent getComposition()
getComposition
in interface Component.Wrapper
getComposition
in class DesktopAbstractComponent<C extends org.jdesktop.swingx.JXTable>
public java.util.List<Table.Column> getColumns()
getColumns
in interface Table<E extends Entity>
public Table.Column getColumn(java.lang.String id)
public void addColumn(Table.Column column)
public void removeColumn(Table.Column column)
removeColumn
in interface Table<E extends Entity>
public void setDatasource(CollectionDatasource datasource)
setDatasource
in interface Table<E extends Entity>
public boolean isContextMenuEnabled()
isContextMenuEnabled
in interface Table<E extends Entity>
public void setContextMenuEnabled(boolean contextMenuEnabled)
setContextMenuEnabled
in interface Table<E extends Entity>
public void setRequired(Table.Column column, boolean required, java.lang.String message)
setRequired
in interface Table<E extends Entity>
public void addValidator(Table.Column column, Field.Validator validator)
addValidator
in interface Table<E extends Entity>
public void addValidator(Field.Validator validator)
addValidator
in interface Table<E extends Entity>
public void setEnterPressAction(Action action)
Table
If such action is not set, the table responds to pressing Enter by trying to find and execute the following actions:
Table.setItemClickAction(Action)
shortcut
propertysetEnterPressAction
in interface Table<E extends Entity>
public Action getEnterPressAction()
getEnterPressAction
in interface Table<E extends Entity>
public void setItemClickAction(Action action)
Table
If such action is not set, the table responds to double click by trying to find and execute the following actions:
shortcut
propertysetItemClickAction
in interface Table<E extends Entity>
public Action getItemClickAction()
getItemClickAction
in interface Table<E extends Entity>
public java.util.List<Table.Column> getNotCollapsedColumns()
getNotCollapsedColumns
in interface Table<E extends Entity>
public void setSortable(boolean sortable)
setSortable
in interface Table<E extends Entity>
public boolean isSortable()
isSortable
in interface Table<E extends Entity>
public void setColumnReorderingAllowed(boolean columnReorderingAllowed)
setColumnReorderingAllowed
in interface Table<E extends Entity>
public boolean getColumnReorderingAllowed()
getColumnReorderingAllowed
in interface Table<E extends Entity>
public void setColumnControlVisible(boolean columnCollapsingAllowed)
setColumnControlVisible
in interface Table<E extends Entity>
public boolean getColumnControlVisible()
getColumnControlVisible
in interface Table<E extends Entity>
public void setAggregatable(boolean aggregatable)
setAggregatable
in interface Table<E extends Entity>
public java.util.Map<java.lang.Object,java.lang.Object> getAggregationResults()
getAggregationResults
in interface Table<E extends Entity>
public boolean isAggregatable()
isAggregatable
in interface Table<E extends Entity>
public void setAggregationStyle(Table.AggregationStyle aggregationStyle)
setAggregationStyle
in interface Table<E extends Entity>
public Table.AggregationStyle getAggregationStyle()
getAggregationStyle
in interface Table<E extends Entity>
public void setShowTotalAggregation(boolean showAggregation)
setShowTotalAggregation
in interface Table<E extends Entity>
public boolean isShowTotalAggregation()
isShowTotalAggregation
in interface Table<E extends Entity>
public void sortBy(java.lang.Object propertyId, boolean ascending)
Table
table.sortBy(table.getDatasource().getMetaClass().getPropertyPath("name"), ascending);
public void sort(java.lang.String columnId, Table.SortDirection direction)
Table
@Nullable public Table.SortInfo getSortInfo()
getSortInfo
in interface Table<E extends Entity>
public RowsCount getRowsCount()
getRowsCount
in interface Component.HasRowsCount
public void setRowsCount(RowsCount rowsCount)
setRowsCount
in interface Component.HasRowsCount
public void setMultiLineCells(boolean multiLineCells)
setMultiLineCells
in interface Table<E extends Entity>
public boolean isMultiLineCells()
isMultiLineCells
in interface Table<E extends Entity>
public void setRowHeaderMode(Table.RowHeaderMode mode)
setRowHeaderMode
in interface Table<E extends Entity>
public void setStyleProvider(Table.StyleProvider<? super E> styleProvider)
Table
setStyleProvider
in interface Table<E extends Entity>
public void addStyleProvider(Table.StyleProvider<? super E> styleProvider)
Table
addStyleProvider
in interface Table<E extends Entity>
public void removeStyleProvider(Table.StyleProvider<? super E> styleProvider)
Table
removeStyleProvider
in interface Table<E extends Entity>
public void setIconProvider(ListComponent.IconProvider iconProvider)
Table
setIconProvider
in interface Table<E extends Entity>
Table.setRowHeaderWidth(int)
public int getRowHeaderWidth()
getRowHeaderWidth
in interface Table<E extends Entity>
public void setRowHeaderWidth(int width)
Table
IconProvider
is specified.setRowHeaderWidth
in interface Table<E extends Entity>
width
- width of row header column in pxpublic Datasource getItemDatasource(Entity item)
Table
modelsTable.addGeneratedColumn(
"numberOfSeats",
new Table.ColumnGenerator<Model>() {
public Component generateCell(Model entity) {
LookupField lookupField = componentsFactory.createComponent(LookupField.NAME);
lookupField.setDatasource(modelsTable.getItemDatasource(entity), "numberOfSeats");
lookupField.setOptionsList(Arrays.asList(2, 4, 5));
lookupField.setWidth("100px");
return lookupField;
}
}
);
getItemDatasource
in interface Table<E extends Entity>
item
- entity itempublic void addGeneratedColumn(java.lang.String columnId, Table.ColumnGenerator<? super E> generator)
Table
addGeneratedColumn
in interface Table<E extends Entity>
columnId
- column identifier as defined in XML descriptor. May or may not correspond to an entity property.generator
- column generator instancepublic void addGeneratedColumn(java.lang.String columnId, Table.ColumnGenerator<? super E> generator, java.lang.Class<? extends Component> componentClass)
Table
addGeneratedColumn
in interface Table<E extends Entity>
columnId
- column identifier as defined in XML descriptor. May or may not correspond to an entity property.generator
- column generator instancecomponentClass
- class of components that generator will providepublic void removeGeneratedColumn(java.lang.String columnId)
removeGeneratedColumn
in interface Table<E extends Entity>
public void addAggregationProperty(java.lang.String columnId, AggregationInfo.Type type)
addAggregationProperty
in interface Table<E extends Entity>
public void addAggregationProperty(Table.Column columnId, AggregationInfo.Type type)
addAggregationProperty
in interface Table<E extends Entity>
public void removeAggregationProperty(java.lang.String columnId)
removeAggregationProperty
in interface Table<E extends Entity>
public void setColumnCaption(java.lang.String columnId, java.lang.String caption)
Table
setColumnCaption
in interface Table<E extends Entity>
public void setColumnCaption(Table.Column column, java.lang.String caption)
setColumnCaption
in interface Table<E extends Entity>
public void setColumnDescription(java.lang.String columnId, java.lang.String description)
Table
setColumnDescription
in interface Table<E extends Entity>
public void setColumnDescription(Table.Column column, java.lang.String description)
setColumnDescription
in interface Table<E extends Entity>
public void setTextSelectionEnabled(boolean value)
Table
setTextSelectionEnabled
in interface Table<E extends Entity>
public boolean isTextSelectionEnabled()
isTextSelectionEnabled
in interface Table<E extends Entity>
public void setColumnCollapsed(java.lang.String columnId, boolean collapsed)
Table
setColumnCollapsed
in interface Table<E extends Entity>
public void setColumnCollapsed(Table.Column column, boolean collapsed)
setColumnCollapsed
in interface Table<E extends Entity>
public void setColumnAlignment(Table.Column column, Table.ColumnAlignment alignment)
setColumnAlignment
in interface Table<E extends Entity>
public void setColumnAlignment(java.lang.String columnId, Table.ColumnAlignment alignment)
setColumnAlignment
in interface Table<E extends Entity>
public void setColumnWidth(Table.Column column, int width)
setColumnWidth
in interface Table<E extends Entity>
public void setColumnWidth(java.lang.String columnId, int width)
Table
setColumnWidth
in interface Table<E extends Entity>
public void addPrintable(java.lang.String columnId, Table.Printable<? super E,?> printable)
Table
Table.Printable
representation for column. addPrintable
in interface Table<E extends Entity>
columnId
- column idprintable
- printable representationpublic void removePrintable(java.lang.String columnId)
Table
Table.Printable
representation of column. removePrintable
in interface Table<E extends Entity>
columnId
- column id@Nullable public Table.Printable getPrintable(Table.Column column)
Table
Table.Printable
representation for column.getPrintable
in interface Table<E extends Entity>
column
- table column@Nullable public Table.Printable getPrintable(java.lang.String columnId)
Table
Table.Printable
representation for column.getPrintable
in interface Table<E extends Entity>
columnId
- column idpublic void repaint()
public boolean isEditable()
isEditable
in interface Component.Editable
public void setEditable(boolean editable)
setEditable
in interface Component.Editable
public void updateEnabled()
public ButtonsPanel getButtonsPanel()
getButtonsPanel
in interface Component.HasButtonsPanel
public void setButtonsPanel(ButtonsPanel panel)
setButtonsPanel
in interface Component.HasButtonsPanel
public void usePresentations(boolean b)
usePresentations
in interface Component.HasPresentations
public boolean isUsePresentations()
isUsePresentations
in interface Component.HasPresentations
public void resetPresentation()
resetPresentation
in interface Component.HasPresentations
public void loadPresentations()
loadPresentations
in interface Component.HasPresentations
public Presentations getPresentations()
getPresentations
in interface Component.HasPresentations
public void applyPresentation(java.lang.Object id)
applyPresentation
in interface Component.HasPresentations
public void applyPresentationAsDefault(java.lang.Object id)
applyPresentationAsDefault
in interface Component.HasPresentations
public java.lang.Object getDefaultPresentationId()
getDefaultPresentationId
in interface Component.HasPresentations
public void applySettings(org.dom4j.Element element)
applySettings
in interface Component.HasSettings
public boolean saveSettings(org.dom4j.Element element)
saveSettings
in interface Component.HasSettings
public boolean isSettingsEnabled()
isSettingsEnabled
in interface Component.HasSettings
public void setSettingsEnabled(boolean settingsEnabled)
setSettingsEnabled
in interface Component.HasSettings
public boolean isMultiSelect()
isMultiSelect
in interface ListComponent<E extends Entity>
public void setMultiSelect(boolean multiselect)
setMultiSelect
in interface Table<E extends Entity>
public E getSingleSelected()
getSingleSelected
in interface ListComponent<E extends Entity>
public java.util.Set<E> getSelected()
getSelected
in interface ListComponent<E extends Entity>
public void setSelected(E item)
setSelected
in interface ListComponent<E extends Entity>
public void setSelected(java.util.Collection<E> items)
setSelected
in interface ListComponent<E extends Entity>
public CollectionDatasource getDatasource()
getDatasource
in interface ListComponent<E extends Entity>
public int getPreferredRowHeight(int rowIndex)
rowIndex
- row indexpublic void packRows()
public void addColumnCollapsedListener(Table.ColumnCollapseListener columnCollapsedListener)
addColumnCollapsedListener
in interface Table<E extends Entity>
public void removeColumnCollapseListener(Table.ColumnCollapseListener columnCollapseListener)
removeColumnCollapseListener
in interface Table<E extends Entity>
public void setClickListener(java.lang.String columnId, Table.CellClickListener clickListener)
Table
setClickListener
in interface Table<E extends Entity>
columnId
- id of columnclickListener
- click listenerpublic void removeClickListener(java.lang.String columnId)
Table
removeClickListener
in interface Table<E extends Entity>
columnId
- id of columnpublic AnyTableModelAdapter getTableModel()
public boolean isContentRepaintEnabled()
public void setContentRepaintEnabled(boolean contentRepaintEnabled)
public void setId(java.lang.String id)
Component
setId
in interface Component
setId
in class DesktopAbstractComponent<C extends org.jdesktop.swingx.JXTable>
public void assignAutoDebugId()
assignAutoDebugId
in class DesktopAbstractComponent<C extends org.jdesktop.swingx.JXTable>
public void showCustomPopup(Component popupComponent)
Table
Table.CellClickListener
implementation.showCustomPopup
in interface Table<E extends Entity>
popupComponent
- popup contentpublic void showCustomPopupActions(java.util.List<Action> actions)
Table
Table.CellClickListener
implementation.showCustomPopupActions
in interface Table<E extends Entity>
actions
- actionspublic void setColumnSortable(java.lang.String columnId, boolean sortable)
setColumnSortable
in interface Table<E extends Entity>
public boolean getColumnSortable(java.lang.String columnId)
getColumnSortable
in interface Table<E extends Entity>
public void setColumnSortable(Table.Column column, boolean sortable)
setColumnSortable
in interface Table<E extends Entity>
public boolean getColumnSortable(Table.Column column)
getColumnSortable
in interface Table<E extends Entity>
public void setColumnHeaderVisible(boolean visible)
Table
setColumnHeaderVisible
in interface Table<E extends Entity>
public boolean isColumnHeaderVisible()
isColumnHeaderVisible
in interface Table<E extends Entity>
public void setShowSelection(boolean showSelection)
Table
setShowSelection
in interface Table<E extends Entity>
public boolean isShowSelection()
isShowSelection
in interface Table<E extends Entity>
public void requestFocus(E itemId, java.lang.String columnId)
Table
requestFocus
in interface Table<E extends Entity>
itemId
- entitycolumnId
- column idpublic void scrollTo(E item)
Table
public java.lang.String getDescription()
getDescription
in interface Component.HasCaption
public void setDescription(java.lang.String description)
setDescription
in interface Component.HasCaption
public void addLookupValueChangeListener(LookupComponent.LookupSelectionChangeListener listener)
addLookupValueChangeListener
in interface LookupComponent.LookupSelectionChangeNotifier
public void removeLookupValueChangeListener(LookupComponent.LookupSelectionChangeListener listener)
removeLookupValueChangeListener
in interface LookupComponent.LookupSelectionChangeNotifier