public abstract class AbstractBrowserComponent extends Div implements BrowserComponent
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ADV_QUERY_BTN_ACTIVE_IMG |
protected static String |
ADV_QUERY_BTN_IMG |
protected static String |
BROWSER_TOOLBAR_SCLASS |
protected static String |
CLOSE_BTN_IMG |
protected static String |
CONTENT_BROWSER_GB_SCLASS |
protected static String |
CONTENT_BROWSER_STICKY_GB_SCLASS |
protected static String |
DUPLICATE_BTN_IMG |
protected boolean |
initialized |
protected static String |
MAIN_AREA_BL_SCLASS |
protected static String |
MINIMIZE_BTN_IMG |
protected static String |
SAVE_QUERY_BTN_IMG |
protected static String |
SEARCH_MAGNIFIER_BTN_IMG |
protected static String |
SPLIT_ACTIVE_BTN_IMG |
protected static String |
SPLIT_INACTIVE_BTN_IMG |
| Constructor and Description |
|---|
AbstractBrowserComponent(BrowserModel model,
AbstractContentBrowser contentBrowser) |
| Modifier and Type | Method and Description |
|---|---|
AbstractContentBrowser |
getContentBrowser()
Returns the content browser containing this browser component.
|
BrowserModel |
getModel() |
abstract boolean |
initialize()
Initializes this browser component i.e.
|
abstract void |
resize()
Notifies this browser component that it should resize itself if possible, since the view state might require it.
|
abstract void |
setActiveItem(TypedObject activeItem)
Sets the active item of this browser component to
activeItem. |
void |
setModel(BrowserModel model)
Sets the model to
model and calls initialize(). |
abstract boolean |
update()
Updates this browser component i.e.
|
abstract void |
updateActiveItems()
Re-renders the currently active item(s).
|
abstract 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
|
abstract void |
updateSelectedItems()
Re-renders the currently selected item(s).
|
protected static final String CONTENT_BROWSER_GB_SCLASS
protected static final String CONTENT_BROWSER_STICKY_GB_SCLASS
protected static final String BROWSER_TOOLBAR_SCLASS
protected static final String MAIN_AREA_BL_SCLASS
protected static final String SEARCH_MAGNIFIER_BTN_IMG
protected static final String ADV_QUERY_BTN_IMG
protected static final String ADV_QUERY_BTN_ACTIVE_IMG
protected static final String SAVE_QUERY_BTN_IMG
protected static final String DUPLICATE_BTN_IMG
protected static final String SPLIT_ACTIVE_BTN_IMG
protected static final String SPLIT_INACTIVE_BTN_IMG
protected static final String MINIMIZE_BTN_IMG
protected static final String CLOSE_BTN_IMG
protected boolean initialized
public AbstractBrowserComponent(BrowserModel model, AbstractContentBrowser contentBrowser)
public abstract boolean update()
update in interface CockpitComponenttrue if this browser was successfully updated, false otherwisepublic abstract void setActiveItem(TypedObject activeItem)
activeItem.setActiveItem in interface CockpitComponentactiveItem - the new active itempublic abstract void updateActiveItems()
updateActiveItems in interface CockpitComponentpublic abstract void updateSelectedItems()
updateSelectedItems in interface CockpitComponentpublic abstract void updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties)
updateItem in interface CockpitComponentitem - the item to be re-renderedmodifiedProperties - modified propertiespublic void updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties, Object reason)
reason - the reason for the updatepublic abstract boolean initialize()
initialized 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 CockpitComponenttrue if initialization was successful, false otherwisesetModel(BrowserModel)public abstract void resize()
Borderlayout components.public BrowserModel getModel()
getModel in interface BrowserComponentpublic AbstractContentBrowser getContentBrowser()
public void setModel(BrowserModel model)
model and calls initialize().setModel in interface BrowserComponentmodel - the modelCopyright © 2017 SAP SE. All Rights Reserved.