|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.swing.AbstractListModel
|
+--javax.swing.DefaultListModel
|
+--org.fopps.ui.log.LogListModel
LogListModel is a specialized model for the log dialog. It provides methods to add different kinds of messages (info, warning, error).
LogDialog,
Serialized Form| Nested Class Summary | |
class |
LogListModel.MessageEntry
Wrapper class for message entries |
| Field Summary | |
static int |
ERROR
Value for error messages |
static int |
INFORMATION
Value for information messages |
static int |
WARNING
Value for warning messages |
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| Constructor Summary | |
LogListModel()
Creates an empty log list model |
|
| Method Summary | |
void |
addErrorMessage(java.lang.String pMessage)
Adds an error message to the list |
void |
addInfoMessage(java.lang.String pMessage)
Adds an information message to the list |
void |
addWarningMessage(java.lang.String pMessage)
Adds a warning message to the list |
void |
clearMessages()
Removes all messages from the list |
java.lang.Object |
getElementAt(int index)
Returns the value at the specified index. |
int |
getErrors()
Returns the number of error in the list |
int |
getSize()
Returns the length of the list. |
int |
getWarnings()
Returns the number of warnings in the list |
| Methods inherited from class javax.swing.DefaultListModel |
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize |
| Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int INFORMATION
public static final int WARNING
public static final int ERROR
| Constructor Detail |
public LogListModel()
| Method Detail |
public void addInfoMessage(java.lang.String pMessage)
pMessage - Message to insertpublic void addWarningMessage(java.lang.String pMessage)
pMessage - Message to insertpublic void addErrorMessage(java.lang.String pMessage)
pMessage - Message to insertpublic int getWarnings()
public int getErrors()
public void clearMessages()
public int getSize()
getSize in interface javax.swing.ListModelgetSize in class javax.swing.DefaultListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelgetElementAt in class javax.swing.DefaultListModelindex - the requested index
index
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||