What is equivalent of com.vaadin.terminal.gwt.client.Container in Vaadin 7 beta? Some of the old add-ons are using this class and I am trying to convert them to Vaadin 7 beta API architecture.
thanks
What is equivalent of com.vaadin.terminal.gwt.client.Container in Vaadin 7 beta? Some of the old add-ons are using this class and I am trying to convert them to Vaadin 7 beta API architecture.
thanks
Hello,
You can start with reading these
mini-tutorials for Vaadin 7
in order to get insight of how it works.
This one
describes how to implement your own
ComponentContainer
.
That’s anyway worth reading but if you’ll have any further questions - feel free to post those here.
HTH,
Aleksandr
There really isn’t any equivalent interface. If you create a component which contains other components your server side class should typically extend AbstractSingleComponentContainer (for setContent/getContent, i.e. one child) or AbstractComponentContainer (for addComponent/removeComponent, i.e. many children). Similarly your connector should extend ASCCConnector or ACCConnector.
The component hierarchy is automatically communicated by the framework - contrary to Vaadin 6. Use onConnectorHierarchyChange on the client side to update the hierarchy.
As for the actual methods in the Container interface: