public class WidgetDashboardToolbarComponent extends AbstractBrowserComponent
| Modifier and Type | Field and Description |
|---|---|
protected Component |
leftToolbarCmp |
protected Component |
rightToolbarCmp |
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 |
|---|
WidgetDashboardToolbarComponent(BrowserModel model,
AbstractContentBrowser contentBrowser) |
| Modifier and Type | Method and Description |
|---|---|
protected Component |
createLeftToolbarContent() |
protected Component |
createRightToolbarContent() |
protected HtmlBasedComponent |
createToolbar() |
boolean |
initialize()
Initializes this browser component i.e.
|
protected void |
openLayoutChooser() |
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. |
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 |
updateSelectedItems()
Re-renders the currently selected item(s).
|
getContentBrowser, getModel, setModel, updateItemprotected Component rightToolbarCmp
protected Component leftToolbarCmp
public WidgetDashboardToolbarComponent(BrowserModel model, AbstractContentBrowser contentBrowser)
public boolean update()
AbstractBrowserComponentupdate in interface CockpitComponentupdate in class AbstractBrowserComponenttrue if this browser was successfully updated, false otherwisepublic 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)protected HtmlBasedComponent createToolbar()
protected Component createLeftToolbarContent()
protected void openLayoutChooser()
protected Component createRightToolbarContent()
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 AbstractBrowserComponentCopyright © 2017 SAP SE. All Rights Reserved.