|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.micello.mapapi.ErrorMonitor
public class ErrorMonitor
This class is used to display messages. The application must set the ActivityContext to enable printing the error message. Error messages are printed if an ActivityContext is set and if not they are queued for later display. The SDK code posts errors to this object for display.
| Field Summary |
|---|
| Fields inherited from interface com.micello.mapapi.data.CommunityChangedListener |
|---|
COMMUNITY_CHANGED, DRAWING_CHANGED, ENTITIES_LOADED, GEOMETRY_LOADED, LEVEL_CHANGED, LEVEL_READY, META_DATA_LOADED |
| Constructor Summary | |
|---|---|
ErrorMonitor()
|
|
| Method Summary | |
|---|---|
void |
addMessageToQueue(java.lang.Integer errorCode)
This method adds an error code to the message queue. |
void |
onCommunityChanged(Community community,
Drawing drawing,
DrawingLevel level,
int flags)
This is part of a listener method to monitor for errors. |
void |
onCommunityError(int cid,
int did,
int lid,
int error,
int flags)
This is part of a listener method to monitor for errors. |
void |
onMapThemeLoaded(MapTheme mapTheme)
This is part of a listener method to monitor for errors. |
void |
onThemeError(int error)
This is part of a listener method to monitor for errors. |
void |
onThemeLoaded(Theme t)
This is part of a listener method to monitor for errors. |
void |
setActivityContext(Activity activity)
This method should be called when an activity is active. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorMonitor()
| Method Detail |
|---|
public void setActivityContext(Activity activity)
activity - The activitypublic void addMessageToQueue(java.lang.Integer errorCode)
public void onCommunityChanged(Community community,
Drawing drawing,
DrawingLevel level,
int flags)
onCommunityChanged in interface CommunityChangedListenercommunity - The relevant community object. May be null.drawing - The relevant drawing object. May be null.level - The relevent level object. May be null.flags - flags indicating the event
public void onCommunityError(int cid,
int did,
int lid,
int error,
int flags)
onCommunityError in interface CommunityChangedListenercid - The relavant community iddid - The relevant drawing idlid - The relevant level iderror - An error codeflags - flags indicating the eventpublic void onThemeLoaded(Theme t)
onThemeLoaded in interface ThemeDataListenerpublic void onThemeError(int error)
onThemeError in interface ThemeDataListenerpublic void onMapThemeLoaded(MapTheme mapTheme)
onMapThemeLoaded in interface MapThemeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||