|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.extensions.config.element.ConfigElementAdapter
org.alfresco.web.config.ViewsConfigElement
public class ViewsConfigElement
Custom config element that represents config values for views in the client
Field Summary | |
---|---|
static java.lang.String |
CONFIG_ELEMENT_ID
|
static java.lang.String |
SORT_ASCENDING
|
static java.lang.String |
SORT_DESCENDING
|
static java.lang.String |
VIEW_BUBBLE
|
static java.lang.String |
VIEW_DETAILS
|
static java.lang.String |
VIEW_ICONS
|
static java.lang.String |
VIEW_LIST
|
Fields inherited from class org.springframework.extensions.config.element.ConfigElementAdapter |
---|
attributes, children, name, value |
Constructor Summary | |
---|---|
ViewsConfigElement()
Default Constructor |
|
ViewsConfigElement(java.lang.String name)
Constructor |
Method Summary | |
---|---|
org.springframework.extensions.config.ConfigElement |
combine(org.springframework.extensions.config.ConfigElement configElement)
|
java.util.List |
getChildren()
|
int |
getDefaultPageSize(java.lang.String page,
java.lang.String view)
Returns the page size for the given page and view combination |
java.lang.String |
getDefaultSortColumn(java.lang.String page)
Returns the default sort column for the given page |
java.lang.String |
getDefaultView(java.lang.String page)
Returns the default view for the given page |
java.util.List |
getViews()
Returns a map of configured views for the client |
boolean |
hasDescendingSort(java.lang.String page)
Determines whether the given page has been configured to use descending sorting by default |
Methods inherited from class org.springframework.extensions.config.element.ConfigElementAdapter |
---|
getAttribute, getAttributeCount, getAttributes, getChild, getChildCount, getChildren, getChildrenMap, getChildValue, getName, getValue, hasAttribute, hasChildren, setValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIG_ELEMENT_ID
public static final java.lang.String VIEW_DETAILS
public static final java.lang.String VIEW_ICONS
public static final java.lang.String VIEW_LIST
public static final java.lang.String VIEW_BUBBLE
public static final java.lang.String SORT_ASCENDING
public static final java.lang.String SORT_DESCENDING
Constructor Detail |
---|
public ViewsConfigElement()
public ViewsConfigElement(java.lang.String name)
name
- Name of the element this config element representsMethod Detail |
---|
public java.util.List getChildren()
getChildren
in interface org.springframework.extensions.config.ConfigElement
getChildren
in class org.springframework.extensions.config.element.ConfigElementAdapter
ConfigElementAdapter.getChildren()
public org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement configElement)
combine
in interface org.springframework.extensions.config.ConfigElement
combine
in class org.springframework.extensions.config.element.ConfigElementAdapter
org.springframework.extensions.config.element.ConfigElementAdapter#combine(org.alfresco.config.ConfigElement)
public java.util.List getViews()
public java.lang.String getDefaultView(java.lang.String page)
page
- The page to get the default view for
public int getDefaultPageSize(java.lang.String page, java.lang.String view)
page
- The name of the page i.e. browse, forums etc.view
- The name of the view the size is for i.e. details, icons etc.
public java.lang.String getDefaultSortColumn(java.lang.String page)
page
- The name of the page i.e. browse, forums etc.
public boolean hasDescendingSort(java.lang.String page)
page
- The name of the page i.e. browse, forums etc.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |