public class CaptionBrowserComponent extends AbstractBrowserComponent
| Modifier and Type | Field and Description |
|---|---|
protected Toolbarbutton |
closeBtn |
protected Groupbox |
mainGroupbox |
protected Label |
navigationPathLabel |
protected Popup |
navigationPathTooltip |
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 |
|---|
CaptionBrowserComponent(BrowserModel model,
AbstractContentBrowser contentBrowser) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createAdditionalRightCaptionComponents(Hbox hbox) |
protected HtmlBasedComponent |
createAdvancedArea() |
protected Caption |
createCaption()
Creates the caption component.
|
protected HtmlBasedComponent |
createCaptionLabelComponent()
Called by
createCaption(). |
protected HtmlBasedComponent |
createCaptionLabelTooltipContent(java.lang.String string) |
protected Groupbox |
createGroupbox() |
protected HtmlBasedComponent |
createLeftCaptionContent()
Creates and returns the content of the (upper) left side of this caption component.
|
protected HtmlBasedComponent |
createRightCaptionContent()
Creates and returns the content of the (upper) right side of this caption component.
|
boolean |
initialize()
Initializes this browser component i.e.
|
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,
java.util.Set<PropertyDescriptor> modifiedProperties)
Re-renders the item.
|
void |
updateItem(TypedObject item,
java.util.Set<PropertyDescriptor> modifiedProperties,
java.lang.Object reason)
Override if you want to react on the reason for the update
|
protected void |
updateLabels() |
void |
updateSelectedItems()
Re-renders the currently selected item(s).
|
getContentBrowser, getModel, setModelprotected transient Groupbox mainGroupbox
protected transient Toolbarbutton closeBtn
protected transient Popup navigationPathTooltip
protected transient Label navigationPathLabel
public CaptionBrowserComponent(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 boolean update()
AbstractBrowserComponentupdate in interface CockpitComponentupdate in class AbstractBrowserComponenttrue if this browser was successfully updated, false otherwisepublic void updateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties, java.lang.Object reason)
AbstractBrowserComponentupdateItem in class AbstractBrowserComponentreason - the reason for the updateprotected void updateLabels()
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 AbstractBrowserComponentprotected Groupbox createGroupbox()
protected HtmlBasedComponent createAdvancedArea()
protected Caption createCaption()
createLeftCaptionContent(), createRightCaptionContent() and
createCaptionLabelComponent().
Note: You typically want to override createLeftCaptionContent(),
createRightCaptionContent() and/or createCaptionLabelComponent() methods instead of this one.protected HtmlBasedComponent createLeftCaptionContent()
createCaption().protected void createAdditionalRightCaptionComponents(Hbox hbox)
protected HtmlBasedComponent createRightCaptionContent()
createCaption().protected HtmlBasedComponent createCaptionLabelComponent()
createCaption(). Calls createCaptionLabelTooltipContent(String).protected HtmlBasedComponent createCaptionLabelTooltipContent(java.lang.String string)
public void resize()
AbstractBrowserComponentBorderlayout components.resize 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 propertiesCopyright © 2018 SAP SE. All Rights Reserved.