|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.logging.console.LogConsoleModel
public class LogConsoleModel
This class is the model used in LogConsole.
The model deals with ChangeEvent to notify ui, model has changed.
| Field Summary | |
|---|---|
protected List<String> |
allItems
list of all items we keep in store |
protected ChangeEvent |
changeEvent
The unique changeEvent |
protected long |
firstLinePosition
the position of the first line in model |
protected String |
from
default from from mail send |
protected int |
levels
the levels to filter |
protected EventListenerList |
listenerList
to contains listeners |
protected File |
logFile
the real log file |
protected long |
nbLines
the size of the stream |
protected int |
nbLinesInEditor
the maximum number of items to display in ui |
protected String |
searchText
the text to filter |
protected String |
smtpServer
server to use for mail send |
protected String |
to
default destinataire for mail send |
| Constructor Summary | |
|---|---|
LogConsoleModel(File logFile,
int nbLinesInEditor,
String smtpServer,
String fromMail,
String to)
|
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener l)
Adds a ChangeListener to the button. |
boolean |
canReset()
|
protected void |
fireStateChanged()
Notifies all listeners that have registered interest for notification on this event type. |
ChangeListener[] |
getChangeListeners()
Returns an array of all the ChangeListeners added
to this AbstractButton with addChangeListener(). |
long |
getFirstLinePosition()
|
String |
getFrom()
|
long |
getLastLinePosition()
|
int |
getLevels()
|
File |
getLogFile()
|
long |
getNbLines()
|
int |
getNbLinesInEditor()
|
String |
getSearchText()
|
String |
getSmtpServer()
|
String |
getText()
|
boolean |
isBOF()
|
boolean |
isEOF()
|
void |
removeChangeListener(ChangeListener l)
Removes a ChangeListener from the button. |
void |
setEmailFrom(String from)
|
void |
setEmailTo(String to)
|
void |
setFirstLinePosition(long firstLinePosition)
|
void |
setLevels(int levels)
|
void |
setNbLines(long nbLines)
|
void |
setNbLinesInEditor(int nbLinesInEditor)
|
void |
setSearchText(String searchText)
|
void |
setSmtpServer(String smtpServer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int nbLinesInEditor
protected long nbLines
protected String searchText
protected int levels
protected File logFile
protected String smtpServer
protected String to
protected String from
protected long firstLinePosition
protected List<String> allItems
protected EventListenerList listenerList
protected ChangeEvent changeEvent
| Constructor Detail |
|---|
public LogConsoleModel(File logFile,
int nbLinesInEditor,
String smtpServer,
String fromMail,
String to)
| Method Detail |
|---|
public String getText()
public boolean canReset()
public long getNbLines()
public File getLogFile()
public long getFirstLinePosition()
public long getLastLinePosition()
public int getLevels()
public String getSearchText()
public void setSmtpServer(String smtpServer)
public void setEmailTo(String to)
public void setEmailFrom(String from)
public void setFirstLinePosition(long firstLinePosition)
public void setSearchText(String searchText)
public void setNbLines(long nbLines)
public void setLevels(int levels)
public int getNbLinesInEditor()
public void setNbLinesInEditor(int nbLinesInEditor)
public boolean isBOF()
public boolean isEOF()
public String getFrom()
public String getSmtpServer()
public void addChangeListener(ChangeListener l)
ChangeListener to the button.
l - the listener to be addedpublic void removeChangeListener(ChangeListener l)
l - the listener to be removedpublic ChangeListener[] getChangeListeners()
ChangeListeners added
to this AbstractButton with addChangeListener().
ChangeListeners added or an empty
array if no listeners have been addedprotected void fireStateChanged()
EventListenerList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||