public class ContextAreaBrowserComponent extends AbstractContextBrowserComponent implements DesktopRemovalAwareComponent
| Modifier and Type | Class and Description |
|---|---|
protected class |
ContextAreaBrowserComponent.MyListenerHandler |
protected class |
ContextAreaBrowserComponent.MyModelWrapper |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
BROWSERAREA_SHOW_MAX_L10NKEY |
protected boolean |
cleanContextHeader |
protected ColumnModelListener |
columnModelListener
Listener that keeps track of visibility changes of columns and persists those changes.
|
protected static java.lang.String |
CONTEXT_AREA_MAIN_DIV_SCLASS |
protected HtmlBasedComponent |
contextArea |
protected Div |
contextAreaMainDiv |
protected Label |
contextHeader |
protected DefaultListModel<TypedObject> |
contextModel |
protected static java.lang.String |
EMPTY_MESSAGE_I3 |
protected EventListener |
gridContextController |
protected java.lang.String |
headerString |
protected boolean |
inlineCreationEnabled |
protected java.lang.String |
internalContextViewMode |
protected ObjectTemplate |
lastContextType |
protected static java.lang.String |
LIST_VIEW_CONFIG_CODE |
protected UIListView |
listView |
protected LoginService |
loginService |
protected Div |
multiSelectActionArea |
protected Combobox |
pageSizeCombo |
protected Paging |
paging |
protected TypedObject |
previouslyActiveItem |
protected SystemService |
systemService |
protected ContextAreaTableController |
tableController |
protected Div |
toolbarDiv |
protected TypeService |
typeService |
protected UIAccessRightService |
uiAccessRightService |
protected UIConfigurationService |
uiConfigurationService |
ADV_QUERY_BTN_ACTIVE_IMG, ADV_QUERY_BTN_IMG, BROWSER_TOOLBAR_SCLASS, CLOSE_BTN_IMG, CONTENT_BROWSER_GB_SCLASS, CONTENT_BROWSER_STICKY_GB_SCLASS, DUPLICATE_BTN_IMG, initialized, MAIN_AREA_BL_SCLASS, MINIMIZE_BTN_IMG, SAVE_QUERY_BTN_IMG, SEARCH_MAGNIFIER_BTN_IMG, SPLIT_ACTIVE_BTN_IMG, SPLIT_INACTIVE_BTN_IMG| Constructor and Description |
|---|
ContextAreaBrowserComponent(BrowserModel model,
AbstractContentBrowser contentBrowser) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup() |
protected Toolbarbutton |
createCloseButton(java.lang.String closeBtnImg) |
protected HtmlBasedComponent |
createContextArea() |
protected Groupbox |
createContextGroupbox() |
protected java.lang.String |
createContextHeader() |
protected Div |
createContextMainDiv() |
protected TableModelListener |
createContextTableModelListener() |
protected ListViewConfiguration |
createMultiTypeListViewConfiguration() |
void |
desktopRemoved(Desktop desktop) |
void |
detach() |
protected ColumnModelListener |
getColumnModelListener()
A columnModelListener to keep track of visibility changes of the ListModel columns.
|
protected DefaultListModel<TypedObject> |
getContextListModel() |
protected ObjectTemplate |
getContextResultType() |
protected MutableTableModel |
getContextTableModel() |
EditorFactory |
getEditorFactory() |
protected java.util.Collection<HtmlBasedComponent> |
getGroupboxComponents() |
protected java.util.Collection<HtmlBasedComponent> |
getHeaderComponents() |
protected MutableListModel |
getListComponentModel() |
protected ListViewHelper.ListenerHandler |
getListenerHandler() |
protected ListViewConfiguration |
getListViewConfiguration(ObjectTemplate objectTemplate,
java.lang.String code) |
protected LoginService |
getLoginService() |
AdvancedBrowserModel |
getModel() |
protected AbstractPageableBrowserModel |
getPageableBrowserModelIfPresent() |
protected java.util.Set<PropertyDescriptor> |
getRequiredPropertyDescriptors(ObjectTemplate template) |
protected SystemService |
getSystemService() |
protected TypeService |
getTypeService() |
protected UIAccessRightService |
getUIAccessRightService() |
protected UIConfigurationService |
getUIConfigurationService() |
protected ObjectValueContainer |
getValueContainer(ObjectTemplate template) |
boolean |
initialize()
Initializes this browser component i.e.
|
protected boolean |
isContextPagingEnabled(AbstractPageableBrowserModel browserModel) |
protected UIListView |
loadListView() |
protected ListViewConfiguration |
loadListViewConfig()
load the list view configuration
|
void |
resize()
Notifies this browser component that it should resize itself if possible, since the view state might require it.
|
void |
setActiveItem(TypedObject activeItem)
Sets the active item of this browser component to
activeItem. |
protected void |
setContextTableModel(MutableTableModel tableModel) |
void |
setParent(Component parent) |
protected void |
showAddItemPopup() |
protected void |
showAddItemRow() |
protected void |
storeListViewConfiguration() |
boolean |
update()
Updates this browser component i.e.
|
boolean |
update(boolean cleanContextHeader)
Updates this browser component i.e.
|
void |
updateActiveItems()
Re-renders the currently active item(s).
|
protected void |
updateContextItems() |
void |
updateItem(TypedObject item,
java.util.Set<PropertyDescriptor> modifiedProperties)
Re-renders the item.
|
protected void |
updateMultiSelectAction(ListViewAction.Context context,
ListViewAction action) |
protected void |
updateMultiSelectActionArea() |
protected void |
updatePaging() |
void |
updateSelectedItems()
Re-renders the currently selected item(s).
|
getContentBrowser, setModel, updateItemprotected static final java.lang.String CONTEXT_AREA_MAIN_DIV_SCLASS
protected static final java.lang.String EMPTY_MESSAGE_I3
protected static final java.lang.String LIST_VIEW_CONFIG_CODE
protected static final java.lang.String BROWSERAREA_SHOW_MAX_L10NKEY
protected transient UIListView listView
protected transient HtmlBasedComponent contextArea
protected java.lang.String internalContextViewMode
protected final DefaultListModel<TypedObject> contextModel
protected EventListener gridContextController
protected transient Div contextAreaMainDiv
protected UIConfigurationService uiConfigurationService
protected TypeService typeService
protected UIAccessRightService uiAccessRightService
protected ContextAreaTableController tableController
protected ObjectTemplate lastContextType
protected LoginService loginService
protected Label contextHeader
protected boolean cleanContextHeader
protected SystemService systemService
protected boolean inlineCreationEnabled
protected Div toolbarDiv
protected Div multiSelectActionArea
protected Paging paging
protected Combobox pageSizeCombo
protected TypedObject previouslyActiveItem
protected java.lang.String headerString
protected ColumnModelListener columnModelListener
public ContextAreaBrowserComponent(BrowserModel model, AbstractContentBrowser contentBrowser)
public boolean initialize()
AbstractBrowserComponentinitialized flag to true after this
method has been called.
Note: This method is automatically called when a model or browser controller is set.initialize in interface CockpitComponentinitialize in class AbstractBrowserComponenttrue if initialization was successful, false otherwiseAbstractBrowserComponent.setModel(BrowserModel)public AdvancedBrowserModel getModel()
getModel in interface BrowserComponentgetModel in class AbstractBrowserComponentpublic boolean update()
AbstractBrowserComponentupdate in interface CockpitComponentupdate in class AbstractBrowserComponenttrue if this browser was successfully updated, false otherwiseprotected void updateMultiSelectActionArea()
protected void updateMultiSelectAction(ListViewAction.Context context, ListViewAction action)
protected void updatePaging()
public void setActiveItem(TypedObject activeItem)
AbstractBrowserComponentactiveItem.setActiveItem in interface CockpitComponentsetActiveItem in class AbstractBrowserComponentactiveItem - the new active itempublic void updateActiveItems()
AbstractBrowserComponentupdateActiveItems in interface CockpitComponentupdateActiveItems in class AbstractBrowserComponentpublic void updateSelectedItems()
AbstractBrowserComponentupdateSelectedItems in interface CockpitComponentupdateSelectedItems in class AbstractBrowserComponentpublic void updateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)
AbstractBrowserComponentupdateItem in interface CockpitComponentupdateItem in class AbstractBrowserComponentitem - the item to be re-renderedmodifiedProperties - modified propertiesprotected DefaultListModel<TypedObject> getContextListModel()
protected void updateContextItems()
protected HtmlBasedComponent createContextArea()
protected Div createContextMainDiv()
protected java.lang.String createContextHeader()
protected Groupbox createContextGroupbox()
public void resize()
AbstractBrowserComponentBorderlayout components.resize in class AbstractBrowserComponentprotected MutableListModel getListComponentModel()
protected UIListView loadListView()
protected ListViewConfiguration loadListViewConfig()
protected ListViewConfiguration createMultiTypeListViewConfiguration()
protected ListViewConfiguration getListViewConfiguration(ObjectTemplate objectTemplate, java.lang.String code)
protected UIConfigurationService getUIConfigurationService()
protected UIAccessRightService getUIAccessRightService()
protected LoginService getLoginService()
protected TypeService getTypeService()
protected MutableTableModel getContextTableModel()
protected void setContextTableModel(MutableTableModel tableModel)
protected ObjectTemplate getContextResultType()
public void detach()
public void setParent(Component parent)
public void desktopRemoved(Desktop desktop)
desktopRemoved in interface DesktopRemovalAwareComponentprotected void cleanup()
protected SystemService getSystemService()
protected void showAddItemPopup()
protected void showAddItemRow()
protected ObjectValueContainer getValueContainer(ObjectTemplate template)
protected java.util.Set<PropertyDescriptor> getRequiredPropertyDescriptors(ObjectTemplate template)
protected boolean isContextPagingEnabled(AbstractPageableBrowserModel browserModel)
protected AbstractPageableBrowserModel getPageableBrowserModelIfPresent()
public EditorFactory getEditorFactory()
public boolean update(boolean cleanContextHeader)
AbstractContextBrowserComponentupdate in class AbstractContextBrowserComponentcleanContextHeader - indicates if cleaning of ContextHeader is necessarytrue if this browser was successfully updated, false otherwiseprotected ListViewHelper.ListenerHandler getListenerHandler()
protected java.util.Collection<HtmlBasedComponent> getGroupboxComponents()
protected java.util.Collection<HtmlBasedComponent> getHeaderComponents()
protected Toolbarbutton createCloseButton(java.lang.String closeBtnImg)
protected TableModelListener createContextTableModelListener()
protected ColumnModelListener getColumnModelListener()
protected void storeListViewConfiguration()
Copyright © 2018 SAP SE. All Rights Reserved.