SmartClient Version: v12.1p_2021-10-22/PowerEdition Deployment (built 2021-10-22)
We have an OLD SmartGWT application which I am trying to resurrect, and I see this Warning: "the method getScrollbar() from ListGrid is deprecated"
I wonder how to replace this deprecated call.
If I look at the documentation at: https://smartclient.com/smartgwt-12....artgwt/client/ for the ListGrid class, the getScrollbar() is not documented.
the call returns a Canvas object.
In another class derived from VLayout, there is this code line: ( I assume fetching the scrollbar and adjusting the current canvas and then adding it to the VLayout derived class).
I didn't write this code, and it wasn't documented by that person.
I assume that the author was getting a Scrollbar Object, and then setting the left edge of the class Canvas so that it didn't occlude the the scrollbar of the grid - or something like that.
Since there is no documentation on Listgrid.getScrollbar() or on Canvas.getScrollbar that I can find, what do you recommend I replace this with?
We have an OLD SmartGWT application which I am trying to resurrect, and I see this Warning: "the method getScrollbar() from ListGrid is deprecated"
I wonder how to replace this deprecated call.
If I look at the documentation at: https://smartclient.com/smartgwt-12....artgwt/client/ for the ListGrid class, the getScrollbar() is not documented.
the call returns a Canvas object.
In another class derived from VLayout, there is this code line: ( I assume fetching the scrollbar and adjusting the current canvas and then adding it to the VLayout derived class).
Code:
// Container is a derived VLayout class,; the class contains a ListGrid as a component. // The author is getting the left edge of the scrollbar of the ListGrid component. container.getScrollbar().setLeft(container.getAbsoluteLeft() - getAbsoluteLeft()); addMember(container.getScrollbar());
I assume that the author was getting a Scrollbar Object, and then setting the left edge of the class Canvas so that it didn't occlude the the scrollbar of the grid - or something like that.
Since there is no documentation on Listgrid.getScrollbar() or on Canvas.getScrollbar that I can find, what do you recommend I replace this with?
Comment