How to achieve a true BorderLayout effect in GWT?
If possible without a library?
If I need to use a library, please not a payed one, neither a deprecated one?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From Kinjal’s post, the 2.0
*LayoutPanelclasses are almost certainly what you want. TheDockLayoutPaneland its subclass theSplitLayoutPanelwill provide this functionality in two different ways.There are two important things about using Layout Panel classes. First, use a strict doctype (such as the html5 doctype). Second, all panels must be given a size and must be informed of resizes – this is why they all implement the
RequiresResizeinterface.The easiest way to do that is to start not with a
RootPanel, but with aRootLayoutPanel– this will ensure that you get resize events from the browser window. Then, add in the layout panel of your choice, and it too will be resized.If you build your own widget subclasses and want to be notified when resizing happens, you too should implement
RequiresResize. Similarly, if you are building a widget subclass that will be sizing its children, you should implement theProvidesResizeinterface.