info.magnolia.cms.gui.controlx.version
Class VersionListModel

java.lang.Object
  extended by info.magnolia.cms.gui.controlx.list.AbstractListModel
      extended by info.magnolia.cms.gui.controlx.version.VersionListModel
All Implemented Interfaces:
ListModel

public class VersionListModel
extends AbstractListModel

Author:
Sameer Charles $Id:VersionListModel.java 2544 2006-04-04 12:47:32Z philipp $

Nested Class Summary
 
Nested classes/interfaces inherited from class info.magnolia.cms.gui.controlx.list.AbstractListModel
AbstractListModel.ListComparator
 
Field Summary
protected  SearchQuery query
          search query to be used by sub implementation
 
Fields inherited from class info.magnolia.cms.gui.controlx.list.AbstractListModel
ASCENDING, DESCENDING, groupBy, groupByOrder, sortBy, sortByOrder
 
Constructor Summary
VersionListModel(Content content)
          constructor
VersionListModel(Content content, int max)
           
 
Method Summary
 Content getContent()
           
 int getMax()
           
protected  Collection getResult()
          get all versions
 void setContent(Content content)
           
 void setMax(int max)
           
 
Methods inherited from class info.magnolia.cms.gui.controlx.list.AbstractListModel
createIterator, doSort, getGroupBy, getGroupByOrder, getListModelIterator, getSortBy, getSortByOrder, getValueProvider, iterator, newComparator, resolveId, setGroupBy, setGroupBy, setSortBy, setSortBy, setValueProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

query

protected SearchQuery query
search query to be used by sub implementation

Constructor Detail

VersionListModel

public VersionListModel(Content content,
                        int max)
Parameters:
content -
max -

VersionListModel

public VersionListModel(Content content)
constructor

Method Detail

getResult

protected Collection getResult()
                        throws javax.jcr.RepositoryException
get all versions

Specified by:
getResult in class AbstractListModel
Returns:
all versions in a collection
Throws:
javax.jcr.RepositoryException

getMax

public int getMax()
Returns:
the max

setMax

public void setMax(int max)
Parameters:
max - the max to set

getContent

public Content getContent()
Returns:
the content

setContent

public void setContent(Content content)
Parameters:
content - the content to set


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.