best regards
Daniele
On 20 Giu, 19:48, Jaroslav Záruba <jaroslav.zar...@gmail.com> wrote:
> The reason why I proposed adding single event-handler on whole table was due
> to performance concerns. I read somewhere in GWT-docs that large number of
> event-handlers might affect responsiveness of your UI. (My UIs are too
> simple so far to test when that becomes an issue though.)
>
> Cheers
> J. Záruba
>
> On Sun, Jun 20, 2010 at 7:30 PM, bond <daniele.re...@gmail.com> wrote:
> > Thanks for your reply.
> > I had an idea, maybe can be usefull:
>
> > private abstract class MouseOverCell extends AbstractCell<String> {
>
> > @Override
> > public void render(String value, Object viewData,
> > StringBuilder sb)
> > {
> > if (value != null) {
> > sb.append(value);
> > }
> > }
>
> > @Override
> > public Object onBrowserEvent(Element parent, String value,
> > Object viewData, NativeEvent event,
> > ValueUpdater<String> valueUpdater) {
> > String type = event.getType();
> > if ("mouseover".equals(type)) {
> > onMouseOver();
> > }
> > return viewData;
> > }
>
> > public abstract void onMouseOver();
> > }
>
> > I've created a new type of Cell that i've named MouseOverCell where I
> > catch the native event 'mouseover' and than call an abstract method.
>
> > So when you add this cell to your table:
> > addSortColumn("XX", new MouseOverCell() {
>
> > @Override
> > public void onMouseOver() {
> > Window.alert("ON MOUSE OVER");
>
> > }
> > }, new GetValue<Operatore, String>() {
> > public String getValue(Operatore object) {
> > return object.getNome();
> > }
> > }, new Property<String>("nome", String.class));
>
> > Bye
>
> > On 20 Giu, 19:02, Jaroslav Záruba <jaroslav.zar...@gmail.com> wrote:
> > > I would consider adding one listener on the whole table and then check
> > > whether the target is your (one of) your cell(s).
> > > But I'm not saying this is The One Proper solution, I'm still only
> > learning
> > > to use CellTables.
>
> > > On Sun, Jun 20, 2010 at 4:24 PM, bond <daniele.re...@gmail.com> wrote:
> > > > Hi Jaroslav,
> > > > thanks for your reply.The google's source code is very usefull.
> > > > It's possible add an 'onMouseOver' event on a single cell?
>
> > > > Thanks very much
>
> > > > Best regards
>
> > > > On 17 Giu, 15:56, Jim <jim.p...@gmail.com> wrote:
> > > > > I got all source code from this repository and created a project -
> > > > > bikeshed21. I fixed some minor issues because Parser and Render
> > > > > classes are duplicated in two packages. Now I got a clean Eclipse
> > > > > project without any syntax errors. But I can not run it because there
> > > > > are DataNucleus-enhance problems which I have not fixed. I was trying
> > > > > to get a working copy of bikeshed from this group. So far I am out of
> > > > > luck. I would appreciate it if you can provide us with a working copy
> > > > > of "bikeshed" Eclipse project. Or if you need this half-done project
> > I
> > > > > finished, I can provide it.
>
> > > > > On Jun 17, 8:09 am, Jaroslav Záruba <jaroslav.zar...@gmail.com>
> > wrote:
>
> > > > > > The Expenses demo-app uses ordering columns:
> > > >http://gwt-bikeshed.appspot.com/Expenses.html(seereportdetails)
> > > > > > source:
> > > >http://code.google.com/p/google-web-toolkit/source/browse/branches/2..
> > ..
>
> > > > > > On Thu, Jun 17, 2010 at 2:06 PM, bond <daniele.re...@gmail.com>
> > wrote:
> > > > > > > Hi,
> > > > > > > I'm using the new GWT2.1M1. I'm testing CellTable and it seems
> > very
> > > > > > > beautiful.
> > > > > > > I've 2 questions:
>
> > > > > > > -how I can order the data display clicking on the column header?
> > > > > > > -how I can add an "onMouseOver" event on a single cell?
>
> > > > > > > Thanks very much
>
> > > > > > > Best regards
>
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the
> > Google
> > > > Groups
> > > > > > > "Google Web Toolkit" group.
> > > > > > > To post to this group, send email to
> > > > google-web-toolkit@googlegroups.com.
> > > > > > > To unsubscribe from this group, send email to
> > > > > > > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubscribe@googlegroups.com>
> > <google-web-toolkit%2Bunsubscribe@googlegroups.com<google-web-toolkit%252Bunsubscribe@googlegroups.com>
> > ><google-web-toolkit%2Bunsubs
> > > > cribe@googlegroups.com>
> > > > > > > .
> > > > > > > For more options, visit this group at
> > > > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > google-web-toolkit@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubscribe@googlegroups.com>
> > <google-web-toolkit%2Bunsubscribe@googlegroups.com<google-web-toolkit%252Bunsubscribe@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubscribe@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment