Article View: pl.comp.lang.java
Article #154098Re: GWT - Jak usunąć wymógł pliku *ui,xml
From: Tomek Kańka
Date: Thu, 18 Dec 2014 20:19
Date: Thu, 18 Dec 2014 20:19
37 lines
1865 bytes
1865 bytes
J-23 <baczeklu@o2.pl> napisał(a)
> Witam,
>
> Musze zmodyfikować kod GWT mam dostęp do kodu i chodzi mi o coś takiego:
>
> public class DynamicForm extends Composite {
>
> private static DynamicFormUiBinder uiBinder = GWT
> .create(DynamicFormUiBinder.class);
>
> interface DynamicFormUiBinder extends UiBinder<Widget, DynamicForm> {
> }
>
> public DynamicForm() {
> initWidget(uiBinder.createAndBindUi(this));
> }
>
> Powyższy kod wymaga pliku DynamicForm.ui.xml i o to nawet marudzi
> eclipse/netbeans i teraz pytanie gdzie to jest zaszytę. To by nie
> marudziło we wtyczce do eclipse/netbeans czy w kodzie GWT?
>
Usuń uiBinder - to on potrzebuje pliku ui.xml gdzie jest zdefiniowane
jak wyglada Twój formularz.
Zamiast tego stwórz go w kodzie, czyli coś w stylu:
public DynamicForm() {
FlowPanel mainPanel = new FlowPanel();
Button okButton = new Button();
mainPanel.add(button);
initWidget(mainPanel);
}
--
Tomek
Technical Details
Message-ID:
<slrnm96dm6.gtv.tom@tv2.dom.local>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailReferences:
<m6v9bq$gq2$1@node2.news.atman.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: Tomek Kańka <tom@tomkan.eu.org> Newsgroups: pl.comp.lang.java Subject: Re: GWT - Jak usunąć wymógł pliku *ui,xml Date: Thu, 18 Dec 2014 20:19:18 +0000 (UTC) Organization: ATMAN - ATM S.A. Lines: 38 Message-ID: <slrnm96dm6.gtv.tom@tv2.dom.local> References: <m6v9bq$gq2$1@node2.news.atman.pl> NNTP-Posting-Host: host-80-238-125-99.jmdi.pl Mime-Version: 1.0 X-Trace: node1.news.atman.pl 1418933958 18919 80.238.125.99 (18 Dec 2014 20:19:18 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Thu, 18 Dec 2014 20:19:18 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit