com.aurel.track.dropdowns
Class StateBeans

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by com.aurel.track.dropdowns.BaseDropDowns
                  extended by com.aurel.track.dropdowns.StateBeans
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class StateBeans
extends BaseDropDowns

This class provides a StateBeans Arraylist mainly for displaying the list of available issue states in a drop down list. It loads the array from the database tables as defined in Constants.java. A subset of the object filtered according to the just selected project can be registered in a given servlet context and can be retrieved from there by e.g. List = (ArrayList) pageContext.findAttribute(Constants.TSTATE);

Version:
$Revision: 1.23 $ $Date: 2007-09-06 19:34:57 $
Author:
Joerg Friedrich
See Also:
Serialized Form

Field Summary
 java.util.ArrayList pStates
           
 
Fields inherited from class com.aurel.track.dropdowns.BaseDropDowns
beanClassName, boxLabels, dynamicList, locale, peerClassName, persistentObjects, rpLabels, TableName, user
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
StateBeans()
           
StateBeans(java.util.Locale locale)
           
 
Method Summary
protected  void fillbox(java.util.List list)
          Fills the selection list (this) object with LabelValue beans retrieved from the list of persistent objects in the database.
 boolean fillDynamicBoxes(TProject project, int listTypeObjectID, int stateFromObjectID, TPerson person)
          The detail objects of ProjectBeans depend on the selected projectType, selected listType, selected stateFrom and tPerson.
 StateBean getStateBeanByLabel(java.lang.String label)
           
 StateBean getStateBeanByValue(java.lang.String value)
           
 java.util.ArrayList getStates()
           
 java.util.List loadPstates(java.lang.String project, java.lang.String listType)
          This method loads all state for this project type and list type
 
Methods inherited from class com.aurel.track.dropdowns.BaseDropDowns
fillbox, fillDynamicBoxes, fillDynamicBoxes, getLabel, getLabel, getPersistentObject, getValue, load, registerAttribute, removeAttribute, replaceLabel, replaceLabels
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

pStates

public java.util.ArrayList pStates
Constructor Detail

StateBeans

public StateBeans(java.util.Locale locale)

StateBeans

public StateBeans()
Method Detail

loadPstates

public java.util.List loadPstates(java.lang.String project,
                                  java.lang.String listType)
This method loads all state for this project type and list type

Parameters:
project - - the current project
listType - - the current list type
Returns:
ArrayList with available states

fillbox

protected void fillbox(java.util.List list)
Description copied from class: BaseDropDowns
Fills the selection list (this) object with LabelValue beans retrieved from the list of persistent objects in the database.

Overrides:
fillbox in class BaseDropDowns
Parameters:
list - list of persistent objects

fillDynamicBoxes

public boolean fillDynamicBoxes(TProject project,
                                int listTypeObjectID,
                                int stateFromObjectID,
                                TPerson person)
The detail objects of ProjectBeans depend on the selected projectType, selected listType, selected stateFrom and tPerson. This method makes visible only those detail rows that are allowed for this user.


getStates

public java.util.ArrayList getStates()

getStateBeanByValue

public StateBean getStateBeanByValue(java.lang.String value)

getStateBeanByLabel

public StateBean getStateBeanByLabel(java.lang.String label)


Issue Tracking with Track+: Home Page      Copyright © 2008 Trackplus. All Rights Reserved.