|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.yaac.aprs.MessageGroupCatalog
public class MessageGroupCatalog
This class manages the list of callsigns (station and tactical) that are considered for local delivery here.
Method Summary | |
---|---|
LocalDestinationRecord |
addRow()
Create a new initially-disabled LocalDestinationRecord to the catalog. |
void |
deleteRow(int rowIndex)
Delete the specified record from the catalog, including from the Preferences backing store. |
void |
flushToPreferences(LocalDestinationRecord ldr)
Persist the specified LocalDestinationRecord to Preferences. |
LocalDestinationRecord[] |
getCustomDestinations()
Get a list of all locally-defined destinations. |
static MessageGroupCatalog |
getInstance()
Get the singleton MessageGroupCatalog object. |
LocalDestinationRecord |
getLocalDestination(java.lang.String callsign)
Test if the specified addressee is recognized as an alias for the local station. |
int |
getMessageGroupCount()
Get the number of message groups registered in the catalog. |
LocalDestinationRecord |
getRow(int rowIndex)
Get the Nth record in the MessageGroupCatalog. |
void |
init(java.util.prefs.Preferences prefs)
Load the MessageGroupCatalog with persisted values from the Java Preferences store. |
LocalDestinationRecord |
insertDefaultRow(int row,
java.lang.String callsign)
Create a new initially-enabled LocalDestinationRecord at the specified index within the catalog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MessageGroupCatalog getInstance()
public void init(java.util.prefs.Preferences prefs) throws java.util.prefs.BackingStoreException
prefs
- root Preferences node of YAAC configuration
java.util.prefs.BackingStoreException
- if preferences could not be read for any reasonpublic int getMessageGroupCount()
public LocalDestinationRecord getRow(int rowIndex)
rowIndex
- zero-based index of record to fetch
public LocalDestinationRecord addRow()
public LocalDestinationRecord insertDefaultRow(int row, java.lang.String callsign)
row
- zero-based index where new record should be insertedcallsign
- String alias to be assigned to the new record
public void flushToPreferences(LocalDestinationRecord ldr)
ldr
- LocalDestinationRecord to savepublic void deleteRow(int rowIndex)
rowIndex
- zero-based index of record to deletepublic LocalDestinationRecord getLocalDestination(java.lang.String callsign)
callsign
- String to test against known local aliases
public LocalDestinationRecord[] getCustomDestinations()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |