On Feb 16, 11:24 am, Krzysztof Rosiński <[email protected]> wrote:
> Hi,
>
> is it possible to create custom panel like this:
> ControlPanel.ui.xml
>         <g:HTMLPanel>
>                 <g:VerticalPanel styleName='{html.panel}'>
>                         <g:HorizontalPanel>
>                                 <g:Button ui:field='btnHide' 
> styleName='{button}' text='Hide'></
> g:Button>
>                                 <g:Button ui:field='btnClose' 
> styleName='{button}' text='Close'></
> g:Button>
>                         </g:HorizontalPanel>
>
>                         <g:ScrollPanel ui:field="panel" width='100%'>
>                                 <!-- add components here -->
>                         </g:ScrollPanel>
>                 </g:VerticalPanel>
>         </g:HTMLPanel>
>
> and then use it in this way:
> Something.ui.xml
>         <g:HTMLPanel>
>                 <c:ControlPanel ui:field='panel'>
>                         <g:FlexTable ui:field='ftLogs' styleName='{table}'/>
>                 </c:ControlPanel>
>         </g:HTMLPanel>

Yes (theoretically, I haven't tested).

Your ControlPanel has to implement HasWidgets (to probably delegate it
to the ScrollPanel).

Just beware that in this case, the FlexTable's parent
(ftLogs.getParent()) will be the ScrollPanel, not the ControlPanel.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to