com.aurel.track.dropdowns
Class StateBeans
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
com.aurel.track.dropdowns.BaseDropDowns
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 java.util.AbstractList |
modCount |
|
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 |
pStates
public java.util.ArrayList pStates
StateBeans
public StateBeans(java.util.Locale locale)
StateBeans
public StateBeans()
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 projectlistType - - 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.