Какой рейтинг вас больше интересует?
|
Главная /
Каталог блоговCтраница блогера Yarixxx/Записи в блоге |
GWTP: Presenter events
2015-04-27 22:58:22 (читать в оригинале)As it was described in documentation, there are several events that occurs during life-cycle of Presenter. onBind This event happens only when Presenter loads first time. @Override protected void onBind() { super.onBind(); //... } onReveal This event happens every time Presenter is activated. @Override protected void onReveal() { super.onReveal(); //... } onReset This event happens […]
GWT: Running some code in future
2015-04-24 21:44:49 (читать в оригинале)In GWT there is a nice feature: Timer. It allows to delay running of some part of the code. The following example will execute run method after 5 seconds. Timer clock = new Timer() { public void run() { //... } }; clock.schedule(5000); If there is need to cancel executing run method there is: clock.cancel(); […]
How to use ui:with instruction in GWT
2015-04-22 23:50:59 (читать в оригинале)Recently I’ve found a nice feature that can be used in *.ui.xml. It’s name is ui:with element. The main purpose is to use values from Java classes. In order to use this feature we need to have the following *.ui.xml: <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui'> <ui:with field="resource" type="com.app.Resource" /> <g:HTMLPanel> <g:Label text="{resource.hello}" /> <!-- some other inner […]
GWTP: How to transfer some data from one presenter to another
2015-04-18 20:13:05 (читать в оригинале)In some cases it is required to take some data while switching from one Presenter to another. For example such data could be some fields filled on one View and collected by Presenter in order to pass them to another Presenter to show on its View. The way to switch from one Presenter to another […]
GWTP: How to switch from one Presenter to another?
2015-04-16 23:02:48 (читать в оригинале)There are several ways to switch from one presenter to another. But first of all we need to know a token name of required presenter. What is token name? Tokens are used to identify Presenter. The best way to have clear token names system is to create NameTokens class if it is not created already […]
Категория «Журналисты»
Взлеты Топ 5
+406 |
407 |
DDB's LiveJournal |
+350 |
441 |
Жизнь в сети |
+345 |
429 |
Сергей Новиков |
+310 |
443 |
Рояль в кустах |
+54 |
409 |
Сибдепо / Блоги |
Популярные за сутки
Загрузка...
BlogRider.ru не имеет отношения к публикуемым в записях блогов материалам. Все записи
взяты из открытых общедоступных источников и являются собственностью их авторов.
взяты из открытых общедоступных источников и являются собственностью их авторов.