public abstract class AbstractMainAreaBrowserComponent extends AbstractBrowserComponent implements DesktopRemovalAwareComponent
| Modifier and Type | Field and Description |
|---|---|
protected static String |
EMPTY_MESSAGE |
protected ObjectTemplate |
lastResultType |
protected MutableListModel |
listComponentModel |
protected LoginService |
loginService |
protected Div |
mainArea |
protected DefaultListModel<TypedObject> |
resultModel |
protected TypeService |
typeService |
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 |
|---|
AbstractMainAreaBrowserComponent(AdvancedBrowserModel model,
AbstractContentBrowser contentBrowser) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
cleanup() |
protected abstract Div |
createMainArea() |
protected DefaultBrowserTableController |
createTableController(AdvancedBrowserModel advancedBrowserModel,
MutableTableModel mutableTableModel,
UIListView listView) |
void |
desktopRemoved(Desktop desktop) |
void |
detach() |
protected abstract UIItemView |
getCurrentItemView() |
protected LoginService |
getLoginService() |
AdvancedBrowserModel |
getModel() |
protected DefaultListModel<TypedObject> |
getResultModel() |
protected ObjectTemplate |
getRootType() |
protected MutableTableModel |
getTableModel() |
protected TypeService |
getTypeService() |
protected UIConfigurationService |
getUIConfigurationService() |
boolean |
initialize()
Initializes this browser component i.e.
|
protected void |
loadListModel() |
protected void |
resetSelection() |
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. |
void |
setParent(Component parent) |
protected void |
setTableModel(MutableTableModel tableModel) |
void |
updateActiveItems()
Re-renders the currently active item(s).
|
void |
updateItem(TypedObject item,
Set<PropertyDescriptor> modifiedProperties)
Re-renders the item.
|
protected void |
updateResult() |
void |
updateSelectedItems()
Re-renders the currently selected item(s).
|
getContentBrowser, setModel, update, updateItemprotected static final String EMPTY_MESSAGE
protected transient Div mainArea
protected final DefaultListModel<TypedObject> resultModel
protected ObjectTemplate lastResultType
protected UIConfigurationService uiConfigurationService
protected TypeService typeService
protected LoginService loginService
protected MutableListModel listComponentModel
public AbstractMainAreaBrowserComponent(AdvancedBrowserModel model, AbstractContentBrowser contentBrowser)
public AdvancedBrowserModel getModel()
getModel in interface BrowserComponentgetModel in class AbstractBrowserComponentprotected abstract UIItemView getCurrentItemView()
protected abstract Div createMainArea()
protected void resetSelection()
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 void resize()
AbstractBrowserComponentBorderlayout components.resize in class AbstractBrowserComponentpublic 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 updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties)
AbstractBrowserComponentupdateItem in interface CockpitComponentupdateItem in class AbstractBrowserComponentitem - the item to be re-renderedmodifiedProperties - modified propertiespublic void updateSelectedItems()
AbstractBrowserComponentupdateSelectedItems in interface CockpitComponentupdateSelectedItems in class AbstractBrowserComponentprotected DefaultListModel<TypedObject> getResultModel()
protected void updateResult()
protected void loadListModel()
protected UIConfigurationService getUIConfigurationService()
protected LoginService getLoginService()
protected TypeService getTypeService()
protected MutableTableModel getTableModel()
protected void setTableModel(MutableTableModel tableModel)
protected ObjectTemplate getRootType()
protected DefaultBrowserTableController createTableController(AdvancedBrowserModel advancedBrowserModel, MutableTableModel mutableTableModel, UIListView listView)
public void desktopRemoved(Desktop desktop)
desktopRemoved in interface DesktopRemovalAwareComponentpublic void detach()
public void setParent(Component parent)
protected abstract void cleanup()
Copyright © 2017 SAP SE. All Rights Reserved.