phenote.datamodel
Class ValueCharacterList
java.lang.Object
phenote.datamodel.ValueCharacterList
- All Implemented Interfaces:
- CharacterListI
public class ValueCharacterList
- extends java.lang.Object
- implements CharacterListI
A CharacterListI implementation which represents the contents of a CharFieldValue as a
list of characters which can be edited in a separate character table view. Currently
the field value is parsed into separate fields by splitting on " " - this is useful for
transparently interacting with the existing CharFieldValue data model, but not very robust.
- Author:
- Jim Balhoff
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueCharacterList
public ValueCharacterList(CharFieldValue aValue)
add
public void add(CharacterI c)
- Specified by:
add in interface CharacterListI
add
public void add(int order,
CharacterI c)
- Specified by:
add in interface CharacterListI
clear
public void clear()
- Specified by:
clear in interface CharacterListI
equals
public boolean equals(CharacterListI cl)
- Specified by:
equals in interface CharacterListI
get
public CharacterI get(int i)
- Specified by:
get in interface CharacterListI
getList
public ca.odell.glazedlists.EventList<CharacterI> getList()
- Specified by:
getList in interface CharacterListI
indexOf
public int indexOf(CharacterI c)
- Specified by:
indexOf in interface CharacterListI
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface CharacterListI
remove
public void remove(int i)
- Specified by:
remove in interface CharacterListI
remove
public void remove(CharacterI c)
- Specified by:
remove in interface CharacterListI
size
public int size()
- Specified by:
size in interface CharacterListI
removeCharChangeListener
public void removeCharChangeListener()
getNonBlankList
public ca.odell.glazedlists.EventList<CharacterI> getNonBlankList()
- return all characters that arent blanks. this is handy as blanks are really
just an artifact of the gui. a character that has auto-generated fields filled
in is still considered blank (like date_created). uses hasNoContent()
- Specified by:
getNonBlankList in interface CharacterListI
getNonBlankCharList
public CharacterListI getNonBlankCharList()
- Specified by:
getNonBlankCharList in interface CharacterListI