edu.umd.cfar.lamp.apploader.propertysheets
Class ExplicitProperties

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byedu.umd.cfar.lamp.apploader.propertysheets.ExplicitProperties
All Implemented Interfaces:
java.util.Collection, InstancePropertyList, java.util.List

public class ExplicitProperties
extends java.util.AbstractList
implements InstancePropertyList

A property sheet, allowing the user to edit different properties. The default implementation uses the javabean standard naming conventions to extract property names and types. The user/system can override this with a the preferences. The explicit properties are all the ones mentioned in the hasProperties or propertyOrder links. They are instances of the InstancePropertyDescriptor interface.


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ExplicitProperties()
          Create a new, empty property sheet.
 
Method Summary
 void add(int index, java.lang.Object element)
           
 boolean add(java.lang.Object o)
           
 boolean addAll(java.util.Collection c)
           
 boolean addAll(int index, java.util.Collection c)
           
 void clear()
          Removes all properties.
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection c)
           
 boolean equals(java.lang.Object obj)
          Tests to see that the property lists are equal.
 java.lang.Object get(int index)
           
 java.lang.Object getObject()
          Get the current instance object.
 PrefsManager getPrefs()
          Gets the associated application preferences.
 int hashCode()
           
 int indexOf(java.lang.Object o)
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 int lastIndexOf(java.lang.Object o)
           
 java.util.ListIterator listIterator()
           
 java.util.ListIterator listIterator(int index)
           
 void refresh()
          Indicates that the object's value has changed, although its reference has not.
 java.lang.Object remove(int index)
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection c)
           
 boolean retainAll(java.util.Collection c)
           
 java.lang.Object set(int index, java.lang.Object element)
           
 void setObject(java.lang.Object o)
          Set the instance object that this is looking at.
 void setPrefs(PrefsManager manager)
          Sets the associated application preferences.
 void setProps(java.util.List props)
          Sets the properties to the given list of properties.
 int size()
           
 java.util.List subList(int fromIndex, int toIndex)
           
 java.lang.Object[] toArray()
           
 java.lang.Object[] toArray(java.lang.Object[] a)
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.AbstractList
removeRange
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExplicitProperties

public ExplicitProperties()
Create a new, empty property sheet.

Method Detail

getPrefs

public PrefsManager getPrefs()
Gets the associated application preferences.

Returns:
The application preferences

setPrefs

public void setPrefs(PrefsManager manager)
Sets the associated application preferences.

Parameters:
manager - the application preferences

setProps

public void setProps(java.util.List props)
Sets the properties to the given list of properties.

Parameters:
props - All of the properties.

setObject

public void setObject(java.lang.Object o)
Set the instance object that this is looking at.

Specified by:
setObject in interface InstancePropertyList
Parameters:
o - The new object.
See Also:
InstancePropertyList.setObject(Object)

getObject

public java.lang.Object getObject()
Get the current instance object.

Specified by:
getObject in interface InstancePropertyList
Returns:
The instance that this is currently wrapping.

refresh

public void refresh()
Description copied from interface: InstancePropertyList
Indicates that the object's value has changed, although its reference has not.

Specified by:
refresh in interface InstancePropertyList
See Also:
InstancePropertyList.refresh()

clear

public void clear()
Removes all properties.

Specified by:
clear in interface java.util.List
See Also:
List.clear()

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.List
See Also:
List.contains(java.lang.Object)

containsAll

public boolean containsAll(java.util.Collection c)
Specified by:
containsAll in interface java.util.List
See Also:
List.containsAll(java.util.Collection)

equals

public boolean equals(java.lang.Object obj)
Tests to see that the property lists are equal.

Specified by:
equals in interface java.util.List
See Also:
List.equals(java.lang.Object)

get

public java.lang.Object get(int index)
Specified by:
get in interface java.util.List
See Also:
List.get(int)

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.List
See Also:
List.hashCode()

indexOf

public int indexOf(java.lang.Object o)
Specified by:
indexOf in interface java.util.List
See Also:
List.indexOf(java.lang.Object)

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.List
See Also:
List.isEmpty()

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface java.util.List
See Also:
List.iterator()

lastIndexOf

public int lastIndexOf(java.lang.Object o)
Specified by:
lastIndexOf in interface java.util.List
See Also:
List.lastIndexOf(java.lang.Object)

listIterator

public java.util.ListIterator listIterator()
Specified by:
listIterator in interface java.util.List
See Also:
List.listIterator()

listIterator

public java.util.ListIterator listIterator(int index)
Specified by:
listIterator in interface java.util.List
See Also:
List.listIterator(int)

remove

public java.lang.Object remove(int index)
Specified by:
remove in interface java.util.List
See Also:
List.remove(int)

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.List
See Also:
List.remove(java.lang.Object)

removeAll

public boolean removeAll(java.util.Collection c)
Specified by:
removeAll in interface java.util.List
See Also:
List.removeAll(java.util.Collection)

retainAll

public boolean retainAll(java.util.Collection c)
Specified by:
retainAll in interface java.util.List
See Also:
List.retainAll(java.util.Collection)

set

public java.lang.Object set(int index,
                            java.lang.Object element)
Specified by:
set in interface java.util.List
See Also:
List.set(int, java.lang.Object)

size

public int size()
Specified by:
size in interface java.util.List
See Also:
List.size()

subList

public java.util.List subList(int fromIndex,
                              int toIndex)
Specified by:
subList in interface java.util.List
See Also:
List.subList(int, int)

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.List
See Also:
List.toArray()

toArray

public java.lang.Object[] toArray(java.lang.Object[] a)
Specified by:
toArray in interface java.util.List
See Also:
List.toArray(java.lang.Object[])

toString

public java.lang.String toString()
See Also:
AbstractCollection.toString()

add

public void add(int index,
                java.lang.Object element)
Specified by:
add in interface java.util.List
See Also:
List.add(int, java.lang.Object)

add

public boolean add(java.lang.Object o)
Specified by:
add in interface java.util.List
See Also:
List.add(java.lang.Object)

addAll

public boolean addAll(int index,
                      java.util.Collection c)
Specified by:
addAll in interface java.util.List
See Also:
List.addAll(int, java.util.Collection)

addAll

public boolean addAll(java.util.Collection c)
Specified by:
addAll in interface java.util.List
See Also:
List.addAll(java.util.Collection)