Re: incubator SCrollTable scroll position.

2010-08-17 Thread Romaint2b
Hi,
I was searching for the same thing whn i found your post.
Did you find a solution in order to know the scroll position?

Thanks

Romain


On 22 juin, 14:59, Subhrajyoti Moitra  wrote:
> Hello Folks,
>
> I am using incubator gen2 ScrollTable. I have a use case, wherein i have to
> detect that when the user has scrolled to the last row (or somewhere around
> the last row), then load a fresh set of rows in the table, via a rpc call.
> TO achieve this i have extented ScrollTable and implemented
> HasScrollHandlers.
>
> public class UbqScrollTable extends ScrollTable implements HasScrollHandlers
> {
>
>     public UbqScrollTable(FixedWidthGrid dataTable,
>             FixedWidthFlexTable headerTable) {
>         super(dataTable, headerTable);
>
>     }
>
>     public HandlerRegistration addScrollHandler(ScrollHandler handler) {
>
>         return addDomHandler(handler, ScrollEvent.getType());
>     }
>
> }
>
> And later in some other view i am setting up this table, and the initial
> data to go along with it.
> When trying to get the scroll position, i do this. st is the scrolltable.
>
> st.addScrollHandler(new ScrollHandler() {
>
>             public void onScroll(ScrollEvent event) {
>                 int top=event.getRelativeElement().getScrollTop();
>                 int
> scrollHeight=event.getRelativeElement().getScrollHeight();
>                 int left=event.getRelativeElement().getScrollLeft();
>                 int width=event.getRelativeElement().getScrollWidth();
>
>                 GWT.log("Scroll data: top: "+top+", scrollHeight:
> "+scrollHeight+", y: "+event.getNativeEvent().getScreenY()+", x:
> "+event.getNativeEvent().getScreenX()+", left: "+left+", wiodth: "+width+",
> class: "+event.getSource().getClass().getName());
>                 GWT.log("Top:
> "+st.getDataTable().getElement().getScrollTop());
>                 GWT.log("Height:
> "+st.getDataTable().getElement().getScrollHeight());
>                 //st.getElement().setScrollTop(50);
>             }
>         });
>
> All the values top, height, left, width are all constant and not changing. I
> know there is something wrong with my understanding. Please help.
>
> How do i get the scroll position, or "Detect that the user is viewing the
> last few rows of the scroll table" so load new rows from backend?
>
> Please help.
>
> Thanks,
> Subhro.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT Incubator ScrollTable row navigation/selection using keyboard

2010-07-26 Thread Dinesh
Hi All,

I am trying to use GWT Incubator's (Paging)ScrollTable for a keyboard
centric application. It is important to be able to navigate between
rows in a Table via the Keyboard (up/down) buttons. I understand that
the table can have a RowSelectionPolicy, but can the selection be done
with a keyboard?

An example of what I am looking for can be found at
http://demo.vaadin.com/sampler#TableKeyboardNavigation

Your help is much appreciated.

Thanks,
Dinesh.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



gwt-visualization Table vs gwt-incubator ScrollTable

2010-07-12 Thread Akshay Kumar
Hi,
I have seen examples of both and like both of them, at least for the
basic purpose of displaying data in Table form and with paging.
However, I am unable to pick one over the other for the following
reasons:

a) Both lack "Column Reordering using Drag and Drop" that I wish in my
Table View.
I realize that one can use gwtQuery or gwt-DND to achieve the same,
but I am not sure with which one it would be easier.

b) I would want to replace default column headers with some clickable
buttons - to achieve : i) hide a given column ii) show small popup
picking a filter on the column.
Not sure with which one of the two, its feasible (or easier) to
achieve.

c) I am not sure whether gwt-incubator stuff will ever ( or when) will
it get into main gwt-library

d) It seems that gwt-visualization is JSNI wrapper over original
google visualization JS library. Is it going to be a big factor in
terms of performance?

e) Any guidelines on why & when  should one pick one over the other!

Thanks,
Akshay

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



gwt-visualization Table vs gwt-incubator ScrollTable

2010-07-12 Thread Akshay Kumar
Hi,
I have seen examples of both and like both of them, at least for the basic
purpose of displaying data in Table form and with paging. However, I am
unable to pick one over the other for the following reasons:

a) Both lack "Column Reordering using Drag and Drop" that I wish in my Table
View.
I realize that one can use gwtQuery or gwt-DND to achieve the same, but I am
not sure with which one it would be easier.

b) I would want to replace default column headers with some clickable
buttons - to achieve : i) hide a given column ii) show small popup picking a
filter on the column.
Not sure with which one of the two, its feasible (or easier) to achieve.

c) I am not sure whether gwt-incubator stuff will ever ( or when) will it
get into main gwt-library

d) It seems that gwt-visualization is JSNI wrapper over original google
visualization JS library. Is it going to be a big factor in terms of
performance?

e) Any guidelines on why & when  should one pick one over the other!

Thanks,
Akshay

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



incubator SCrollTable scroll position.

2010-06-22 Thread Subhrajyoti Moitra
Hello Folks,

I am using incubator gen2 ScrollTable. I have a use case, wherein i have to
detect that when the user has scrolled to the last row (or somewhere around
the last row), then load a fresh set of rows in the table, via a rpc call.
TO achieve this i have extented ScrollTable and implemented
HasScrollHandlers.

public class UbqScrollTable extends ScrollTable implements HasScrollHandlers
{

public UbqScrollTable(FixedWidthGrid dataTable,
FixedWidthFlexTable headerTable) {
super(dataTable, headerTable);

}

public HandlerRegistration addScrollHandler(ScrollHandler handler) {

return addDomHandler(handler, ScrollEvent.getType());
}

}

And later in some other view i am setting up this table, and the initial
data to go along with it.
When trying to get the scroll position, i do this. st is the scrolltable.

st.addScrollHandler(new ScrollHandler() {

public void onScroll(ScrollEvent event) {
int top=event.getRelativeElement().getScrollTop();
int
scrollHeight=event.getRelativeElement().getScrollHeight();
int left=event.getRelativeElement().getScrollLeft();
int width=event.getRelativeElement().getScrollWidth();

GWT.log("Scroll data: top: "+top+", scrollHeight:
"+scrollHeight+", y: "+event.getNativeEvent().getScreenY()+", x:
"+event.getNativeEvent().getScreenX()+", left: "+left+", wiodth: "+width+",
class: "+event.getSource().getClass().getName());
GWT.log("Top:
"+st.getDataTable().getElement().getScrollTop());
GWT.log("Height:
"+st.getDataTable().getElement().getScrollHeight());
//st.getElement().setScrollTop(50);
}
});

All the values top, height, left, width are all constant and not changing. I
know there is something wrong with my understanding. Please help.

How do i get the scroll position, or "Detect that the user is viewing the
last few rows of the scroll table" so load new rows from backend?

Please help.

Thanks,
Subhro.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Incubator scrolltable

2010-03-30 Thread Davis Ford
Hi, take a look at my blog write-up that shows an example of how to
use PST -> http://zenoconsulting.wikidot.com/blog:17/

On Sun, Mar 21, 2010 at 3:31 PM, Kwame  wrote:
> Does anyone have the full source code for this paging scroll table
> demo:
> http://collectionofdemos.appspot.com/demo/com.google.gwt.gen2.demo.scrolltable.PagingScrollTableDemo/PagingScrollTableDemo.html
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Incubator scrolltable

2010-03-29 Thread mariyan nenchev
Download the jar lib?

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Incubator scrolltable

2010-03-29 Thread crojay78
Hi,

i am also interested in the source code of this, it's easier to
understand the stuff...

Hopefully somebody provide it...

Thanks

On 21 Mrz., 21:31, Kwame  wrote:
> Does anyone have the full source code for this paging scroll table
> demo:http://collectionofdemos.appspot.com/demo/com.google.gwt.gen2.demo.sc...

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT Incubator scrolltable

2010-03-21 Thread Kwame
Does anyone have the full source code for this paging scroll table
demo:
http://collectionofdemos.appspot.com/demo/com.google.gwt.gen2.demo.scrolltable.PagingScrollTableDemo/PagingScrollTableDemo.html

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: incubator ScrollTable

2010-01-22 Thread ALEXEI BARBONI
All right...

Is there a way to make the FixedWidthGrid (where is the content of the
table) take widths automatic to each column, just like the Grid and
FlexTable does?

2010/1/22 ALEXEI BARBONI 

> Ok..I know there must be many workarounds...
>
> But I wold like to know the reason this is happen.
>
> I am taking a look at Firebug, but is not easy to undertand...
>
>
> 2010/1/22 Felipe 
>
> m 
>>
>> I don't know if is the better solution, this maybe:
>>
>>
>> public void afterLoad () {
>>
>>   if ( tablaScroll.getDataTable().getColumnCount() == 1) {
>>  // setColumnWitdh
>>   } else {
>>  // otra cosa.
>>   }
>>
>> }
>>
>> regards.!
>>
>> On Jan 22, 9:46 am, Ashar Lohmar  wrote:
>> > this might sound like a stupid workaround ... but can't you add an if
>> > statement or something to check if the table will have only one
>> > column ?! and for that use setColumnWidth ...
>> > i know that this is not a real answer but this is the only thing that
>> > comes into my mind without trying the real source/objects to see
>> > another "trick"
>> >
>> > hope it helps
>> > good luck
>> >
>> > On Jan 22, 2:57 am, Alexei Telles  wrote:
>> >
>> > > Hi, I'm just starting using the gwt-incubator.
>> > > I need to make a table, so I am using a FixedWidthFlexTable to the
>> > > header and a FixedWidthGrid to the dataTable (content of the table).
>> >
>> > > I have a procedure that mounts the dataTable
>> >
>> > > The problem that I am having is:
>> > > when my dataTable have more than one column, the dataTable is ok
>> >
>> > > I am setting the width to 100%, so my table fits my div at all.
>> >
>> > > But when my table have only one column, I don't know why the column
>> > > width stays to short
>> > > Of course, if I use the method setColumnWidth of the FixedWidthGrid
>> > > works fine, but I use the same procedure to generate all tables of my
>> > > application, so I can't do that!!!
>> >
>> > > I don't know if I gave a good explanation about my problem.
>> >
>> > > I am trying to use the Firebug to discover what i am doing wrong, but
>> > > the HTML code generated is a little confused.
>> >
>> > > Is ther anything in the FixedWidthGrid about the first column of the
>> > > table, or is there a way to I set all widths of my table like
>> > > automatic?
>> >
>> > > I appreciate any help
>> >
>> > > Thanks...
>> >
>> >
>>
>> --
>> 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-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: incubator ScrollTable

2010-01-22 Thread ALEXEI BARBONI
Ok..I know there must be many workarounds...

But I wold like to know the reason this is happen.

I am taking a look at Firebug, but is not easy to undertand...


2010/1/22 Felipe 

> m 
>
> I don't know if is the better solution, this maybe:
>
>
> public void afterLoad () {
>
>   if ( tablaScroll.getDataTable().getColumnCount() == 1) {
>  // setColumnWitdh
>   } else {
>  // otra cosa.
>   }
>
> }
>
> regards.!
>
> On Jan 22, 9:46 am, Ashar Lohmar  wrote:
> > this might sound like a stupid workaround ... but can't you add an if
> > statement or something to check if the table will have only one
> > column ?! and for that use setColumnWidth ...
> > i know that this is not a real answer but this is the only thing that
> > comes into my mind without trying the real source/objects to see
> > another "trick"
> >
> > hope it helps
> > good luck
> >
> > On Jan 22, 2:57 am, Alexei Telles  wrote:
> >
> > > Hi, I'm just starting using the gwt-incubator.
> > > I need to make a table, so I am using a FixedWidthFlexTable to the
> > > header and a FixedWidthGrid to the dataTable (content of the table).
> >
> > > I have a procedure that mounts the dataTable
> >
> > > The problem that I am having is:
> > > when my dataTable have more than one column, the dataTable is ok
> >
> > > I am setting the width to 100%, so my table fits my div at all.
> >
> > > But when my table have only one column, I don't know why the column
> > > width stays to short
> > > Of course, if I use the method setColumnWidth of the FixedWidthGrid
> > > works fine, but I use the same procedure to generate all tables of my
> > > application, so I can't do that!!!
> >
> > > I don't know if I gave a good explanation about my problem.
> >
> > > I am trying to use the Firebug to discover what i am doing wrong, but
> > > the HTML code generated is a little confused.
> >
> > > Is ther anything in the FixedWidthGrid about the first column of the
> > > table, or is there a way to I set all widths of my table like
> > > automatic?
> >
> > > I appreciate any help
> >
> > > Thanks...
> >
> >
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: incubator ScrollTable

2010-01-22 Thread Felipe
m 

I don't know if is the better solution, this maybe:


public void afterLoad () {

   if ( tablaScroll.getDataTable().getColumnCount() == 1) {
  // setColumnWitdh
   } else {
  // otra cosa.
   }

}

regards.!

On Jan 22, 9:46 am, Ashar Lohmar  wrote:
> this might sound like a stupid workaround ... but can't you add an if
> statement or something to check if the table will have only one
> column ?! and for that use setColumnWidth ...
> i know that this is not a real answer but this is the only thing that
> comes into my mind without trying the real source/objects to see
> another "trick"
>
> hope it helps
> good luck
>
> On Jan 22, 2:57 am, Alexei Telles  wrote:
>
> > Hi, I'm just starting using the gwt-incubator.
> > I need to make a table, so I am using a FixedWidthFlexTable to the
> > header and a FixedWidthGrid to the dataTable (content of the table).
>
> > I have a procedure that mounts the dataTable
>
> > The problem that I am having is:
> > when my dataTable have more than one column, the dataTable is ok
>
> > I am setting the width to 100%, so my table fits my div at all.
>
> > But when my table have only one column, I don't know why the column
> > width stays to short
> > Of course, if I use the method setColumnWidth of the FixedWidthGrid
> > works fine, but I use the same procedure to generate all tables of my
> > application, so I can't do that!!!
>
> > I don't know if I gave a good explanation about my problem.
>
> > I am trying to use the Firebug to discover what i am doing wrong, but
> > the HTML code generated is a little confused.
>
> > Is ther anything in the FixedWidthGrid about the first column of the
> > table, or is there a way to I set all widths of my table like
> > automatic?
>
> > I appreciate any help
>
> > Thanks...
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: incubator ScrollTable

2010-01-22 Thread Ashar Lohmar
this might sound like a stupid workaround ... but can't you add an if
statement or something to check if the table will have only one
column ?! and for that use setColumnWidth ...
i know that this is not a real answer but this is the only thing that
comes into my mind without trying the real source/objects to see
another "trick"

hope it helps
good luck


On Jan 22, 2:57 am, Alexei Telles  wrote:
> Hi, I'm just starting using the gwt-incubator.
> I need to make a table, so I am using a FixedWidthFlexTable to the
> header and a FixedWidthGrid to the dataTable (content of the table).
>
> I have a procedure that mounts the dataTable
>
> The problem that I am having is:
> when my dataTable have more than one column, the dataTable is ok
>
> I am setting the width to 100%, so my table fits my div at all.
>
> But when my table have only one column, I don't know why the column
> width stays to short
> Of course, if I use the method setColumnWidth of the FixedWidthGrid
> works fine, but I use the same procedure to generate all tables of my
> application, so I can't do that!!!
>
> I don't know if I gave a good explanation about my problem.
>
> I am trying to use the Firebug to discover what i am doing wrong, but
> the HTML code generated is a little confused.
>
> Is ther anything in the FixedWidthGrid about the first column of the
> table, or is there a way to I set all widths of my table like
> automatic?
>
> I appreciate any help
>
> Thanks...

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



incubator ScrollTable

2010-01-21 Thread Alexei Telles
Hi, I'm just starting using the gwt-incubator.
I need to make a table, so I am using a FixedWidthFlexTable to the
header and a FixedWidthGrid to the dataTable (content of the table).

I have a procedure that mounts the dataTable

The problem that I am having is:
when my dataTable have more than one column, the dataTable is ok

I am setting the width to 100%, so my table fits my div at all.

But when my table have only one column, I don't know why the column
width stays to short
Of course, if I use the method setColumnWidth of the FixedWidthGrid
works fine, but I use the same procedure to generate all tables of my
application, so I can't do that!!!

I don't know if I gave a good explanation about my problem.

I am trying to use the Firebug to discover what i am doing wrong, but
the HTML code generated is a little confused.

Is ther anything in the FixedWidthGrid about the first column of the
table, or is there a way to I set all widths of my table like
automatic?

I appreciate any help

Thanks...

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



dynamically deleting records from incubator scrolltable

2009-08-28 Thread myapplicationquestions

Hi All,

In one of my grids i have a requrirement that based on some action on
the grid the record in teh grid needs to be deleted and widget
refereshed.I could not find any delete method on scrolltable or grid
(core gwt). Do i always need to redraw the grid? or is there a better
option?

Thanks,

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: trying up gwt incubator scrollTable problem

2009-06-22 Thread asianCoolz

yes, i did inherits those tags, but now i get

[WARN] Unexpectedly unable to fully resolve type
com.google.gwt.user.client.ui.SuggestBox.1TextBoxEvents


and my app unable to startup


1. can thse scrolltable run on gwt1.6?
2. what else do i need to do beside inherits  those tags above?
3. from what i understand this error is called by this line
dataTable.setHTML(i, 0, LAST_NAMES[Random.nextInt
(LAST_NAMES.length)]);   //setHTML method, if i excluded this line, i
able to run without problem on hosted mode
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: trying up gwt incubator scrollTable problem

2009-06-20 Thread hezjing
Hi

You may want to check Table.gwt.xml shown in
http://google-web-toolkit-incubator.googlecode.com/svn/trunk/src/com/google/gwt/gen2/table/Table.gwt.xml

Do you have the modules inherited like the following?









On Sat, Jun 20, 2009 at 5:44 PM, asianCoolz  wrote:

>
> i trying out the incubator
>
> http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=PagingScrollTable
> "scroll table" but when i try to run the example, i get error below
>
> [ERROR] Line 150: No source code is available for type
> com.google.gwt.gen2.table.client.FixedWidthFlexTable; did you forget
> to inherit a required module?
> [ERROR] Line 152: No source code is available for type
> com.google.gwt.gen2.table.client.FixedWidthGrid; did you forget to
> inherit a required module?
>
>
> do i need to include source codes for incubator ?
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



trying up gwt incubator scrollTable problem

2009-06-20 Thread asianCoolz

i trying out the incubator
http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=PagingScrollTable
"scroll table" but when i try to run the example, i get error below

[ERROR] Line 150: No source code is available for type
com.google.gwt.gen2.table.client.FixedWidthFlexTable; did you forget
to inherit a required module?
[ERROR] Line 152: No source code is available for type
com.google.gwt.gen2.table.client.FixedWidthGrid; did you forget to
inherit a required module?


do i need to include source codes for incubator ?
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Incubator - ScrollTable with TextBox

2009-06-10 Thread abhiram wuntakal
Thanks Isaac,

 I found an other way to get the logic working. it was necessary so that i
could conviniently delete the row, save the row data and other such
activities!!!

  thanks again...

regards,
Abhiram


On 6/11/09, Isaac Truett  wrote:
>
>
> I think you want getWidget(), not getText(). Cast the result to
> TextBox (or perhaps HasText if you want something more generic) and
> get the text from that.
>
>
>
> On Sun, Jun 7, 2009 at 1:39 PM, abhiram  wrote:
> >
> > Hi all,
> >
> >   I wanted to know if Scrolltable is a panel good enough to hold
> > TextBox widgets.
> >
> >   I have created a ScrollTable (using gwt-incubator_1-5_Dec_28) with
> > TextBoxes in a particular column and labels in other columns.
> >  I can extract the label value using the function
> > "scrollTable.getDataTable().getText(row,col)".
> >
> >  But i am not able to get the value at the TextBox using this
> > function. It always returns null.
> >
> >  Am i missing something here? Is there any other way to get the value
> > of the text in the textBox present at a particular cell?
> >
> >  PS : I am not using the TextBox array logic to get the data at the
> > textBox because there are certain problems when i delete the row in
> > the scrollTable.
> >
> > Regards,
> > Abhiram
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Incubator - ScrollTable with TextBox

2009-06-10 Thread Peter Kirklewski

Hi there

Anyone who played with chronoscope and eclipse and knows somw good 
tutorials please ?

Best regards

Peter

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Incubator - ScrollTable with TextBox

2009-06-10 Thread Isaac Truett

I think you want getWidget(), not getText(). Cast the result to
TextBox (or perhaps HasText if you want something more generic) and
get the text from that.



On Sun, Jun 7, 2009 at 1:39 PM, abhiram  wrote:
>
> Hi all,
>
>   I wanted to know if Scrolltable is a panel good enough to hold
> TextBox widgets.
>
>   I have created a ScrollTable (using gwt-incubator_1-5_Dec_28) with
> TextBoxes in a particular column and labels in other columns.
>  I can extract the label value using the function
> "scrollTable.getDataTable().getText(row,col)".
>
>  But i am not able to get the value at the TextBox using this
> function. It always returns null.
>
>  Am i missing something here? Is there any other way to get the value
> of the text in the textBox present at a particular cell?
>
>  PS : I am not using the TextBox array logic to get the data at the
> textBox because there are certain problems when i delete the row in
> the scrollTable.
>
> Regards,
> Abhiram
> >
>

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT Incubator - ScrollTable with TextBox

2009-06-07 Thread abhiram

Hi all,

   I wanted to know if Scrolltable is a panel good enough to hold
TextBox widgets.

   I have created a ScrollTable (using gwt-incubator_1-5_Dec_28) with
TextBoxes in a particular column and labels in other columns.
  I can extract the label value using the function
"scrollTable.getDataTable().getText(row,col)".

  But i am not able to get the value at the TextBox using this
function. It always returns null.

  Am i missing something here? Is there any other way to get the value
of the text in the textBox present at a particular cell?

 PS : I am not using the TextBox array logic to get the data at the
textBox because there are certain problems when i delete the row in
the scrollTable.

Regards,
Abhiram
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Incubator ScrollTable how to remove icon right-top corner

2009-05-14 Thread jay

My solution is this:
1. Create a new CSS class:
.not-displayed {
display: none !important;
}

2. In my PagingScrollTable subclass's ctor:
  for ( int index = 0, numWidgets = getWidgetCount(); index <
numWidgets; index++ ) {
Widget widget = getWidget( index );
if ( widget instanceof Image ) {
  // Well, we can't remove the widget...AbstractScrollTable
prevents that. So, add a style that
  //  will cause it to not be displayed...
  widget.addStyleName( "not-displayed" );
  break;
}
  }

I know it's fragile, but having the button just confuses my users.

Please...make sure that when this widget graduates to core that:
  1. This button's behavior is configurable
  2. The button's presence is configurable

thanks,

jay

On May 11, 3:55 pm, Sumit Chandel  wrote:
> Hi Mike,
> A possible solution would be to subclass the PagingOptionsImages image
> bundle interface and place your own images named the same as the
> PagingOptionsImages methods in your subclass package. This should replace
> the standard paging table images with your own (which I think in your case
> would be blank images).
>
> Alternatively, you could override the methods in the PagingOptionsImages in
> your subclass and @gwt.resource annotations pointing to images with names of
> your choice.
>
> Hope that helps,
> -Sumit Chandel
>
>
>
> On Thu, May 7, 2009 at 2:26 PM, mdwarne  wrote:
>
> > Hi,
>
> > I'm not sure if this is the right place for incubator questions. I
> > haven't been able to find the incubator group.
>
> > I am using the scroll table from the incubator,  it has a small icon
> > (2 mini arrows pointing left and right).
> > I would like to remove/hide this icon.
>
> > Any ideas?
> > Thanks,
> > Mike.
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Incubator ScrollTable how to remove icon right-top corner

2009-05-11 Thread Sumit Chandel
Hi Mike,
A possible solution would be to subclass the PagingOptionsImages image
bundle interface and place your own images named the same as the
PagingOptionsImages methods in your subclass package. This should replace
the standard paging table images with your own (which I think in your case
would be blank images).

Alternatively, you could override the methods in the PagingOptionsImages in
your subclass and @gwt.resource annotations pointing to images with names of
your choice.

Hope that helps,
-Sumit Chandel

On Thu, May 7, 2009 at 2:26 PM, mdwarne  wrote:

>
> Hi,
>
> I'm not sure if this is the right place for incubator questions. I
> haven't been able to find the incubator group.
>
> I am using the scroll table from the incubator,  it has a small icon
> (2 mini arrows pointing left and right).
> I would like to remove/hide this icon.
>
> Any ideas?
> Thanks,
> Mike.
>
>
>
> >
>

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Incubator ScrollTable how to remove icon right-top corner

2009-05-07 Thread mdwarne

Hi,

I'm not sure if this is the right place for incubator questions. I
haven't been able to find the incubator group.

I am using the scroll table from the incubator,  it has a small icon
(2 mini arrows pointing left and right).
I would like to remove/hide this icon.

Any ideas?
Thanks,
Mike.



--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: incubator ScrollTable

2009-03-10 Thread jve

Nic,

I had the same problem with the IndexOutOfBoundsException.

I fixed the demo code to get it working with the gen2 package:

  public void onModuleLoad() {
int numStudents = 100;
...
FixedWidthGrid dataTable = createDataTable(numStudents, 10);

  ./.

  /**
   * Create the data table.
   *
   * @return a data table
   */
  private FixedWidthGrid createDataTable(int rows, int cols) {
// Create a new table
FixedWidthGrid dataTable = new FixedWidthGrid(rows, cols);

// Set some options in the data table
dataTable.setSelectionPolicy
(SelectionGrid.SelectionPolicy.MULTI_ROW);

// Return the data table
return dataTable;
  }

Best Regards,

Johan Vermeire
Belgium

On Feb 27, 4:17 pm, Isaac Truett  wrote:
> Nick,
>
> The widgetideas classes are deprecated because they are being replaced
> by newer, improved versions in the gen2 package. The old classes are
> still around to help people who are transitioning to the gen2
> versions.
>
> I'm not aware of a completely comprehensive guide to incubator
> widgets, but there is a lot of demo code that can be very helpful. The
> JavaDocs are also a good place to look for information on widget API.
>
> - Isaac
>
> On Fri, Feb 27, 2009 at 9:57 AM, Nick  wrote:
>
> > Well, I was able to get this working by swapping out the gen2 imports
> > with the widgetsideas package.  I'm noticing that all the classes are
> > deprecated though.
> > Is there a reason for this and is there someplace that explains more
> > details on using the incubator widgets?
>
> > On Feb 27, 9:45 am, Nick  wrote:
> >> I'm attempting to use the ScrollTable from the incubator package and
> >> I'm having problems.  I copied the code 
> >> fromhttp://code.google.com/docreader/#p=google-web-toolkit-incubator,gwt-...
> >> and I fixed an issue that must be from an old version, so I changed
> >> FlexCellFormatter  to FixedWidthFlexCellFormatter.  Added  >> name='com.google.gwt.gen2.Gen2' /> in the xml file.  It all compiles.
> >> But I get a:
> >> [ERROR] Unable to load module entry point class
> >> com.mycompany.client.ScrollTest (see associated exception for details)
> >> java.lang.IndexOutOfBoundsException: Row index: 0, Row size: 0
>
> >> The error is on the line:
> >> dataTable.setHTML(i, 0, LAST_NAMES[Random.nextInt
> >> (LAST_NAMES.length)]);
>
> >> So basically it's trying start setting the cell data and it's saying
> >> that there are no rows.
> >> Now, according to the ScrollTable constructor:
> >> ScrollTable(FixedWidthGrid dataTable, FixedWidthFlexTable
> >> headerTable)
> >> from the docshttp://collectionofdemos.appspot.com/javadoc/index.html
> >> The dataTable is a FixedWidthGrid which is basically a Grid.  And I
> >> know Grids need to be sized at the start, but there doesn't seem to be
> >> a place to size it.
>
> >> Anyone have a clue how to get this widget working?
> >> All I'm really looking for is a replacement for the FlexTable that
> >> allows resizable columns and the demo for this looks like what I
> >> need.  I already tried both ext libs, smartgwt and another component
> >> library.
>
>

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Incubator: ScrollTable, hide and sort column

2009-03-04 Thread Twentyseven

Hello,

I'm using Scrolltable from the incubator without problem, untill I
tried to hide a column (not the last one but one at the beginning).
When I tried to sort the visible columns, I found that by clicking on
a header cell, it was sorting the previous column and not the good
one.
Is it a bug from the scrolltable ?

Thank's
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: incubator ScrollTable

2009-02-27 Thread Isaac Truett

Nick,

The widgetideas classes are deprecated because they are being replaced
by newer, improved versions in the gen2 package. The old classes are
still around to help people who are transitioning to the gen2
versions.

I'm not aware of a completely comprehensive guide to incubator
widgets, but there is a lot of demo code that can be very helpful. The
JavaDocs are also a good place to look for information on widget API.

- Isaac

On Fri, Feb 27, 2009 at 9:57 AM, Nick  wrote:
>
> Well, I was able to get this working by swapping out the gen2 imports
> with the widgetsideas package.  I'm noticing that all the classes are
> deprecated though.
> Is there a reason for this and is there someplace that explains more
> details on using the incubator widgets?
>
> On Feb 27, 9:45 am, Nick  wrote:
>> I'm attempting to use the ScrollTable from the incubator package and
>> I'm having problems.  I copied the code 
>> fromhttp://code.google.com/docreader/#p=google-web-toolkit-incubator,gwt-...
>> and I fixed an issue that must be from an old version, so I changed
>> FlexCellFormatter  to FixedWidthFlexCellFormatter.  Added > name='com.google.gwt.gen2.Gen2' /> in the xml file.  It all compiles.
>> But I get a:
>> [ERROR] Unable to load module entry point class
>> com.mycompany.client.ScrollTest (see associated exception for details)
>> java.lang.IndexOutOfBoundsException: Row index: 0, Row size: 0
>>
>> The error is on the line:
>> dataTable.setHTML(i, 0, LAST_NAMES[Random.nextInt
>> (LAST_NAMES.length)]);
>>
>> So basically it's trying start setting the cell data and it's saying
>> that there are no rows.
>> Now, according to the ScrollTable constructor:
>> ScrollTable(FixedWidthGrid dataTable, FixedWidthFlexTable
>> headerTable)
>> from the docshttp://collectionofdemos.appspot.com/javadoc/index.html
>> The dataTable is a FixedWidthGrid which is basically a Grid.  And I
>> know Grids need to be sized at the start, but there doesn't seem to be
>> a place to size it.
>>
>> Anyone have a clue how to get this widget working?
>> All I'm really looking for is a replacement for the FlexTable that
>> allows resizable columns and the demo for this looks like what I
>> need.  I already tried both ext libs, smartgwt and another component
>> library.
> >
>

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: incubator ScrollTable

2009-02-27 Thread Nick

Well, I was able to get this working by swapping out the gen2 imports
with the widgetsideas package.  I'm noticing that all the classes are
deprecated though.
Is there a reason for this and is there someplace that explains more
details on using the incubator widgets?

On Feb 27, 9:45 am, Nick  wrote:
> I'm attempting to use the ScrollTable from the incubator package and
> I'm having problems.  I copied the code 
> fromhttp://code.google.com/docreader/#p=google-web-toolkit-incubator,gwt-...
> and I fixed an issue that must be from an old version, so I changed
> FlexCellFormatter  to FixedWidthFlexCellFormatter.  Added  name='com.google.gwt.gen2.Gen2' /> in the xml file.  It all compiles.
> But I get a:
> [ERROR] Unable to load module entry point class
> com.mycompany.client.ScrollTest (see associated exception for details)
> java.lang.IndexOutOfBoundsException: Row index: 0, Row size: 0
>
> The error is on the line:
> dataTable.setHTML(i, 0, LAST_NAMES[Random.nextInt
> (LAST_NAMES.length)]);
>
> So basically it's trying start setting the cell data and it's saying
> that there are no rows.
> Now, according to the ScrollTable constructor:
> ScrollTable(FixedWidthGrid dataTable, FixedWidthFlexTable
> headerTable)
> from the docshttp://collectionofdemos.appspot.com/javadoc/index.html
> The dataTable is a FixedWidthGrid which is basically a Grid.  And I
> know Grids need to be sized at the start, but there doesn't seem to be
> a place to size it.
>
> Anyone have a clue how to get this widget working?
> All I'm really looking for is a replacement for the FlexTable that
> allows resizable columns and the demo for this looks like what I
> need.  I already tried both ext libs, smartgwt and another component
> library.
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



incubator ScrollTable

2009-02-27 Thread Nick

I'm attempting to use the ScrollTable from the incubator package and
I'm having problems.  I copied the code from
http://code.google.com/docreader/#p=google-web-toolkit-incubator,gwt-incubator-1-5-wiki&s=google-web-toolkit-incubator&t=ScrollTable
and I fixed an issue that must be from an old version, so I changed
FlexCellFormatter  to FixedWidthFlexCellFormatter.  Added  in the xml file.  It all compiles.
But I get a:
[ERROR] Unable to load module entry point class
com.mycompany.client.ScrollTest (see associated exception for details)
java.lang.IndexOutOfBoundsException: Row index: 0, Row size: 0

The error is on the line:
dataTable.setHTML(i, 0, LAST_NAMES[Random.nextInt
(LAST_NAMES.length)]);

So basically it's trying start setting the cell data and it's saying
that there are no rows.
Now, according to the ScrollTable constructor:
ScrollTable(FixedWidthGrid dataTable, FixedWidthFlexTable
headerTable)
from the docs http://collectionofdemos.appspot.com/javadoc/index.html
The dataTable is a FixedWidthGrid which is basically a Grid.  And I
know Grids need to be sized at the start, but there doesn't seem to be
a place to size it.

Anyone have a clue how to get this widget working?
All I'm really looking for is a replacement for the FlexTable that
allows resizable columns and the demo for this looks like what I
need.  I already tried both ext libs, smartgwt and another component
library.
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Incubator: ScrollTable

2008-12-22 Thread Suri

Hi Francesco,

I'm using the ScrollTable myself and I was able to make the columns to
be of fixed width simply by setting the minimum, preferred and maximum
widths of my column(s) to be of the same value. e.g if you're being
consistent with the example code provided:

private TableDefinition createTableDefinition()
{

   // definition for a column
   {
   StudentColumnDefinition colDef =
StudentColumnDefinition("Col 1") {



   }
}



On Dec 21, 8:29 am, francescoNemesi  wrote:
> Hello,
>
> I have been using the ScrollTable widget
> (com.google.gwt.gen2.table.client.ScrollTable) in the incubator and I
> find it very useful. I need to add a "Row Header" section which
> contains fixed columns that do not move when scrolling horizontally.
>
> I have studied the AbstractScrollTable
> (com.google.gwt.gen2.table.client.AbstractScrollTable) class code
> which implements most of the ScrollTable functionality and I think the
> "cleanest" and best way to add a Row Header would be to add a
> FixedWidthFlexTable that implements it, much in the same way the
> existing headerTable has been implemented.
>
> Has anyone done this before? Are there any best practices to change
> the current code in the incubator (AbstractScrollTable class code
> would need some substantial parts added to it)?
>
> An abovious solution would be create my own class that extends
> AbstractScrollTable, but this contains either private or protected
> instance variables (for example Element absoluteElement, the widget
> main DIV container), so I'd rather go for the cleanest approach
> possible...
>
> Any help and suggestions highly appreciated.
>
> Thanks,
> Francesco
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Incubator: ScrollTable

2008-12-21 Thread francescoNemesi

Hello,

I have been using the ScrollTable widget
(com.google.gwt.gen2.table.client.ScrollTable) in the incubator and I
find it very useful. I need to add a "Row Header" section which
contains fixed columns that do not move when scrolling horizontally.

I have studied the AbstractScrollTable
(com.google.gwt.gen2.table.client.AbstractScrollTable) class code
which implements most of the ScrollTable functionality and I think the
"cleanest" and best way to add a Row Header would be to add a
FixedWidthFlexTable that implements it, much in the same way the
existing headerTable has been implemented.

Has anyone done this before? Are there any best practices to change
the current code in the incubator (AbstractScrollTable class code
would need some substantial parts added to it)?

An abovious solution would be create my own class that extends
AbstractScrollTable, but this contains either private or protected
instance variables (for example Element absoluteElement, the widget
main DIV container), so I'd rather go for the cleanest approach
possible...

Any help and suggestions highly appreciated.

Thanks,
Francesco


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Incubator ScrollTable: how to get the entity corresponding to the selected row?

2008-08-26 Thread Jeremiah Elliott

In my case, i get the row/column index of the cell that was clicked,
and look that up in the data object I used to build the table from.
Not as OO as extending the ScrollTable class, but it is doing the
trick for me.

-Jeremiah

On Mon, Aug 25, 2008 at 5:15 PM, wt <[EMAIL PROTECTED]> wrote:
>
> I am using the incubator ScrollTable and I can load a List
> into it to get the entities displayed. When the user selects a row in
> the table, I need to retrieve the entity corresponding to the row. It
> seems that I can only get the selected row index from the data grid,
> so how can I achieve this? I appreciate if someone can help me with
> this.
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Incubator ScrollTable: how to get the entity corresponding to the selected row?

2008-08-25 Thread wt

I am using the incubator ScrollTable and I can load a List
into it to get the entities displayed. When the user selects a row in
the table, I need to retrieve the entity corresponding to the row. It
seems that I can only get the selected row index from the data grid,
so how can I achieve this? I appreciate if someone can help me with
this.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---