uibinder

CSS is not working in GXT

你。 提交于 2019-12-11 05:04:16
问题 I am in learning phase of GWT GXT, I my project some of the css are working fine , but some are showing me a strange behavior . for login button. logonBtn = new TextButton("Connect"); logonBtn.setIconAlign(IconAlign.RIGHT); logonBtn.setIcon(Resources.INSTANCE.login()); logonBtn.setStyleName("Project-Button"); Css .Project-Button { color: Black; border: thin outset #FF6600; font-family: Courier New, Century Gothic, Times New Roman, Verdana, Arial; vertical-align: middle; background-position:

GWT class method of different class not calling & getting UmbrellaException

烈酒焚心 提交于 2019-12-11 05:02:42
问题 I want to call method from different class for navigation of pages. So I'm passing "UserID" & "Password" for authentication and after that it will navigate to next page. My Code: public class Test2 extends Composite { HelloUIBinder hb; AnimationHelper animationHelper; TestPage tp; String strEmail, strPass; private static Test2UiBinder uiBinder = GWT.create(Test2UiBinder.class); interface Test2UiBinder extends UiBinder<Widget, Test2> { } @UiField TextBox txtEmail; @UiField PasswordTextBox

Ui:style or css class in GWT/UiBinder

给你一囗甜甜゛ 提交于 2019-12-11 03:47:12
问题 What is more preferable to use <ui:style> or write class in css file for HTML elements (for GWT Widgets ) in GWT ui.xml file. I know that if to use <ui:style> so the class attribute has very difficult name. Help me please find out when to use <ui:style> <ui:style> .panel { width: 100%; } .decPanel { height:100%; } </ui:style> <g:HTMLPanel addStyleNames='{style.panel}'> <fieldset addStyleNames='{style.decPanel}'> <legend> ... </legend> </fieldset> </g:HTMLPanel> and when to use class CSS file

Using different UiBinder @UiTemplate files depending on module property

末鹿安然 提交于 2019-12-11 03:37:48
问题 I can use <replace-with> tags to swap out different implementations of a class depending on the properties set in my GWT module file. That's great - I love it. BUT: all that's different about my views between formfactor="mobile" and formfactor="desktop" are the ui.xml files I use - even the java files are identical. So, class swapping isn't sufficient - I don't want to have to duplicate the Java files to get different classes. How can I use properties to affect which ui.xml file is loaded as

GWT uibinder autocorrect off

我是研究僧i 提交于 2019-12-11 02:07:28
问题 im using GWT uibinder method and my html contains a textbox like <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:idmw="urn:import:com.testing.wid.impl"> <g:HTMLPanel> <table align="center" valign="center" height="25%"> <tr><td><g:TextBox ui:field='searchS' /></td></tr> </table> </g:HTMLPanel> How can i TURN OFF autocorrect and autocapitalize for this Textbox?? i tried <g:TextBox ui:field='searchS' autocapitalize="off" autocorrect

gwt ScrollPanel in TabPanel: no vertical scrollbar

烂漫一生 提交于 2019-12-10 20:18:08
问题 EDIT I have fixed the whitespace behaviour by resizing components within the VerticalPanel , that seem to have had an effect on the panel's dimension somehow missed by the console. I don't quite understand how. However, I am still stuck with none of my panels showing vertical scroll bars. In a GWT project, I have the following structure: Page DockLayoutPanel North (header) Center (body) South (footer) /DockLayoutPanel Body SplitLayoutPanel$1 West SplitLayoutPanel$2 North Center TabPanel

XML schema for GWT UIBinder

你。 提交于 2019-12-10 18:50:05
问题 I'm wonderring whether Google is ready to publish (or there is at least any chance to "produce") the full formal xml schema for GWT UIBinder. I've searched the latest entire GWT-SDK-2.4 distribution but found nothing. Does GWT simply look up java sources or reflect the classes of the widgets to validate the UIBinder xml counterparts, assuming that the xml schema was actually by no means predefined thus adopted to govern the validation? @EDIT According to the answer from @Ganesh Kumar , I've

How to mix HTML and GWT widgets using UIBinder?

徘徊边缘 提交于 2019-12-10 17:29:54
问题 We have an existing UI built with UIBinder whose ui.xml file contains the following hierarchy: <ui:UiBinder> <div> Multiple <span> or <a> separated by verbatim HTML (like | separators). I need to replace one of the anchors with a listbox. Is there a way to make this transition without replacing the div with an HTMLPanel and changing all the anchors to something else? If I try to stick a gwt:ValueListBox or gwt:ListBox in there, I get an error message that I cannot mix the two. I also cannot

GWT UIBinder Tab panel

假如想象 提交于 2019-12-10 16:26:20
问题 I want to put some anchor inside the body of tab panel with two tabs. But my anchors are not visible. The code is as follows <g:TabLayoutPanel ui:field="lhsTabPanel" barUnit="PX" barHeight="60"> <g:tab> <g:header>Analysis</g:header> <g:FlowPanel> <g:Anchor ui:field='personalInformation'>Personal Information</g:Anchor> </g:FlowPanel> </g:tab> <g:tab> <g:header>Comparison</g:header> <g:FlowPanel ui:field="comparisonContent"/> </g:tab> </g:TabLayoutPanel> The personal information tab is not

Will referring to a single ClientBundle class from multiple UiBinders cost anything?

别等时光非礼了梦想. 提交于 2019-12-10 15:37:06
问题 I have a single ClientBundle with css resources that are needed throughout the application - default background colors, common layout patterns, etc. A stated design goal from GWT is that there be "no penalty for having multiple ClientBundle resource functions refer to the same content." Do I have to do anything to avoid penalties and help ClientBundle realize this goal? A naive approach would be to just add <ui:with field="appWideResources" type='com.activegrade.client.resources.appwide