com.arsdigita.cms.ui
Class SortableList

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

public abstract class SortableList
extends com.arsdigita.bebop.List

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: #8 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Randy Graebner (randyg@alum.mit.edu)

Field Summary
protected static String NEXT_EVENT
           
protected static String PREV_EVENT
           
static String versionId
           
 
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
SortableList(com.arsdigita.bebop.ParameterSingleSelectionModel model)
          This just makes a standard SortableList
 
Method Summary
protected  void generateLabelXML(com.arsdigita.bebop.PageState state, com.arsdigita.xml.Element parent, com.arsdigita.bebop.Label label, String key)
           
 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.
 
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, respond, 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

PREV_EVENT

protected static final String PREV_EVENT
See Also:
Constant Field Values

NEXT_EVENT

protected static final String NEXT_EVENT
See Also:
Constant Field Values
Constructor Detail

SortableList

public SortableList(com.arsdigita.bebop.ParameterSingleSelectionModel model)
This just makes a standard SortableList

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.


generateLabelXML

protected void generateLabelXML(com.arsdigita.bebop.PageState state,
                                com.arsdigita.xml.Element parent,
                                com.arsdigita.bebop.Label label,
                                String key)


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