Package io.deephaven.web.client.state
Class ActiveTableBinding
java.lang.Object
io.deephaven.web.client.state.ActiveTableBinding
- All Implemented Interfaces:
HasTableState<ClientTableState>
An active binding describes the link between a
JsTable
and the ClientTableState
it is currently
using.
Each JsTable can only have one ActiveTableBinding; in order to get a new one, you must "lose" your current one (note
the private constructor).
This allows us to control transitions to/from an active state.
Currently, the new state is created and a new binding built off of it, then the old binding is paused.
Equality semantics of this object are based solely on the JsTable object identity.
Instances of these objects start life in the constructor of JsTable
. From there, the only way to get a new
one is to tell the old one to change state.-
Method Summary
Modifier and TypeMethodDescriptionchangeState
(ClientTableState newState) copyBinding
(JsTable table) static ActiveTableBinding
create
(JsTable table, ClientTableState state) boolean
getState()
getTable()
int
hashCode()
boolean
isActive()
void
rollback()
void
setRollback
(PausedTableBinding rollback)
-
Method Details
-
changeState
-
getTable
-
getState
- Specified by:
getState
in interfaceHasTableState<ClientTableState>
-
isActive
public boolean isActive()- Specified by:
isActive
in interfaceHasTableState<ClientTableState>
-
equals
-
hashCode
public int hashCode() -
setRollback
-
create
-
rollback
public void rollback()- Specified by:
rollback
in interfaceHasTableState<ClientTableState>
-
copyBinding
-
getRollback
-
getPaused
-