public interface ColumnObserver
Column observer can be used to periodically monitor changes made to a column. This scenario is common is multi-threaded applications where a thread is responsible to take action when something has changed in the column's data.
Column observer users should periodically call the
hasColumnChanged()
method to check the status. Each call resets
the observer so if the method returns true and the table doesn't change after
that it will return false next time.
This observer monitors all the rows for this column and consider something has changed when an element's value for this column has been changed.
Observers should be destroyed when not needed anymore. A new observer can be
obtained from the Column
.
Column
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys this observer.
|
Column |
getColumn()
Gets the column this observer belongs to.
|
boolean |
hasColumnChanged()
Returns true if the column has changed.
|
boolean |
isDestroyed()
Returns true if this observer has been destroyed.
|
boolean hasColumnChanged()
Column getColumn()
void destroy()
boolean isDestroyed()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.