|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the string list interface in an Asaph model. It is used in various places to represent an ordered list of strings, each represented by a SimpleString.
Method Summary | |
void |
clear(UndoableEditListener undoListener)
Clear the string list |
SimpleString |
getNextString(SimpleString reference)
Get the next string following reference. |
SimpleString |
getNthString(int n)
Get the nth string |
SimpleString |
getPreviousString(SimpleString reference)
Get the previous string preceding reference. |
int |
getStringCount()
Get the number of strings in the list |
SimpleString |
insertStringAfter(SimpleString after,
String str,
UndoableEditListener undoListener)
Add a string to the list at the given position |
SimpleString |
insertStringBefore(SimpleString before,
String str,
UndoableEditListener undoListener)
Add a string to the list at the given position |
void |
removeString(SimpleString str,
UndoableEditListener undoListener)
Remove a SimpleString from the list. |
Methods inherited from interface com.virtuosotechnologies.asaph.model.SongMember |
getSong, isDefunct |
Method Detail |
public int getStringCount()
public SimpleString getNthString(int n)
n
- index
public SimpleString getNextString(SimpleString reference)
reference
- reference SimpleString
IllegalArgumentException
- reference is not a memberpublic SimpleString getPreviousString(SimpleString reference)
reference
- reference SimpleString
IllegalArgumentException
- reference is not a memberpublic SimpleString insertStringBefore(SimpleString before, String str, UndoableEditListener undoListener)
before
- insert before this string, or at the end if nullstr
- string valueundoListener
- listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
IllegalArgumentException
- before is not a member
NullPointerException
- str was nullpublic SimpleString insertStringAfter(SimpleString after, String str, UndoableEditListener undoListener)
after
- insert after this string, or at the beginning if nullstr
- string valueundoListener
- listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
IllegalArgumentException
- after is not a member
NullPointerException
- str was nullpublic void removeString(SimpleString str, UndoableEditListener undoListener)
str
- string to removeundoListener
- listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
IllegalArgumentException
- str is not a member
NullPointerException
- str was nullpublic void clear(UndoableEditListener undoListener)
undoListener
- listener to notify if an undoable edit is generated,
or null to suppress generation of undoable edits
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |