public abstract class AbstractSectionMainAreaBrowserComponent extends AbstractMainAreaBrowserComponent
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
initialized |
protected Borderlayout |
mainArea |
protected Map<BrowserSectionModel,BrowserComponent> |
sectionMap |
EMPTY_MESSAGE, lastResultType, listComponentModel, loginService, resultModel, typeService, uiConfigurationServiceADV_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, 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 |
|---|
AbstractSectionMainAreaBrowserComponent(SectionBrowserModel model,
AbstractContentBrowser contentBrowser) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup() |
protected Borderlayout |
createMainBorderLayout() |
protected Map<BrowserSectionModel,BrowserComponent> |
createSections() |
void |
desktopRemoved(Desktop desktop) |
void |
detach() |
SectionBrowserModel |
getModel() |
protected SectionModelListener |
getSectionModelListener() |
boolean |
initialize()
Initializes this browser component i.e.
|
protected boolean |
isInitialized() |
protected abstract void |
layoutSections(List<BrowserSectionModel> sectionModels,
HtmlBasedComponent parent)
Responsible for laying out the different sections.
|
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) |
void |
setSectionModelListener(SectionModelListener sectionModelListener)
Sets the section model listener to be used by this view component in order to keep its state up to date.
|
boolean |
update()
Updates this browser component i.e.
|
void |
updateActiveItems()
Re-renders the currently active item(s).
|
void |
updateItem(TypedObject item,
Set<PropertyDescriptor> modifiedProperties)
Re-renders the item.
|
void |
updateItem(TypedObject item,
Set<PropertyDescriptor> modifiedProperties,
Object reason)
Override if you want to react on the reason for the update
|
void |
updateSection(BrowserSectionModel sectionModel) |
void |
updateSectionSelection(BrowserSectionModel sectionModel) |
createMainArea, createTableController, getCurrentItemView, getLoginService, getResultModel, getRootType, getTableModel, getTypeService, getUIConfigurationService, loadListModel, resetSelection, setTableModel, updateResult, updateSelectedItemsgetContentBrowser, setModelprotected transient Map<BrowserSectionModel,BrowserComponent> sectionMap
protected transient Borderlayout mainArea
protected boolean initialized
public AbstractSectionMainAreaBrowserComponent(SectionBrowserModel 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 AbstractMainAreaBrowserComponenttrue if initialization was successful, false otherwiseAbstractBrowserComponent.setModel(BrowserModel)protected Borderlayout createMainBorderLayout()
protected abstract void layoutSections(List<BrowserSectionModel> sectionModels, HtmlBasedComponent parent)
sectionModels - the sections to be renderedparent - the parent component to which the sections should be addedpublic boolean update()
AbstractBrowserComponentupdate in interface CockpitComponentupdate in class AbstractBrowserComponenttrue if this browser was successfully updated, false otherwisepublic SectionBrowserModel getModel()
getModel in interface BrowserComponentgetModel in class AbstractMainAreaBrowserComponentpublic void updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties, Object reason)
AbstractBrowserComponentupdateItem in class AbstractBrowserComponentreason - the reason for the updatepublic void updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties)
AbstractBrowserComponentupdateItem in interface CockpitComponentupdateItem in class AbstractMainAreaBrowserComponentitem - the item to be re-renderedmodifiedProperties - modified propertiespublic void updateSection(BrowserSectionModel sectionModel)
public void updateSectionSelection(BrowserSectionModel sectionModel)
public void resize()
AbstractBrowserComponentBorderlayout components.resize in class AbstractMainAreaBrowserComponentpublic void setActiveItem(TypedObject activeItem)
AbstractBrowserComponentactiveItem.setActiveItem in interface CockpitComponentsetActiveItem in class AbstractMainAreaBrowserComponentactiveItem - the new active itempublic void updateActiveItems()
AbstractBrowserComponentupdateActiveItems in interface CockpitComponentupdateActiveItems in class AbstractMainAreaBrowserComponentprotected Map<BrowserSectionModel,BrowserComponent> createSections()
public void setSectionModelListener(SectionModelListener sectionModelListener)
sectionModelListener - protected SectionModelListener getSectionModelListener()
protected boolean isInitialized()
public void setParent(Component parent)
setParent in class AbstractMainAreaBrowserComponentpublic void detach()
detach in class AbstractMainAreaBrowserComponentpublic void desktopRemoved(Desktop desktop)
desktopRemoved in interface DesktopRemovalAwareComponentdesktopRemoved in class AbstractMainAreaBrowserComponentprotected void cleanup()
cleanup in class AbstractMainAreaBrowserComponentCopyright © 2017 SAP SE. All Rights Reserved.