Interface ViewportAdjuster
- All Known Implementing Classes:
DbViewportAdjustmentListener
,IrisTreeTableModel
public interface ViewportAdjuster
This interface defines a class that will respond to adjustments in a table's viewport.
-
Method Summary
Modifier and Type Method Description void
closeViewPort()
Close the existing viewport and clean up all table resources.void
computeNewViewport(boolean forceUpdate)
Compute a new viewport.void
disconnectViewport()
Disconnect the current adjuster from the viewport, but do not clean up table resourcesvoid
setEmbeddedDbConsole(EmbeddedDbConsole console)
Set the EmbeddedDBConsole for issuing queries, if available.void
setPersistentQueryClient(PersistentQueryClient client)
Set the PQ client to issue remote queries to.void
setScrollPane(JScrollPane pane)
Set the scroll pane to listen to events from.void
setView(IrisView view)
Set the IrisView underneath which this adjuster resides.void
suspendViewport()
Suspend processing of events generated by the underlying model.
-
Method Details
-
computeNewViewport
void computeNewViewport(boolean forceUpdate)Compute a new viewport.- Parameters:
forceUpdate
- force an update, even if no changes were detected.
-
closeViewPort
void closeViewPort()Close the existing viewport and clean up all table resources. -
disconnectViewport
void disconnectViewport()Disconnect the current adjuster from the viewport, but do not clean up table resources -
suspendViewport
void suspendViewport()Suspend processing of events generated by the underlying model. -
setView
Set the IrisView underneath which this adjuster resides.- Parameters:
view
- the IrisView.
-
setPersistentQueryClient
Set the PQ client to issue remote queries to.- Parameters:
client
- the PQ Client
-
setEmbeddedDbConsole
Set the EmbeddedDBConsole for issuing queries, if available. Note that onlysetPersistentQueryClient(PersistentQueryClient)
or this should be called, not both.- Parameters:
console
- the Console
-
setScrollPane
Set the scroll pane to listen to events from.- Parameters:
pane
- The scrollpane
-