[gwt-contrib] [google-web-toolkit] r9222 committed - Edited wiki page AutoBean through web user interface.
Revision: 9222 Author: zun...@google.com Date: Sun Nov 14 05:13:27 2010 Log: Edited wiki page AutoBean through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=9222 Modified: /wiki/AutoBean.wiki === --- /wiki/AutoBean.wiki Fri Nov 12 20:08:46 2010 +++ /wiki/AutoBean.wiki Sun Nov 14 05:13:27 2010 @@ -89,7 +89,7 @@ A simple interface satisfies the following properties: * Has only getter and setter methods - * Any non-property methods must be implemented by a category + * Any non-property methods must be implemented by a [AutoBean#Categories category] A simple AutoBean can be constructed by the AutoBeanFactory without providing a delegate instance. @@ -235,7 +235,7 @@ } class PersonCategory { - public static boolean marray(AutoBean instance, Person spouse) { + public static boolean marry(AutoBean instance, Person spouse) { return new Marriage(instance.as(), spouse).accepted(); } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: r9220 committed - Switching CellList to trigger selection on click instead of mousedown....
The same problem is still present in the CellTree. On 13 nov, 00:03, codesite-nore...@google.com wrote: > Revision: 9220 > Author: jlaba...@google.com > Date: Fri Nov 12 11:57:52 2010 > Log: Switching CellList to trigger selection on click instead of mousedown. > Selection causes the cell to be redrawn, which interrupts the click event > sequence and prevents click from ever firing to the Cell. This is > particularly annoying for Cells that contain Buttons. The same change needs > to be made for keyboard selection, which can be bound to selection and > cause the cell to be redrawn. CellTable already triggers selection on > click, and now triggers keyboard selection on click. > > Review athttp://gwt-code-reviews.appspot.com/1102801 > > Review by: > sbruba...@google.comhttp://code.google.com/p/google-web-toolkit/source/detail?r=9220 > > Modified: > /trunk/user/src/com/google/gwt/user/cellview/client/AbstractHasData.java > /trunk/user/src/com/google/gwt/user/cellview/client/CellList.java > /trunk/user/src/com/google/gwt/user/cellview/client/CellTable.java > > === > --- > /trunk/user/src/com/google/gwt/user/cellview/client/AbstractHasData.java > > Tue Nov 9 07:53:09 2010 > +++ > /trunk/user/src/com/google/gwt/user/cellview/client/AbstractHasData.java > > Fri Nov 12 11:57:52 2010 > @@ -270,8 +270,9 @@ > Set eventTypes = new HashSet(); > eventTypes.add("focus"); > eventTypes.add("blur"); > - eventTypes.add("keydown"); > - eventTypes.add("mousedown"); // Used by subclasses to steal focus. > + eventTypes.add("keydown"); // Used for keyboard navigation. > + eventTypes.add("click"); // Used by subclasses for selection. > + eventTypes.add("mousedown"); // No longer used, but here for legacy > support. > CellBasedWidgetImpl.get().sinkEvents(this, eventTypes); > } > > === > --- /trunk/user/src/com/google/gwt/user/cellview/client/CellList.java Tue > Nov 9 07:53:09 2010 > +++ /trunk/user/src/com/google/gwt/user/cellview/client/CellList.java Fri > Nov 12 11:57:52 2010 > @@ -379,7 +379,7 @@ > // before firing the event to the cell in case the cell operates on > the > // currently selected item. > String eventType = event.getType(); > - boolean isMouseDown = "mousedown".equals(eventType); > + boolean isClick = "click".equals(eventType); > int idx = Integer.parseInt(idxString); > int indexOnPage = idx - getPageStart(); > if (!isRowWithinBounds(indexOnPage)) { > @@ -390,12 +390,12 @@ > // Get the cell parent before doing selection in case the list is > redrawn. > Element cellParent = getCellParent(cellTarget); > T value = getDisplayedItem(indexOnPage); > - if (isMouseDown && !cell.handlesSelection()) { > + if (isClick && !cell.handlesSelection()) { > doSelection(event, value, indexOnPage); > } > > // Focus on the cell. > - if (isMouseDown > + if (isClick > && getPresenter().getKeyboardSelectedRowInView() != indexOnPage) > { > /* > * If the selected element is natively focusable, then we do not > want to > === > --- /trunk/user/src/com/google/gwt/user/cellview/client/CellTable.java Tue > Nov 9 07:53:09 2010 > +++ /trunk/user/src/com/google/gwt/user/cellview/client/CellTable.java Fri > Nov 12 11:57:52 2010 > @@ -563,7 +563,6 @@ > > // Sink events. > Set eventTypes = new HashSet(); > - eventTypes.add("click"); > eventTypes.add("mouseover"); > eventTypes.add("mouseout"); > CellBasedWidgetImpl.get().sinkEvents(this, eventTypes); > @@ -926,7 +925,7 @@ > } > } else if (section == tbody) { > // Update the hover state. > - boolean isMouseDown = "mousedown".equals(eventType); > + boolean isClick = "click".equals(eventType); > int row = tr.getSectionRowIndex(); > if ("mouseover".equals(eventType)) { > // Unstyle the old row if it is still part of the table. > @@ -941,7 +940,7 @@ > setRowStyleName(hoveringRow, style.cellTableHoveredRow(), > style.cellTableHoveredRowCell(), false); > hoveringRow = null; > - } else if (isMouseDown > + } else if (isClick > && ((getPresenter().getKeyboardSelectedRowInView() != row) > || (keyboardSelectedColumn != col))) { > // Move keyboard focus. Since the user clicked, allow focus to go > to a > @@ -960,7 +959,7 @@ > return; > } > T value = getDisplayedItem(row); > - if ("click".equals(eventType) && !handlesSelection) { > + if (isClick && !handlesSelection) { > doSelection(event, value, row, col); > } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Horizontal Scroll Bar Issues with tab panel
Hello all I am using Tab Panel (With single tab). In this Tab Panel I am adding another Tab Panel (With single tab). In the above Tab Panel I am adding another Tab Panel. (With 15 tab). And for third & inner most Tab Panel I used auto horizontal tab scroll true. Like this : taskTabPanel.setEnableTabScroll(true); There are 15 tabs in the inner most tab. Now my problem is that while clicking on the Right Horizontal scroll button It will work fine for 12 tab. (i.e It will scroll up to 12 tab correctly),But after 12th tab it is not scrolling properly. Can any one help me out of this. Thanks in advance -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Patch for Issue 5588: Fix Ant warning about includeantruntime not being set (issue1105801)
Reviewers: , Description: http://code.google.com/p/google-web-toolkit/issues/detail?id=5588 This patch simply adds includeantruntime="false" to invocations in common.ant.xml, tools/cldr-import/build.xml, user/src/com/google/gwt/user/tools/project.ant.xmlsrc, and plugins/MissingPlugin/build.xml. Please review this at http://gwt-code-reviews.appspot.com/1105801/show Affected files: common.ant.xml plugins/MissingPlugin/build.xml tools/cldr-import/build.xml user/src/com/google/gwt/user/tools/project.ant.xmlsrc Index: common.ant.xml === --- common.ant.xml (revision 9219) +++ common.ant.xml (working copy) @@ -143,7 +143,7 @@ -debuglevel="${javac.debuglevel}" source="${javac.source}" target="${javac.target}" nowarn="${javac.nowarn}" encoding="${javac.encoding}" fork="true" memoryMaximumSize="1024m" /> +debuglevel="${javac.debuglevel}" source="${javac.source}" target="${javac.target}" nowarn="${javac.nowarn}" encoding="${javac.encoding}" fork="true" memoryMaximumSize="1024m" includeantruntime="false"/> Index: tools/cldr-import/build.xml === --- tools/cldr-import/build.xml (revision 9219) +++ tools/cldr-import/build.xml (working copy) @@ -37,7 +37,7 @@ +nowarn="${javac.nowarn}" encoding="${javac.encoding}" includeantruntime="false"> @@ -50,7 +50,7 @@ +nowarn="${javac.nowarn}" encoding="${javac.encoding}" includeantruntime="false"> Index: user/src/com/google/gwt/user/tools/project.ant.xmlsrc === --- user/src/com/google/gwt/user/tools/project.ant.xmlsrc (revision 9219) +++ user/src/com/google/gwt/user/tools/project.ant.xmlsrc (working copy) @@ -26,7 +26,7 @@ +debug="true" debuglevel="lines,vars,source" includeantruntime="false"> @@ -71,7 +71,7 @@ + debug="true" debuglevel="lines,vars,source" includeantruntime="false"> Index: plugins/MissingPlugin/build.xml === --- plugins/MissingPlugin/build.xml (revision 9219) +++ plugins/MissingPlugin/build.xml (working copy) @@ -32,7 +32,7 @@ +debug="true" debuglevel="lines,vars,source" includeantruntime="false"> -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Would GWT and/or incubator be interested in Run Time UiBinding
May be this could be very interesting for some kind of applications. Personaly I would be happy to have this kind of dynamic UI intergated into GWT. I have a question : what/how do you suggest to do in order to create the link between the user interaction (e.g. click on a submit button) to your code (e.g. to actually produce something) ? GWT acquired GWTDesigner from Instantiations.com. But GWTDesigner (as far as I remember when I used it almost 2 years ago) is not dynamic. It allows only static prototyping. So GWTDesigner is not comparable to what you created. Here the added value, is the change one could provide to the UI on the fly. Not usual in programming techniques ! Nice work. Yves On 14 nov, 03:00, TedM wrote: > If it is helpful here is a video of me exampling how to use the demo. > > http://www.youtube.com/watch?v=wDzuS7pnYJE -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Would GWT and/or incubator be interested in Run Time UiBinding
Thanks, I wasn't thinking in the line of GWTDesigner. The problem that I'm solving at work is related to dynamic form definition. I want my business user to be able to define forms and send them out, without compiling and without things software installed on their locals. I'm going to make a UI that plays through the browser (using GWT) that will allow a non-technical person to design these forms. personally think this idea would be a great addition to GWT, but I don't want to start writing the OS version until I can talk to a GWT or incubator guy. The out comes of that talk will be one of the following. 1. They like the idea, and maybe I can bounce my architectural ideas off them and then I build it with there input. 2. They already have this on their road map and don't need my help 3. They think it doesn't have value. Do you know how I can get in contact with someone from GWT? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors