org.broadleafcommerce.openadmin.client
Class AbstractModule
java.lang.Object
org.broadleafcommerce.openadmin.client.AbstractModule
- All Implemented Interfaces:
- com.google.gwt.core.client.EntryPoint, Module
- Direct Known Subclasses:
- AbstractHtmlEditingModule, UserManagementModule
public abstract class AbstractModule
- extends Object
- implements com.google.gwt.core.client.EntryPoint, Module
- Author:
- jfischer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pages
protected LinkedHashMap<String,String[]> pages
moduleTitle
protected String moduleTitle
moduleKey
protected String moduleKey
order
protected Integer order
sections
protected List<Section> sections
AbstractModule
public AbstractModule()
registerModule
public void registerModule()
getModuleTitle
public String getModuleTitle()
- Specified by:
getModuleTitle in interface Module
setModuleTitle
public void setModuleTitle(String moduleTitle)
getModuleKey
public String getModuleKey()
- Specified by:
getModuleKey in interface Module
setModuleKey
public void setModuleKey(String moduleKey)
- If 2 modules have the same key, the sections in that module are merged together. For instance, if you wanted to add
a new section to the merchandising module, you would create a new AbstractModule subclass and call this method
with the same key as the Merchandising module
- Parameters:
moduleKey -
addConstants
public void addConstants(i18nConstants constants)
setSection
public void setSection(String sectionTitle,
String sectionViewKey,
String sectionViewClass,
String sectionPresenterKey,
String sectionPresenterClass,
List<String> sectionPermissions)
setSecurity
public void setSecurity(String sectionViewKey,
List<String> sectionPermissions)
removeSection
public void removeSection(String sectionTitle)
getPages
public LinkedHashMap<String,String[]> getPages()
- Specified by:
getPages in interface Module
postDraw
public void postDraw()
- Specified by:
postDraw in interface Module
preDraw
public void preDraw()
- Specified by:
preDraw in interface Module
getOrder
public Integer getOrder()
- Specified by:
getOrder in interface Module
setOrder
public void setOrder(Integer order)
- Specified by:
setOrder in interface Module
getSections
protected List<Section> getSections()
setSections
protected void setSections(List<Section> sections)
onModuleLoad
public void onModuleLoad()
- Specified by:
onModuleLoad in interface com.google.gwt.core.client.EntryPoint
Copyright © 2013. All Rights Reserved.