HistoryRecord class is used to manipulate with items in history list. More...
Public Member Functions | |
HistoryRecord () | |
Class constructor. More... | |
HistoryRecord (int type, String addr, String caption, int x, int y) | |
String | getCaption () |
Returns name of history item. More... | |
void | setCaption (String caption) |
Sets name of history item. More... | |
String | getAddress () |
Returns address of history item. More... | |
void | setAddress (String address) |
int | getHistoryType () |
void | setHistoryType (int historyType) |
Position | getLocation () |
void | setLocation (Position position) |
String | toString () |
Static Public Member Functions | |
static Bundle | writeBundle (HistoryRecord rec) |
static HistoryRecord | readBundle (Bundle b) |
HistoryRecord class is used to manipulate with items in history list.
Instance of HistoryRecord represents one item in history list.
History is list of recent destinations.
HistoryRecord | ( | ) |
Class constructor.
Referenced by HistoryRecord.readBundle().
HistoryRecord | ( | int | type, |
String | addr, | ||
String | caption, | ||
int | x, | ||
int | y | ||
) |
String getAddress | ( | ) |
Returns address of history item.
Referenced by HistoryRecord.writeBundle().
String getCaption | ( | ) |
Returns name of history item.
Name of history item is shown in history list.
Referenced by HistoryRecord.writeBundle().
int getHistoryType | ( | ) |
Notes:
Possible values are:
Referenced by HistoryRecord.writeBundle().
Position getLocation | ( | ) |
Referenced by HistoryRecord.writeBundle().
|
static |
References HistoryRecord.HistoryRecord().
Referenced by ApiHistory.getHistoryList().
void setAddress | ( | String | address | ) |
address | of history item. |
void setCaption | ( | String | caption | ) |
Sets name of history item.
Name of history item is shown in history list.
caption | Caption represents a name of history item. |
void setHistoryType | ( | int | historyType | ) |
Notes:
Possible values are:
historyType | Flag determining type of history item. |
void setLocation | ( | Position | position | ) |
position | the Position class determining location of history item on map. |
String toString | ( | ) |
|
static |