|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Presentation
The Presentation
interface defines the behavior common to all
GUI component blocks that exist in the log viewer. The methods defined in
this interface are typically call back methods invoked by the Controller at
appropriate instance of time.
Implementations of this interface neednot necessarily be GUI components themselves
and can actually be wrappers if need be.
Controller
Method Summary | |
---|---|
void |
displayPage(IPage page,
long eventSequenceNumber)
Informs this Presentation ot display the specified page and highlight the LogEvent with the specified sequence number. |
boolean |
doesProcessRealTimeUpdates()
Determines if this Presentation updates its GUI representation when new events occur. |
java.lang.String |
getUID()
Gets the UID for this Presentation. |
javax.swing.JComponent |
getViewComponent()
Gets the component that represents the GUI of this Presentation |
void |
notifyWidgetStateChange(Presentation presentation,
int identifier,
java.lang.Object data)
Notifies this Presentation that a widget has changed in the specified Presentation for which this Presentation had registered for widget change updates. |
void |
processRealTimeUpdate(LogEvent event)
Informs this Presentation that a new real time event has occurred. |
void |
resetWidgets()
Informs this Presentation to reset all display widgets |
void |
setScrollLock(boolean status)
Sets the status of the scroll lock for this Presentation. |
Method Detail |
---|
java.lang.String getUID()
void notifyWidgetStateChange(Presentation presentation, int identifier, java.lang.Object data)
presentation
- the Presentation containing the widgetidentifier
- unique identifier of the widget in the Presentationdata
- null or the information returned by the source Presentation containing data in the context of the widget changejavax.swing.JComponent getViewComponent()
boolean doesProcessRealTimeUpdates()
void processRealTimeUpdate(LogEvent event)
#doesProcessRealTimeUpdates()
returns true.
event
- the real time event that was receivedvoid resetWidgets()
void displayPage(IPage page, long eventSequenceNumber)
page
- the IPage to displayeventSequenceNumber
- -1 or the valid sequence number of the LogEvent to be highlightedvoid setScrollLock(boolean status)
lock
- boolean true for scroll lock, false otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |