org.broadleafcommerce.admin.client.presenter.catalog.category
Class CategoryPresenter

java.lang.Object
  extended by org.broadleafcommerce.openadmin.client.presenter.entity.AbstractEntityPresenter
      extended by org.broadleafcommerce.openadmin.client.presenter.entity.DynamicEntityPresenter
          extended by org.broadleafcommerce.admin.client.presenter.catalog.category.CategoryPresenter
All Implemented Interfaces:
EntityPresenter, Instantiable

public class CategoryPresenter
extends DynamicEntityPresenter
implements Instantiable

Author:
jfischer

Field Summary
protected  AllChildCategoriesPresenter allChildCategoriesPresenter
           
protected  SubPresentable childProductsPresenter
           
protected  SubPresentable featuredPresenter
           
protected  HashMap<String,Object> library
           
protected  MapStructureEntityEditDialog mapEntityAdd
           
protected  SubPresentable mediaPresenter
           
protected  String rootId
           
protected  String rootName
           
 
Fields inherited from class org.broadleafcommerce.openadmin.client.presenter.entity.DynamicEntityPresenter
addClickHandlerRegistration, cellSavedHandlerRegistration, disabled, display, entityTypeChangedHandlerRegistration, fetchDataHandlerRegistration, formPresenter, gridFields, initialValues, lastSelectedRecord, loaded, presenterSequenceSetupManager, removeClickHandlerRegistration, saveButtonHandlerRegistration, selectionChangedHandlerRegistration
 
Fields inherited from class org.broadleafcommerce.openadmin.client.presenter.entity.AbstractEntityPresenter
defaultItemId, eventBus
 
Constructor Summary
CategoryPresenter()
           
 
Method Summary
protected  void addClicked()
           
protected  void addNewItem(String newItemTitle)
           
 void bind()
           
protected  void changeSelection(com.smartgwt.client.data.Record selectedRecord)
           
 CategoryDisplay getDisplay()
           
protected  MapStructureEntityEditDialog getMediaEntityView()
           
protected  LinkedHashMap<String,String> getMediaMapKeys()
           
 void reloadAllChildRecordsForId(String id)
           
 void reloadParentTreeNodeRecords(boolean disableCategoryButton)
           
protected  void removeClicked()
           
 void setup()
           
 
Methods inherited from class org.broadleafcommerce.openadmin.client.presenter.entity.DynamicEntityPresenter
addClicked, compileDefaultValuesFromCurrentFilter, containsDisplay, disable, enable, getAddClickHandlerRegistration, getCellSavedHandlerRegistration, getEntityTypeChangedHandlerRegistration, getInitialValues, getLoaded, getPresenterSequenceSetupManager, getRemoveClickHandlerRegistration, getSaveButtonHandlerRegistration, getSelectionChangedHandlerRegistration, itemSaved, loadInitialItem, postSetup, saveClicked, setDisplay, setGridFields, setInitialValues, setReadOnly, setStartState, setupDisplayItems
 
Methods inherited from class org.broadleafcommerce.openadmin.client.presenter.entity.AbstractEntityPresenter
getDefaultItemId, getEventBus, setDefaultItemId, setEventBus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapEntityAdd

protected MapStructureEntityEditDialog mapEntityAdd

rootId

protected String rootId

rootName

protected String rootName

featuredPresenter

protected SubPresentable featuredPresenter

mediaPresenter

protected SubPresentable mediaPresenter

allChildCategoriesPresenter

protected AllChildCategoriesPresenter allChildCategoriesPresenter

childProductsPresenter

protected SubPresentable childProductsPresenter

library

protected HashMap<String,Object> library
Constructor Detail

CategoryPresenter

public CategoryPresenter()
Method Detail

addClicked

protected void addClicked()
Overrides:
addClicked in class DynamicEntityPresenter

addNewItem

protected void addNewItem(String newItemTitle)
Overrides:
addNewItem in class DynamicEntityPresenter

removeClicked

protected void removeClicked()
Overrides:
removeClicked in class DynamicEntityPresenter

changeSelection

protected void changeSelection(com.smartgwt.client.data.Record selectedRecord)
Overrides:
changeSelection in class DynamicEntityPresenter

bind

public void bind()
Overrides:
bind in class DynamicEntityPresenter

setup

public void setup()
Specified by:
setup in interface EntityPresenter

reloadAllChildRecordsForId

public void reloadAllChildRecordsForId(String id)

reloadParentTreeNodeRecords

public void reloadParentTreeNodeRecords(boolean disableCategoryButton)

getMediaMapKeys

protected LinkedHashMap<String,String> getMediaMapKeys()

getMediaEntityView

protected MapStructureEntityEditDialog getMediaEntityView()

getDisplay

public CategoryDisplay getDisplay()
Specified by:
getDisplay in interface EntityPresenter
Overrides:
getDisplay in class DynamicEntityPresenter


Copyright © 2012. All Rights Reserved.