|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISettings
The Settings object holds model-specific settings, such as password and last-save version number. It is also a holder for information such as the path to the model file, and the names of the currently active pages within the model.
| Field Summary | |
|---|---|
static String |
AZA
|
static String |
EXCEL
|
static String |
TMP
|
| Fields inherited from interface com.azalient.api.a.tables.IPage |
|---|
ZERO |
| Method Summary | |
|---|---|
boolean |
checkPassword()
Prompt the user to enter the password for this (locked) model. |
String |
currentPageName(PageType type)
Return the active page name of the given type |
void |
currentPageName(PageType type,
String newName)
Store the name of the currently active page of teh given type |
File |
dataFile()
The current data file |
File |
dataFileImport()
The file from which the model was imported |
String |
dataName()
The filename of the current model (not including its directory). |
String |
dataPath()
The directory holding the current model file |
Object |
get(ISettingsKey key)
Get value associated with given key, guaranteed non-null |
boolean |
getB(ISettingsKey key)
Get boolean value associated with given key |
double |
getD(ISettingsKey key)
Get double value associated with given key |
int |
getI(ISettingsKey key)
Get int value associated with given key |
String |
getS(ISettingsKey key)
Get String value associated with given key, guaranteed non-null |
UTime |
getT(ISettingsKey key)
Get UTime value associated with given key, guaranteed non-null |
boolean |
importing()
True during an import process |
String |
newPageName(PageType type)
Create a new unique page name of the given type |
IStore<IPluginInfo> |
pluginInfo()
Get a reference to the plugin information store |
RecordR |
record(PageType pageType,
String pageName,
String tableName,
String recordName)
|
File |
resourcesDir()
The resources directory, base don the name of the current data file |
void |
set(ISettingsKey key,
Object value)
set value associated with key, use null to reset to default (non-null) value |
boolean |
setPassword()
Prompt the user to set a password for this model. |
boolean |
viewLock()
|
void |
viewLock(boolean b)
|
| Methods inherited from interface com.azalient.api.a.tables.IPage |
|---|
baseName, pageName, pageType |
| Field Detail |
|---|
static final String TMP
static final String AZA
static final String EXCEL
| Method Detail |
|---|
IStore<IPluginInfo> pluginInfo()
File dataFile()
File resourcesDir()
File dataFileImport()
boolean importing()
String dataPath()
String dataName()
String newPageName(PageType type)
String currentPageName(PageType type)
void currentPageName(PageType type,
String newName)
Object get(ISettingsKey key)
String getS(ISettingsKey key)
int getI(ISettingsKey key)
double getD(ISettingsKey key)
boolean getB(ISettingsKey key)
UTime getT(ISettingsKey key)
void set(ISettingsKey key,
Object value)
boolean viewLock()
void viewLock(boolean b)
boolean setPassword()
boolean checkPassword()
RecordR record(PageType pageType,
String pageName,
String tableName,
String recordName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||