Java SDK for 2D
 All Classes Namespaces Functions Variables Pages
HistoryRecord Class Reference

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

Class constructor.

Referenced by HistoryRecord.readBundle().

HistoryRecord ( int  type,
String  addr,
String  caption,
int  x,
int  y 
)

Member Function Documentation

String getAddress ( )

Returns address of history item.

Returns
A new string to address of history item.

Referenced by HistoryRecord.writeBundle().

String getCaption ( )

Returns name of history item.

Name of history item is shown in history list.

Returns
A new string to name of history item.

Referenced by HistoryRecord.writeBundle().

int getHistoryType ( )

Notes:
Possible values are:

  • 0 None.
  • 1 Name hierarchy address.
  • 2 Name hierarchy POI.
  • 3 Name hierarchy postal.
  • 4 Click point.
  • 5 Favorite.
  • 6 GPS position.
  • 7 Homebase.
  • 8 Name hierarchy POI custom.
Returns
Flag determining type of history item.

Referenced by HistoryRecord.writeBundle().

Position getLocation ( )
Returns
Position class determining location of history item on map.

Referenced by HistoryRecord.writeBundle().

static HistoryRecord readBundle ( Bundle  b)
static
void setAddress ( String  address)
Parameters
addressof history item.
void setCaption ( String  caption)

Sets name of history item.

Name of history item is shown in history list.

Parameters
captionCaption represents a name of history item.
void setHistoryType ( int  historyType)

Notes:
Possible values are:

  • 0 None.
  • 1 Name hierarchy address.
  • 2 Name hierarchy POI.
  • 3 Name hierarchy postal.
  • 4 Click point.
  • 5 Favorite.
  • 6 GPS position.
  • 7 Homebase.
  • 8 Name hierarchy POI custom.
Parameters
historyTypeFlag determining type of history item.
void setLocation ( Position  position)
Parameters
positionthe Position class determining location of history item on map.
String toString ( )