public class ListView extends AbstractListView implements EditableComponent
AbstractItemView.LoadImage| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACTIVATED_ROW_SCLASS
The Constant ACTIVATED_ROW_SCLASS.
|
protected static String |
ACTIVATED_ROW_SCLASS_COMP
The Constant ACTIVATED_ROW_SCLASS_COMP.
|
protected String |
activatedRowSclass |
protected CellRenderer |
cellRenderer
The cell renderer.
|
protected static String |
COL_DRAG_N_DROP
The Constant COL_DRAG_N_DROP.
|
protected static String |
COLUMN_CONTENT_FIXED_SCLASS
The Constant COLUMN_CONTENT_FIXED_SCLASS.
|
protected static String |
COLUMN_CONTENT_SCLASS
The Constant COLUMN_CONTENT_SCLASS.
|
protected static String |
COLUMN_HEADER_ASC_SCLASS
The Constant COLUMN_HEADER_ASC_SCLASS.
|
protected static String |
COLUMN_HEADER_DESC_SCLASS
The Constant COLUMN_HEADER_DESC_SCLASS.
|
protected static String |
COLUMN_HEADER_SCLASS
The Constant COLUMN_HEADER_SCLASS.
|
protected static String |
COLUMN_SCLASS
The Constant COLUMN_SCLASS.
|
protected static String |
DEFAULT_CELL_SCLASS
The Constant DEFAULT_CELL_SCLASS.
|
protected static String |
DEFAULT_CELL_SCLASS_COMP
The Constant DEFAULT_CELL_SCLASS_COMP.
|
protected static String |
DEFAULT_SCLASS
The Constant DEFAULT_SCLASS.
|
protected String |
defaultCellSclass |
protected static String |
EDITABLE_CELL_SCLASS
The Constant EDITABLE_CELL_SCLASS.
|
protected static String |
EDITABLE_CELL_SCLASS_COMP
The Constant EDITABLE_CELL_SCLASS_COMP.
|
protected String |
editableCellSclass
The Constant EDITABLE_CELL_SCLASS.
|
protected boolean |
editing
The editing.
|
protected int |
editingColumn
The editing column.
|
protected int |
editingRow
The editing row.
|
protected Checkbox |
focusComponent
The focus component.
|
protected boolean |
initialized
The initialized.
|
protected static String |
MAIN_DIV_SCLASS
The Constant MAIN_DIV_SCLASS.
|
protected TableModel |
model
The model.
|
protected static String |
PADDING_SCLASS
The Constant PADDING_SCLASS.
|
protected static String |
SELECTED_CELL_SCLASS
The Constant SELECTED_CELL_SCLASS.
|
protected static String |
SELECTED_CELL_SCLASS_COMP
The Constant SELECTED_CELL_SCLASS_COMP.
|
protected static String |
SELECTED_ROW_SCLASS
The Constant SELECTED_ROW_SCLASS.
|
protected static String |
SELECTED_ROW_SCLASS_COMP
The Constant SELECTED_ROW_SCLASS.
|
protected String |
selectedCellSclass |
protected String |
selectedRowSclass |
protected boolean |
showColumnHeaders
The show column headers.
|
protected static String |
SPLITTER_SCLASS
The Constant SPLITTER_SCLASS.
|
protected static String |
VERTICAL_SCROLL_DIV_SCLASS
The Constant VERTICAL_SCROLL_DIV_SCLASS.
|
protected static String |
VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS
The Constant VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS.
|
protected static String |
VERTICAL_SCROLL_DN_BTN_SCLASS
The Constant VERTICAL_SCROLL_DN_BTN_SCLASS.
|
protected static String |
VERTICAL_SCROLL_SCLASS
The Constant VERTICAL_SCROLL_SCLASS.
|
protected static String |
VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS
The Constant VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS.
|
protected static String |
VERTICAL_SCROLL_UP_BTN_SCLASS
The Constant VERTICAL_SCROLL_UP_BTN_SCLASS.
|
protected static String |
WRAPPING_BOX
The Constant WRAPPING_BOX.
|
listenersloadingProgressContainer, ON_CONTINUE_LOADING| Constructor and Description |
|---|
ListView()
Instantiates a new list view.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStopEditListener(XulElement headerDiv) |
protected Menupopup |
adjustHeaderMenu(Menupopup popup) |
protected void |
appendScrollIntoViewComponent(HtmlBasedComponent cell)
Append scroll into view component.
|
protected boolean |
assureModelLoaded()
Assure model loaded.
|
protected Menupopup |
createHeaderMenu(ColumnDescriptor descriptor,
int columnIndex) |
protected Menupopup |
createHeaderMenu(ColumnLayoutComponent columnLayoutComponent) |
protected Component |
createListViewBackgroundColumn()
Creates the list view background column.
|
protected void |
doUserEvent(Object[] data)
Do user event.
|
void |
editCellAt(int columnIndex,
int rowIndex) |
void |
editCellAt(int columnIndex,
int rowIndex,
Object creationValue)
Edits the cell at.
|
void |
focusFocusComponent()
Focus focus component.
|
protected Collection<Integer> |
getActivationIndexes()
Gets the activation indexes.
|
protected CellRenderer |
getCellRenderer()
Gets the cell renderer.
|
ListViewMenuPopupBuilder |
getMenuPopupBuilder()
Gets the menu popup builder.
|
TableModel |
getModel() |
protected ModelService |
getModelService() |
protected CockpitValidationService |
getValidationService() |
Object |
getValueAt(int columnIndex,
int rowIndex) |
protected ValueService |
getValueService() |
boolean |
initialize()
Initializes this view component.
|
boolean |
isDoubleClickDisabled() |
boolean |
isEditing() |
boolean |
isEditMode() |
protected void |
removeScrollIntoViewComponent(HtmlBasedComponent cell)
Removes the scroll into view component.
|
void |
removeSelectedItems() |
Div |
renderColumnContentDiv()
Render column content div.
|
protected void |
rollback(List<Object> initialEditValueList,
int columnIndex) |
void |
setDoubleClickDisabled(boolean value) |
void |
setEditing(boolean editing) |
void |
setEditMode(boolean editMode) |
void |
setModel(TableModel model) |
void |
setShowColumnHeaders(boolean showColumnHeaders) |
void |
setValueAt(int columnIndex,
int rowIndex,
Object data) |
void |
stopEditing() |
boolean |
update()
Updates this view component completely.
|
void |
updateActivation()
Called whenever the activation needs to be updated i.e.
|
void |
updateActiveItems()
Called whenever the currently active items need to be re-rendered.
|
void |
updateCell(int columnIndex,
int rowIndex)
Called whenever a cell's content needs to be re-rendered.
|
protected void |
updateCellState(int columnIndex,
int rowIndex)
Update cell state.
|
protected void |
updateCellState(int columnIndex,
int rowIndex,
HtmlBasedComponent cell)
Update cell state.
|
void |
updateColumns()
Called whenever a column's visibility has changed.
|
void |
updateColumns(Integer colIndex)
Called whenever a column's visibility has changed (and column is not shown as last column).
|
int |
updateItem(TypedObject item,
Set<PropertyDescriptor> modifiedProperties)
try to update rows containing the specified items
|
void |
updateItems()
Called whenever the items have changed in some way e.g.
|
void |
updateRow(int row)
Called whenever a row needs to be re-rendered.
|
protected void |
updateRowState(Integer rowIndex)
Update row state.
|
void |
updateSelection()
Called whenever the selection is changed in some way and the view needs to update itself accordingly.
|
void |
updateVisibleColumns()
Called whenever the visible columns have changed in some way i.e.
|
void |
validate(Set<String> forceWritePks,
PropertyDescriptor propertyDescriptor,
UIEditor editor,
int rowIndex,
int columnIndex,
List<Object> initialEditValueList,
HtmlBasedComponent parent) |
addListViewListener, fireActivate, fireBlacklist, fireChangeCellValue, fireChangeSelection, fireChangeSelection, fireDroped, fireHideColumn, fireMarkAllAsSelected, fireMove, fireMoveColumn, fireMultiEdit, fireOpenExternal, firePageRequest, fireRemove, fireShowColumn, fireSortColumn, removeListViewListenerdelayLazyload, getDDContext, getInitialPackageSize, getLazyloadPackageSize, isSimpleSelectionMode, setDDContext, setSimpleSelectionMode, setupLazyLoadingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDDContextprotected static final String COLUMN_SCLASS
protected static final String COLUMN_HEADER_SCLASS
protected static final String COLUMN_HEADER_ASC_SCLASS
protected static final String COLUMN_HEADER_DESC_SCLASS
protected static final String DEFAULT_SCLASS
protected static final String COLUMN_CONTENT_SCLASS
protected static final String COLUMN_CONTENT_FIXED_SCLASS
protected static final String SPLITTER_SCLASS
protected static final String PADDING_SCLASS
protected static final String MAIN_DIV_SCLASS
protected static final String DEFAULT_CELL_SCLASS
protected static final String DEFAULT_CELL_SCLASS_COMP
protected String defaultCellSclass
protected static final String EDITABLE_CELL_SCLASS
protected static final String EDITABLE_CELL_SCLASS_COMP
protected String editableCellSclass
protected static final String SELECTED_CELL_SCLASS
protected static final String SELECTED_CELL_SCLASS_COMP
protected String selectedCellSclass
protected static final String SELECTED_ROW_SCLASS_COMP
protected static final String SELECTED_ROW_SCLASS
protected String selectedRowSclass
protected static final String ACTIVATED_ROW_SCLASS
protected static final String ACTIVATED_ROW_SCLASS_COMP
protected String activatedRowSclass
protected static final String VERTICAL_SCROLL_SCLASS
protected static final String VERTICAL_SCROLL_DIV_SCLASS
protected static final String COL_DRAG_N_DROP
protected static final String WRAPPING_BOX
protected static final String VERTICAL_SCROLL_UP_BTN_SCLASS
protected static final String VERTICAL_SCROLL_DN_BTN_SCLASS
protected static final String VERTICAL_SCROLL_DN_BTN_DISABLED_SCLASS
protected static final String VERTICAL_SCROLL_UP_BTN_DISABLED_SCLASS
protected boolean showColumnHeaders
protected boolean editing
protected int editingColumn
protected int editingRow
protected boolean initialized
protected TableModel model
protected CellRenderer cellRenderer
protected Checkbox focusComponent
public void editCellAt(int columnIndex,
int rowIndex)
editCellAt in interface UIListViewpublic void editCellAt(int columnIndex,
int rowIndex,
Object creationValue)
columnIndex - the column indexrowIndex - the row indexcreationValue - the creation valuepublic void validate(Set<String> forceWritePks, PropertyDescriptor propertyDescriptor, UIEditor editor, int rowIndex, int columnIndex, List<Object> initialEditValueList, HtmlBasedComponent parent)
public void focusFocusComponent()
public ListViewMenuPopupBuilder getMenuPopupBuilder()
public TableModel getModel()
getModel in interface UIListViewpublic Object getValueAt(int columnIndex, int rowIndex)
getValueAt in interface UIListViewpublic boolean initialize()
UIViewComponentinitialize in interface UIViewComponenttrue if initialize was successful, false otherwisepublic boolean isEditing()
isEditing in interface EditableComponentpublic Div renderColumnContentDiv()
public void setEditing(boolean editing)
editing - the editing to setpublic void setModel(TableModel model)
setModel in interface UIListViewpublic void setShowColumnHeaders(boolean showColumnHeaders)
setShowColumnHeaders in interface UIListViewpublic void setValueAt(int columnIndex,
int rowIndex,
Object data)
setValueAt in interface UIListViewpublic void stopEditing()
stopEditing in interface EditableComponentpublic boolean update()
UIViewComponentupdate in interface UIViewComponenttrue if update was successful, false otherwisepublic void updateActivation()
UIItemViewUIItemView.updateActiveItems().updateActivation in interface UIItemViewpublic void updateActiveItems()
UIItemViewUIItemView.updateActivation().updateActiveItems in interface UIItemViewUIItemView.updateActivation()public void updateCell(int columnIndex,
int rowIndex)
UIListViewupdateCell in interface UIListViewcolumnIndex - zero based column position index of the cell to re-renderrowIndex - zero based row position index of the cell to re-renderpublic void updateColumns()
UIListViewupdateColumns in interface UIListViewpublic void updateColumns(Integer colIndex)
UIListViewupdateColumns in interface UIListViewpublic int updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties)
UIItemViewupdateItem in interface UIItemViewitem - the itemmodifiedProperties - modified propertiespublic void updateItems()
UIItemViewupdateItems in interface UIItemViewpublic void updateRow(int row)
UIListViewupdateRow in interface UIListViewrow - zero based position index of the row to re-renderpublic void updateSelection()
UIItemViewupdateSelection in interface UIItemViewpublic void updateVisibleColumns()
UIListViewupdateVisibleColumns in interface UIListViewprotected void appendScrollIntoViewComponent(HtmlBasedComponent cell)
cell - the cellprotected boolean assureModelLoaded()
protected Menupopup createHeaderMenu(ColumnLayoutComponent columnLayoutComponent)
protected Menupopup createHeaderMenu(ColumnDescriptor descriptor, int columnIndex)
protected Menupopup adjustHeaderMenu(Menupopup popup)
protected Component createListViewBackgroundColumn()
protected void doUserEvent(Object[] data)
data - the dataprotected Collection<Integer> getActivationIndexes()
protected CellRenderer getCellRenderer()
protected void removeScrollIntoViewComponent(HtmlBasedComponent cell)
cell - the cellprotected void updateCellState(int columnIndex,
int rowIndex)
columnIndex - the column indexrowIndex - the row indexprotected void updateCellState(int columnIndex,
int rowIndex,
HtmlBasedComponent cell)
columnIndex - the column indexrowIndex - the row indexcell - the cellprotected void updateRowState(Integer rowIndex)
rowIndex - the row indexpublic void setDoubleClickDisabled(boolean value)
public boolean isDoubleClickDisabled()
public void removeSelectedItems()
protected void addStopEditListener(XulElement headerDiv)
public void setEditMode(boolean editMode)
public boolean isEditMode()
protected CockpitValidationService getValidationService()
protected ModelService getModelService()
protected ValueService getValueService()
Copyright © 2017 SAP SE. All Rights Reserved.