com.arsdigita.cms.ui.category
Class OrderedCategorizedObjectsList

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.List
              extended bycom.arsdigita.cms.ui.SortableList
                  extended bycom.arsdigita.cms.ui.category.SortableCategoryList
                      extended bycom.arsdigita.cms.ui.category.CategorizedObjectsList
                          extended bycom.arsdigita.cms.ui.category.OrderedCategorizedObjectsList
All Implemented Interfaces:
com.arsdigita.bebop.util.BebopConstants, Cloneable, com.arsdigita.bebop.Component, com.arsdigita.util.Lockable

public class OrderedCategorizedObjectsList
extends CategorizedObjectsList

This list offers the option for the code to provide the developer with links to sort the given categories. NOTE: This UI currently does not scale well with large numbers of items since it just lists all of them. It would probably be nice to integrate a paginator as well to as to allow the user to move an item in large distances and to insert an item in the middle. Right now, when you add an item it is just placed at the end. However, if you want the item to appear in the middle then you must hit the "up" arrow n/2 times where n is the number of items in the list. This clearly is not a good setup.

Version:
$Revision: #10 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Randy Graebner (randyg@alum.mit.edu)

Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.cms.ui.category.CategorizedObjectsList
CATEGORIZED_OBJECTS, CHILDREN
 
Fields inherited from class com.arsdigita.bebop.List
EMPTY_MODEL, HORIZONTAL, SELECTED, VERTICAL
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.bebop.util.BebopConstants
BEBOP_BORDER, BEBOP_BOXPANEL, BEBOP_CELL, BEBOP_CHECKBOX, BEBOP_CHECKBOXGROUP, BEBOP_COLUMNPANEL, BEBOP_DATE, BEBOP_DATETIME, BEBOP_DHTMLEDITOR, BEBOP_FORMERRORS, BEBOP_FORMWIDGET, BEBOP_GRIDPANEL, BEBOP_LIST, BEBOP_MULTISELECT, BEBOP_OPTION, BEBOP_PAD, BEBOP_PADFRAME, BEBOP_PANELROW, BEBOP_PORTAL, BEBOP_PORTLET, BEBOP_RADIO, BEBOP_RADIOGROUP, BEBOP_SEG_BODY, BEBOP_SEG_HEADER, BEBOP_SEG_PANEL, BEBOP_SEGMENT, BEBOP_SELECT, BEBOP_TABLE, BEBOP_TABLEBODY, BEBOP_TABLEROW, BEBOP_TEXTAREA
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
OrderedCategorizedObjectsList(CategoryRequestLocal category)
          This just makes a standard OrderedCategorizedObjectsList
 
Method Summary
 void generateXML(com.arsdigita.bebop.PageState state, com.arsdigita.xml.Element parent)
          This geneates the XML as specified by the arguments pass in to the constructor.
 void respond(com.arsdigita.bebop.PageState ps)
          This actually performs the sorting
 
Methods inherited from class com.arsdigita.cms.ui.category.CategorizedObjectsList
getCategory, getSwapID
 
Methods inherited from class com.arsdigita.cms.ui.SortableList
generateLabelXML
 
Methods inherited from class com.arsdigita.bebop.List
addActionListener, addChangeListener, clearSelection, createChangeListener, fireActionEvent, fireStateChanged, getCellRenderer, getEmptyView, getLayout, getModel, getModelBuilder, getSelectedKey, getSelectionModel, getStateParamsAreRegistered, isSelected, register, removeActionListener, removeChangeListener, setCellRenderer, setEmptyView, setLayout, setListData, setListData, setModelBuilder, setSelectedKey, setSelectionModel, setStateParamsAreRegistered
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
children, clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, 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
 

Field Detail

versionId

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

OrderedCategorizedObjectsList

public OrderedCategorizedObjectsList(CategoryRequestLocal category)
This just makes a standard OrderedCategorizedObjectsList

Method Detail

generateXML

public void generateXML(com.arsdigita.bebop.PageState state,
                        com.arsdigita.xml.Element parent)
This geneates the XML as specified by the arguments pass in to the constructor.

Specified by:
generateXML in interface com.arsdigita.bebop.Component
Overrides:
generateXML in class SortableList

respond

public void respond(com.arsdigita.bebop.PageState ps)
             throws javax.servlet.ServletException
Description copied from class: CategorizedObjectsList
This actually performs the sorting

Specified by:
respond in interface com.arsdigita.bebop.Component
Overrides:
respond in class CategorizedObjectsList
Throws:
javax.servlet.ServletException


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