I am creating Project Management Tool. Main functionalities are :
- Remote presentation (used: GwtEventService, status:done )
- BugTracker (partially done)
- Gantt chart for this I need scrollable window to show all tasks for particulary (day,week,month) (I am working on this now)
-IDE(netbeans,eclipse) simply plugin which can connect to service and set progress of task.(done)
Used technologies
GUI: SmartGWT in 95%.
EJB 3.1
Communication: GWT-RPC
I am determinated becouse I don't have much time(heh as usualy in IT projects everything is on yesterday :))
Regards
Tomek
Announcement
Collapse
No announcement yet.
X
-
Here try this:
Move the window, since it will be on top of the button, but then click the button and the window should scroll.Code:public class MyWindow extends Window { public native void myScrollTo(int x, int y) /*-{ var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()(); self.body.scrollTo(x, y); }-*/; }; public void onModuleLoad() { final MyWindow window = new MyWindow(); window.setOverflow(Overflow.VISIBLE); window.setWidth(500); final Label label = new Label("hello"); label.setBackgroundColor("red"); label.setWidth(1200); window.addItem(label); window.draw(); IButton b = new IButton("Scroll"); b.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { window.myScrollTo(1000, 10); } }); b.draw(); }
Leave a comment:
-
Isomorphic Can you help me ?
I am writing my master's thesis and I really need solution for above problem.
Leave a comment:
-
I have set
but it still does not work. I also tried with others overflows valuesCode:window.setOverflow(Overflow.AUTO);
on a window and Hlayout component
but all this options does not work. Solution for this problem is very important for me. Does anybody help ?Last edited by jatoma; 8 Jul 2010, 07:00.
Leave a comment:
-
Problem with Window scrollTO
Hi,
I have a problem with method scrollTo.
example:
I would like to have a scrolled window to see the end (or middle) of label.Code:Window window = new Window(); window.setWidth(500); Label label = new Label("hello"); label.setBackgroundColor("red"); label.setWidth(1200); window.addItem(label); RootPanel.get("main").add(window);
I tried following but it does not work:
window.scrollToRight();
window.scrollTo(1000,0);
and
label.scrollToRight();
I didn't find the answer in all posts concerned with scrolling in forum.
Can anybody help ?Last edited by jatoma; 8 Jul 2010, 04:51.Tags: None
Leave a comment: