public class MacFinderTreeComponent extends AbstractBrowserComponent implements MacFinderTree
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 |
|---|
MacFinderTreeComponent(CategoryTreeBrowserModel model,
AbstractContentBrowser contentBrowser) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDummyColumns(Tr parent,
int quantity)
Prepares some dummy columns where is too much space
|
void |
checkOpenDropContext(int keys,
int x,
int y,
java.util.List<TypedObject> draggedItems,
TypedObject dropTarget,
CategoryModel oldSuperCat) |
protected boolean |
checkPermissions(java.lang.String typeCode,
java.lang.String permissionCode) |
ExtendedTypeLoader |
getCockpitTypeLoaderChain() |
protected DragAndDropWrapper |
getDDWrapper() |
MacFinderTreeNode |
getLastSelectedCategory()
Searches for last selected category
|
ListitemRenderer |
getListItemRenderer() |
CategoryTreeBrowserModel |
getModel() |
protected NewItemService |
getNewItemService() |
MacFinderTreeModelAbstract |
getTreeModel() |
protected TypeService |
getTypeService() |
boolean |
initialize()
Invokes each times when new component instance is needed.
|
void |
refreshLeafNodes() |
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 |
setListItemRenderer(ListitemRenderer listItemRenderer) |
boolean |
update()
Updates this browser component i.e.
|
void |
updateActiveItems()
Re-renders the currently active item(s).
|
protected void |
updateInspectorArea(TypedObject object,
AbstractBrowserArea area) |
void |
updateItem(TypedObject item,
java.util.Set<PropertyDescriptor> modifiedProperties)
Re-renders the item.
|
void |
updateSelectedItems()
Re-renders the currently selected item(s).
|
getContentBrowser, setModel, updateItempublic MacFinderTreeComponent(CategoryTreeBrowserModel model, AbstractContentBrowser contentBrowser)
public CategoryTreeBrowserModel getModel()
getModel in interface BrowserComponentgetModel in class AbstractBrowserComponentpublic ListitemRenderer getListItemRenderer()
public void setListItemRenderer(ListitemRenderer listItemRenderer)
public MacFinderTreeModelAbstract getTreeModel()
public void checkOpenDropContext(int keys,
int x,
int y,
java.util.List<TypedObject> draggedItems,
TypedObject dropTarget,
CategoryModel oldSuperCat)
public boolean initialize()
initialize in interface CockpitComponentinitialize in class AbstractBrowserComponenttrue if initialization was successful, false otherwiseorg.zkoss.zk.ui.HtmlMacroComponent#afterCompose()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 boolean update()
AbstractBrowserComponentupdate in interface CockpitComponentupdate in class AbstractBrowserComponenttrue if this browser was successfully updated, false otherwisepublic void refreshLeafNodes()
public void updateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)
AbstractBrowserComponentupdateItem in interface CockpitComponentupdateItem in class AbstractBrowserComponentitem - the item to be re-renderedmodifiedProperties - modified propertiespublic void updateActiveItems()
AbstractBrowserComponentupdateActiveItems in interface CockpitComponentupdateActiveItems in class AbstractBrowserComponentpublic void updateSelectedItems()
AbstractBrowserComponentupdateSelectedItems in interface CockpitComponentupdateSelectedItems in class AbstractBrowserComponentprotected DragAndDropWrapper getDDWrapper()
public void addDummyColumns(Tr parent,
int quantity)
parent - - columns parentquantity - public MacFinderTreeNode getLastSelectedCategory()
protected TypeService getTypeService()
protected NewItemService getNewItemService()
protected boolean checkPermissions(java.lang.String typeCode,
java.lang.String permissionCode)
public ExtendedTypeLoader getCockpitTypeLoaderChain()
protected void updateInspectorArea(TypedObject object, AbstractBrowserArea area)
Copyright © 2018 SAP SE. All Rights Reserved.