project35.util
Class DisplayNameList

java.lang.Object
  extended by project35.util.DisplayNameList

public class DisplayNameList
extends java.lang.Object

does ordered list management for objects that implement the DisplayNameProvider interface.


Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net),

Constructor Summary
DisplayNameList()
           
DisplayNameList(java.util.ArrayList displayNameProviders)
           
DisplayNameList(DisplayNameProvider[] displayNameProviders)
           
 
Method Summary
 void addItem(java.lang.String name, java.lang.Object item)
           
 void appendDisplayNameList(DisplayNameList displayNameList)
          add another list on top of the other one
 java.lang.String[] getDisplayNames()
           
 java.lang.Object getObject(int listIndex)
           
 java.lang.Object getObject(java.lang.String displayName)
           
 boolean isValidIndex(int index)
           
 boolean isValidName(java.lang.String displayName)
           
 void sort()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayNameList

public DisplayNameList()

DisplayNameList

public DisplayNameList(java.util.ArrayList displayNameProviders)

DisplayNameList

public DisplayNameList(DisplayNameProvider[] displayNameProviders)
Method Detail

getDisplayNames

public java.lang.String[] getDisplayNames()

getObject

public java.lang.Object getObject(java.lang.String displayName)

getObject

public java.lang.Object getObject(int listIndex)

isValidName

public boolean isValidName(java.lang.String displayName)

isValidIndex

public boolean isValidIndex(int index)

addItem

public void addItem(java.lang.String name,
                    java.lang.Object item)

sort

public void sort()

appendDisplayNameList

public void appendDisplayNameList(DisplayNameList displayNameList)
add another list on top of the other one