public abstract class AbstractContentBrowser extends Div implements DesktopRemovalAwareComponent
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractContentBrowser.BrowserFocusDiv |
| Modifier and Type | Field and Description |
|---|---|
protected AbstractBrowserComponent |
captionComponent |
static String |
CONTENT_BROWSER_CHANGE |
protected AbstractBrowserComponent |
contextAreaComponent |
static String |
DEFAULT_OVERLAY_SCLASS |
static String |
DEFAULT_SCLASS |
static String |
FOCUSED_OVERLAY_SCLASS |
static String |
FOCUSED_SCLASS |
protected boolean |
initialized
Indicates whether this content browser has been initialized or not.
|
protected AbstractBrowserComponent |
mainAreaComponent |
protected Div |
statusBar |
protected AbstractBrowserComponent |
toolbarComponent |
| Constructor and Description |
|---|
AbstractContentBrowser() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup() |
void |
desktopRemoved(Desktop desktop) |
void |
detach() |
ActionColumnConfiguration |
getActionConfiguration() |
AbstractBrowserComponent |
getCaptionComponent() |
protected HtmlBasedComponent |
getContentBrowserComponent() |
AbstractBrowserComponent |
getContextAreaComponent() |
protected DragAndDropWrapper |
getDDWrapper() |
protected HtmlBasedComponent |
getFocusComponent() |
AbstractBrowserComponent |
getMainAreaComponent() |
BrowserModel |
getModel() |
AbstractBrowserComponent |
getToolbarComponent() |
protected abstract boolean |
initialize()
Initializes this content browser i.e.
|
boolean |
isActiveWhenUnfocused() |
boolean |
isInitialized() |
abstract void |
resize() |
void |
setActiveWhenUnfocused(boolean activeWhenUnfocused) |
void |
setContentBrowserComponent(HtmlBasedComponent contentBrowserComponent) |
void |
setFocus(boolean focus) |
void |
setFocusComponent(HtmlBasedComponent focusComponent) |
void |
setModel(BrowserModel model) |
void |
setParent(Component parent) |
void |
setRealSclass(String sclass) |
void |
setSclass(String sclass) |
abstract boolean |
update()
Updates this content browser i.e.
|
abstract void |
updateActivation()
This method makes it possible to force the view to get the currently active item(s) from its model, thus
synchronizing itself.
|
abstract void |
updateActiveItems()
This method makes it possible to force the view to re-render the items which are considered "active".
|
abstract void |
updateCaption() |
abstract void |
updateContextArea() |
void |
updateItem(TypedObject item,
Set<PropertyDescriptor> modifiedProperties) |
abstract void |
updateItem(TypedObject item,
Set<PropertyDescriptor> modifiedProperties,
Object reason)
This method makes it possible to force the view to re-render a list of items.
|
abstract void |
updateMainArea() |
abstract void |
updateSelectedItems()
This method makes it possible to force the view to re-render the items which are considered "selected".
|
void |
updateStatusBar() |
abstract void |
updateToolbar() |
abstract void |
updateViewMode() |
public static final String CONTENT_BROWSER_CHANGE
public static final String DEFAULT_SCLASS
public static final String FOCUSED_SCLASS
public static final String DEFAULT_OVERLAY_SCLASS
public static final String FOCUSED_OVERLAY_SCLASS
protected transient AbstractBrowserComponent captionComponent
protected transient AbstractBrowserComponent toolbarComponent
protected transient AbstractBrowserComponent mainAreaComponent
protected transient AbstractBrowserComponent contextAreaComponent
protected transient Div statusBar
protected boolean initialized
public void setFocus(boolean focus)
protected DragAndDropWrapper getDDWrapper()
public void setSclass(String sclass)
public void setRealSclass(String sclass)
public void setFocusComponent(HtmlBasedComponent focusComponent)
protected HtmlBasedComponent getFocusComponent()
public void setContentBrowserComponent(HtmlBasedComponent contentBrowserComponent)
protected HtmlBasedComponent getContentBrowserComponent()
public BrowserModel getModel()
public void setModel(BrowserModel model)
public abstract void updateActiveItems()
updateActivation()public abstract void updateSelectedItems()
public abstract void updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties, Object reason)
item - the item which should be re-renderedmodifiedProperties - set of modified propertiesreason - the object that causes the update, can be nullpublic void updateItem(TypedObject item, Set<PropertyDescriptor> modifiedProperties)
public abstract void updateActivation()
updateActiveItems()public abstract void updateMainArea()
public abstract void updateViewMode()
public abstract void updateContextArea()
public abstract void updateCaption()
public abstract void updateToolbar()
public abstract boolean update()
true if this browser was successfully updated, false otherwiseprotected abstract boolean initialize()
model is set.
Implementation note: Do not forget to set the initialized flag before returning.true if initialization was successful, false otherwisesetModel(BrowserModel)public abstract void resize()
public void updateStatusBar()
public void setActiveWhenUnfocused(boolean activeWhenUnfocused)
activeWhenUnfocused - the activeWhenUnfocused to setpublic boolean isActiveWhenUnfocused()
public boolean isInitialized()
public AbstractBrowserComponent getCaptionComponent()
public AbstractBrowserComponent getToolbarComponent()
public AbstractBrowserComponent getMainAreaComponent()
public AbstractBrowserComponent getContextAreaComponent()
public ActionColumnConfiguration getActionConfiguration()
public void setParent(Component parent)
public void detach()
public void desktopRemoved(Desktop desktop)
desktopRemoved in interface DesktopRemovalAwareComponentprotected void cleanup()
Copyright © 2017 SAP SE. All Rights Reserved.