Package org.dellroad.stuff.vaadin7
Interface Connectable
-
- All Known Implementing Classes:
AbstractQueryContainer,AbstractSimpleContainer,AbstractUnsizedContainer,EnumContainer,SelfKeyedContainer,SimpleContainer,SimpleKeyedContainer,VaadinSessionContainer
public interface ConnectableGeneric interface supporting connection and disconnection.Intended for use by any class in a Vaadin session that connects/disconnects to/from non-Vaadin "back-end" resources, typically
Containers. Some type of interface like this is required because forContainers that connect to back-end resources because there is no equivalent ofComponent.attach()/ClientConnector.detach()like there is for widgets. Typically,connect()anddisconnect()(respectively) would be invoked by those methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnect()Connect this instance to non-Vaadin resources.voiddisconnect()Disconnect this instance from non-Vaadin resources.
-
-
-
Method Detail
-
connect
void connect()
Connect this instance to non-Vaadin resources.- Throws:
IllegalStateException- if there is noVaadinSessionassociated with the current thread
-
disconnect
void disconnect()
Disconnect this instance from non-Vaadin resources.- Throws:
IllegalStateException- if there is noVaadinSessionassociated with the current thread
-
-