|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeer2me.util.Log
public class Log
A class for handling the information and feedback given by the framework. Will present the user/developer with a response system used to present information and debug-options. Embeds enumeration-funcionality and exposes methods for handling the log. ShowDate is default set to false
Constructor Summary | |
---|---|
Log()
|
Method Summary | |
---|---|
void |
addElement(LogElementType type,
java.lang.String text)
Adds a new entry to the log |
LogElement |
getElementAt(int index)
Gets a log-entry at the specified index. |
LogElement[] |
getElements()
Gets all the log-entries as an array of LogElements |
LogElement[] |
getElements(LogElementType type)
Gets all the log-entries as an array of LogElements based on the LogEntryType |
javax.microedition.lcdui.List |
getElementsAsList()
Creates a javax.microedition.lcdui.List based on the elements in the log. |
javax.microedition.lcdui.List |
getElementsAsList(LogElementType type)
Creates a javax.microedition.lcdui.List based on the the given elementtype and elements in the log. |
javax.microedition.lcdui.List |
getElementsAsList(java.lang.String title)
Creates a javax.microedition.lcdui.List based on the elements in the log. |
javax.microedition.lcdui.List |
getElementsAsList(java.lang.String title,
LogElementType type)
Creates a javax.microedition.lcdui.List based on the the given elementtype and elements in the log. |
LogElement |
getFirstElement()
Gets the first element added to the log. |
static Log |
getInstance()
Gets the current or creates a new instance of the log. |
LogElement |
getLastElement()
Gets the last element added to the log. |
LogElement |
getNextElement()
Gets the next LogElement from the log. |
LogElement |
getPreviousElement()
Gets the previous LogElement from the log. |
boolean |
isShowDate()
Gets true if date is to be shown, else false |
boolean |
isShowTime()
|
boolean |
isTurnedOn()
|
void |
setTurnedOn(boolean turnedOn)
|
void |
showDate(boolean showDate)
Sets if the date is to be shown in the log-entry |
void |
showTime(boolean showTime)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Log()
Method Detail |
---|
public static Log getInstance()
public void showDate(boolean showDate)
showDate
- True if the date is to be shown, else falsepublic void showTime(boolean showTime)
public boolean isShowDate()
public boolean isShowTime()
public void addElement(LogElementType type, java.lang.String text)
type
- The type of entry;LogElementTypetext
- A description of the entrypublic LogElement getElementAt(int index)
index
- The index of the log-entry
public LogElement getFirstElement()
public LogElement getLastElement()
public LogElement getNextElement()
public LogElement getPreviousElement()
public LogElement[] getElements()
public LogElement[] getElements(LogElementType type)
type
- the type of log-entry to get
public javax.microedition.lcdui.List getElementsAsList()
public javax.microedition.lcdui.List getElementsAsList(LogElementType type)
The
- type of log-entries to show
public javax.microedition.lcdui.List getElementsAsList(java.lang.String title)
title
- the title of the List
public javax.microedition.lcdui.List getElementsAsList(java.lang.String title, LogElementType type)
title
- the title of the Listtype
- The type of log-entries to show
public boolean isTurnedOn()
public void setTurnedOn(boolean turnedOn)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |