Article View: pl.comp.lang.java
Article #154099Re: GWT - Jak usunąć wymógł pliku *ui,xml
From: J-23
Date: Thu, 18 Dec 2014 21:57
Date: Thu, 18 Dec 2014 21:57
43 lines
2274 bytes
2274 bytes
W dniu 18.12.2014 o 21:19, Tomek Kańka pisze:
> 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);
> }
>
Witam
Właśnie cały myk polega na tym że ja chce mieć zdefiniowany UiBinder w
bazie danych. Tak bym mógł zmieniać definicje podczas działania
programu. (Dodawać/Edytować/Usuwać)
Pozdrawiam
Technical Details
Message-ID:
<m6viks$q2c$1@node1.news.atman.pl>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> <slrnm96dm6.gtv.tom@tv2.dom.local>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: J-23 <baczeklu@o2.pl> Newsgroups: pl.comp.lang.java Subject: Re: GWT - Jak usunąć wymógł pliku *ui,xml Date: Thu, 18 Dec 2014 22:57:47 +0100 Organization: ATMAN - ATM S.A. Lines: 43 Message-ID: <m6viks$q2c$1@node1.news.atman.pl> References: <m6v9bq$gq2$1@node2.news.atman.pl> <slrnm96dm6.gtv.tom@tv2.dom.local> NNTP-Posting-Host: 77-255-62-197.adsl.inetia.pl Mime-Version: 1.0 X-Trace: node1.news.atman.pl 1418939868 26700 77.255.62.197 (18 Dec 2014 21:57:48 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Thu, 18 Dec 2014 21:57:48 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 In-Reply-To: <slrnm96dm6.gtv.tom@tv2.dom.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit