T - The type of the selected elementspublic final class LoggingSelectionListener<T> extends Object implements SelectionListener<T>
SelectionListener that prints logging information about
the selection changes| Constructor and Description |
|---|
LoggingSelectionListener()
Create a new listener with a default log level
|
LoggingSelectionListener(Level level)
Create a new listener with the given log level
|
| Modifier and Type | Method and Description |
|---|---|
void |
selectionChanged(SelectionEvent<T> selectionEvent)
Will be called when the selection in the
SelectionModel changed |
void |
setLogLevel(Level level)
Set the log level that should be used for the output
|
public LoggingSelectionListener()
public LoggingSelectionListener(Level level)
level - The levelpublic void setLogLevel(Level level)
level - The levelpublic void selectionChanged(SelectionEvent<T> selectionEvent)
SelectionListenerSelectionModel changedselectionChanged in interface SelectionListener<T>selectionEvent - The SelectionEvent describing the changeCopyright © 2015. All rights reserved.