public class ListViewHelper
extends java.lang.Object
UIListView| Modifier and Type | Class and Description |
|---|---|
static interface |
ListViewHelper.ListenerHandler
Responsible for registering/unregistering listeners used by a list view.
|
static class |
ListViewHelper.ListViewInfo
Holds list view creation information.
|
| Constructor and Description |
|---|
ListViewHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cellChanged(UIListView view,
int colIndex,
int rowIndex,
java.lang.Object eventSource) |
static ListViewConfiguration |
getListViewConfiguration(ObjectTemplate objectTemplate,
java.lang.String contextCode) |
static boolean |
isForceFireEvent() |
static <E extends TypedObject> |
loadListView(UIListView listView,
java.lang.String contextCode,
ObjectTemplate oldRootType,
ObjectTemplate newRootType,
MutableTableModel tableModel,
DefaultListModel<E> listModel,
CockpitListComponent<E> cockpitListComp,
ListViewHelper.ListenerHandler listenerHandler,
DragAndDropContext dndCtx)
Convenience method for loading a list view component.
|
static <E extends TypedObject> |
loadListView(UIListView listView,
java.lang.String contextCode,
ObjectTemplate oldRootType,
ObjectTemplate newRootType,
MutableTableModel tableModel,
DefaultListModel<E> listModel,
CockpitListComponent<E> cockpitListComp,
ListViewHelper.ListenerHandler listenerHandler,
DragAndDropContext dndCtx,
ListViewConfiguration listViewConf)
Convenience method for loading a list view component.
|
public static void cellChanged(UIListView view, int colIndex, int rowIndex, java.lang.Object eventSource) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic static <E extends TypedObject> ListViewHelper.ListViewInfo loadListView(UIListView listView, java.lang.String contextCode, ObjectTemplate oldRootType, ObjectTemplate newRootType, MutableTableModel tableModel, DefaultListModel<E> listModel, CockpitListComponent<E> cockpitListComp, ListViewHelper.ListenerHandler listenerHandler, DragAndDropContext dndCtx) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
ListViewHelper.ListenerHandler listenerHandler will only be invoked if a new
UIListView instance has been created or if a new UI configuration was loaded.E - type of elements which the list view containslistView - the current list view instancecontextCode - cockpit UI configuration context codeoldRootType - last root typenewRootType - current root typetableModel - the table model (must have a valid list component model set)listModel - the list model which actually holds the items to be displayed in the list view - can be
nullcockpitListComp - the CockpitListComponent containing the actual itemslistenerHandler - the ListViewHelper.ListenerHandler responsible for registering/unregistering listeners, controllers etcdndCtx - the drag and drop contextListViewHelper.ListViewInfo instance containing the resulting UIListView instance and some additional
informationjava.lang.IllegalArgumentException - if either contextCode, newRootType, itemLoader or
tableModel (or its internal list component model) is nulljava.lang.IllegalStateException - if no UI component configuration could be loaded for the type newRootType and the context
code contextCodeListViewHelper.ListenerHandlerpublic static <E extends TypedObject> ListViewHelper.ListViewInfo loadListView(UIListView listView, java.lang.String contextCode, ObjectTemplate oldRootType, ObjectTemplate newRootType, MutableTableModel tableModel, DefaultListModel<E> listModel, CockpitListComponent<E> cockpitListComp, ListViewHelper.ListenerHandler listenerHandler, DragAndDropContext dndCtx, ListViewConfiguration listViewConf) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
ListViewHelper.ListenerHandler listenerHandler will only be invoked if a new
UIListView instance has been created or if a new UI configuration was loaded.E - type of elements which the list view containslistView - the current list view instancecontextCode - cockpit UI configuration context codeoldRootType - last root typenewRootType - current root typetableModel - the table model (must have a valid list component model set)listModel - the list model which actually holds the items to be displayed in the list view - can be
nullcockpitListComp - the CockpitListComponent containing the actual itemslistenerHandler - the ListViewHelper.ListenerHandler responsible for registering/unregistering listeners, controllers etcdndCtx - the drag and drop contextlistViewConf - the alternative configuration of list view, if null then default list view is created according to rest
of given parametersListViewHelper.ListViewInfo instance containing the resulting UIListView instance and some additional
informationjava.lang.IllegalArgumentException - if either contextCode, newRootType, itemLoader or
tableModel (or its internal list component model) is nulljava.lang.IllegalStateException - if no UI component configuration could be loaded for the type newRootType and the context
code contextCodeListViewHelper.ListenerHandlerpublic static boolean isForceFireEvent()
public static ListViewConfiguration getListViewConfiguration(ObjectTemplate objectTemplate, java.lang.String contextCode)
Copyright © 2018 SAP SE. All Rights Reserved.