com.arsdigita.cms.ui
Class TasksPanel

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.TextStylable
              extended bycom.arsdigita.bebop.BlockStylable
                  extended bycom.arsdigita.bebop.SimpleContainer
                      extended bycom.arsdigita.cms.ui.CMSContainer
                          extended bycom.arsdigita.cms.ui.TasksPanel
All Implemented Interfaces:
Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, com.arsdigita.util.Lockable

public class TasksPanel
extends CMSContainer


Field Summary
static String DOWN_ARROW_IMAGE
           
static String LOCK_FILTER_TYPE
           
static String SORT_DATE
           
static String SORT_DIRECTION
           
static String SORT_STATUS
           
static String SORT_TITLE
           
static String SORT_TYPE
           
static String SORT_USER
           
static String UP_ARROW_IMAGE
           
static String versionId
           
 
Fields inherited from class com.arsdigita.cms.ui.CMSContainer
CMS_XML_NS
 
Fields inherited from class com.arsdigita.bebop.BlockStylable
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
TasksPanel(com.arsdigita.kernel.ui.ACSObjectSelectionModel typeModel, com.arsdigita.kernel.ui.ACSObjectSelectionModel sectionModel)
          Constructs a new task panel that shows no more than 15 enabled tasks by default.
TasksPanel(int maxRows, com.arsdigita.kernel.ui.ACSObjectSelectionModel typeModel, com.arsdigita.kernel.ui.ACSObjectSelectionModel sectionModel)
          Constructs a new task panel that shows no more than maxRows enabled tasks by default.
 
Method Summary
protected  void addComponents()
          Adds the components to this tasks panel
protected  void addQueryFilters(com.arsdigita.persistence.DataQuery query, com.arsdigita.kernel.Party party, com.arsdigita.bebop.PageState state)
           
protected  String getLockFilterType(com.arsdigita.bebop.PageState state)
           
protected  com.arsdigita.bebop.Paginator getPaginator()
           
protected  String getSortDirection(com.arsdigita.bebop.PageState state)
           
protected  String getSortType(com.arsdigita.bebop.PageState state)
           
protected  int numberTasksForUser(com.arsdigita.bebop.PageState state)
          Returns the number of enabled tasks for the specified user.
 void register(com.arsdigita.bebop.Page p)
           
 void reset(com.arsdigita.bebop.PageState state)
           
 
Methods inherited from class com.arsdigita.bebop.SimpleContainer
add, add, children, contains, generateChildrenXML, generateParent, generateXML, get, getNamespace, getTag, indexOf, isEmpty, setNamespace, setTag, size
 
Methods inherited from class com.arsdigita.bebop.BlockStylable
setBorder, setBorder, setBorderColor, setHorizontalAlignment, setMargin, setMargin, setPadding, setPadding, setVerticalAlignment
 
Methods inherited from class com.arsdigita.bebop.TextStylable
setBackgroundColor, setColor
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, respond, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible
 
Methods inherited from class com.arsdigita.bebop.Completable
addCompletionListener, fireCompletionEvent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.bebop.Component
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked, lock
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

LOCK_FILTER_TYPE

public static final String LOCK_FILTER_TYPE
See Also:
Constant Field Values

SORT_TYPE

public static final String SORT_TYPE
See Also:
Constant Field Values

SORT_DIRECTION

public static final String SORT_DIRECTION
See Also:
Constant Field Values

SORT_USER

public static final String SORT_USER
See Also:
Constant Field Values

SORT_TITLE

public static final String SORT_TITLE
See Also:
Constant Field Values

SORT_DATE

public static final String SORT_DATE
See Also:
Constant Field Values

SORT_STATUS

public static final String SORT_STATUS
See Also:
Constant Field Values

UP_ARROW_IMAGE

public static final String UP_ARROW_IMAGE
See Also:
Constant Field Values

DOWN_ARROW_IMAGE

public static final String DOWN_ARROW_IMAGE
See Also:
Constant Field Values
Constructor Detail

TasksPanel

public TasksPanel(com.arsdigita.kernel.ui.ACSObjectSelectionModel typeModel,
                  com.arsdigita.kernel.ui.ACSObjectSelectionModel sectionModel)
Constructs a new task panel that shows no more than 15 enabled tasks by default.


TasksPanel

public TasksPanel(int maxRows,
                  com.arsdigita.kernel.ui.ACSObjectSelectionModel typeModel,
                  com.arsdigita.kernel.ui.ACSObjectSelectionModel sectionModel)
Constructs a new task panel that shows no more than maxRows enabled tasks by default.

Parameters:
maxRows - the maximum number of rows to show by default
Method Detail

addComponents

protected void addComponents()
Adds the components to this tasks panel


register

public void register(com.arsdigita.bebop.Page p)

reset

public void reset(com.arsdigita.bebop.PageState state)

getPaginator

protected com.arsdigita.bebop.Paginator getPaginator()

numberTasksForUser

protected int numberTasksForUser(com.arsdigita.bebop.PageState state)
Returns the number of enabled tasks for the specified user.


getSortType

protected String getSortType(com.arsdigita.bebop.PageState state)

getSortDirection

protected String getSortDirection(com.arsdigita.bebop.PageState state)

getLockFilterType

protected String getLockFilterType(com.arsdigita.bebop.PageState state)

addQueryFilters

protected void addQueryFilters(com.arsdigita.persistence.DataQuery query,
                               com.arsdigita.kernel.Party party,
                               com.arsdigita.bebop.PageState state)


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC