uibinder

why can't i hide DialogBox in UiBinder in GWT?

强颜欢笑 提交于 2019-12-13 02:41:08
问题 in Test.ui.xml <g:DialogBox ui:field="wishlistDialogBox" autoHide="true"> <g:caption>Test</g:caption> <g:HTMLPanel> some widgets..</g:HTMLPanel> </g:DialogBox> After running, the application still show the DialogBox , so I tried to set hide for "wishlistDialogBox" in TestView.java but it didn't work. @UiField DialogBox wishlistDialogBox; @Inject public TestView(final Binder binder) { widget = binder.createAndBindUi(this); wishlistDialogBox.hide(); } Then i set hide for it in TestPresenter

How to restyle the draggers of the SplitLayoutPanel in GWT UIBinder template

与世无争的帅哥 提交于 2019-12-12 13:58:19
问题 can anyone tell me how I can change the style of the draggers in a UIBinder template for the SplitLayoutPanel. Here is my MainMenu.ui.xml: <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui"> <ui:style src="Resources/GlobalStyles.css" /> <g:SplitLayoutPanel width="100%" height="100%" styleName='{style.splitLayoutPanel}'> <g:north size="100"> <g:HTMLPanel/> </g:north> <g:west size="250"> <g:HTMLPanel/> </g:west> <g:center> <g:HTMLPanel/> <

Compile Error: Found widget in an HTML context Element

时光毁灭记忆、已成空白 提交于 2019-12-12 12:05:21
问题 I've seen this answer but my I can't see what could possibly be the problem in my own code. Here is the my uibinding xml: <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:a='urn:import:com.google.gwt.app.client'> <ui:style field='iphone' src='Render.css' /> <div id='iHeader'> <div style='display:block; opacity:1; -webkit-tranform:translate3d(0px, 0px, 0px);'>

Integrate Htmls into GWT

给你一囗甜甜゛ 提交于 2019-12-12 02:48:23
问题 We have a web application that its UI is based on GWT. We are pretty satisfied from the technology, but we have one major problem: We get html files from our designer, and it takes a lot of time to integrate them into our GWT code. Is there a quick way or rules to do that? For instance, I would like to take the html, put it almost "as is" in a ui.xml file, and then start binding the components to UiBinder fields. What is the quickest way to do that? What should I do with the CSS and JS files

GXT: UiBinder new instance of a Widget

南楼画角 提交于 2019-12-11 19:52:14
问题 I have a TextField form inside a window. Created with UiBinding. Next to the TextField is a button. I wanted to know if it was possible to create a new TextField widget when that button was pressed using UiBinder? This is what I have: Window class: @UiField TextField text; @UiField HorizontalPanel hPanel; .... @UiHandler("addText") public void onClick(SelectEvent event){ hPanel.add(text); } My UiBinder file: <gxt:Window ...(generic setup)...> <g:VerticalPanel> <gxt:FramedPanel> <container

How to add properly UiHandler for BlurEvent in GWT?

社会主义新天地 提交于 2019-12-11 19:29:45
问题 Normally if we have some textField in GWT we can add a BlurHandler by the following code: textField.addBlurHandler(new BlurHandler() { @Override public void onBlur(BlurEvent event) { //what we need } }); But if we use UiBinder and our textField is annotated by @UiField and it is mentioned in our ui.xml file we can add BlurHandler by this code as well: @UiHandler("textField") protected void createBlurHandler(BlurEvent event) { } I guess I am right here because it works like this. So, the

GWT: DockLayout Panel not showing

拥有回忆 提交于 2019-12-11 14:55:18
问题 Expected output is the same as in the preview, with labels that indicate the specified blocks. I run this in standard mode and I am using GWT 2.1.1 Below is the expected output: Actual output: <html><head> <!-- The DOCTYPE declaration above will set the --> <!-- browser's rendering engine into --> <!-- "Standards Mode". Replacing this declaration --> <!-- with a "Quirks Mode" doctype may lead to some --> <!-- differences in layout. --> <meta content="text/html; charset=UTF-8" http-equiv=

Adding icons to an button in gwt

允我心安 提交于 2019-12-11 11:52:32
问题 i have button and want to set an icon to it along with the text inside it. their is no property to add icon to button like in smartGwt .. any idea how to achieve it please help. 回答1: There are many ways of achieving this. Way 1 : Easy way Just set the background image via code. myButton.getElement().getStyle().setBackgroundImage("path"); Way 2: Another easy way Set your own html myButton.setHtml("Pass the html string"); Way 3: Easy but gives more control myButton.addStylename("buttonStyle")

how to change the text in an AbstractCell created using uibinder getting error Cannot set property 'textContent' of null

断了今生、忘了曾经 提交于 2019-12-11 07:50:06
问题 I created an abstract cell using uibinder and UiRenderer. My datasource is a list of a list. Lets say list of cars and each car has a list of models. I adding the cells to a CellList. Each cell is like like a card with forward and backward button on top(Im using arrow images and handling click event using uihandler) and the card display model's property. The forward and backward image on click show the next and the previous model respectively. Im not been able to change the model_name(and

change image on hover using gwt and ui-binder

倾然丶 夕夏残阳落幕 提交于 2019-12-11 07:34:23
问题 i am using the declarative/ui-binder method of adding images to a page. this is in combination with using the ImageBundle functions that GWT provides. what i would like to do is change the image out when i hover over the image. my questions are: what are the best way to do this, and is my current method the best method in the first place? my code looks something similar to: <ui:with field='res' type='path.to.my.app.AppResources' /> ... <g:HorizontalPanel ui:field='horizPanel' > <g:Image ui