Re: java.lang.IllegalArgumentException: Only one CENTER widget may be added
It doesn't stop on my breakpoints, it just displays this error. On 13 jun, 07:38, Stefan Bachert stefanbach...@yahoo.de wrote: Hi Kelo, what is unclear? The error message clearly states that you tried more than once to set a center widget. .. DockPanel.CENTER); Set breakpoints on both statements which doing this and watch. Stefan Bacherthttp://gwtworld.de On Jun 11, 5:32 pm, Kelo mcac...@gmail.com wrote: Clicking on my ant's script target name=devmode depends=javac description=Run development mode java failonerror=true fork=true classname=com.google.gwt.dev.DevMode classpath pathelement location=src/ pathelement location=/Galileo/workspace/Mark5/src/ path refid=project.class.path/ /classpath jvmarg value=-Xmx256M/ jvmarg value=-Xss16M/ arg value=-noserver/ arg value=-port/ arg value=8080/ arg value=-startupUrl/ arg value=VCarCli/VCarCli.html/ arg value=-logLevel/ arg value=DEBUG/ !-- Additional arguments like -style PRETTY or -logLevel DEBUG -- arg value=-war/ arg value=D:/Galileo/workspace/VCarCli/war/ arg value=com.gasban.VCarCli/ /java /target When I launch DevMode so on my GWT DevMode Box, app tab shows this errors: 00:00:50,872 [ERROR] Unable to load module entry point class com.gasban.client.VCarCli (see associated exception for details) java.lang.IllegalArgumentException: Only one CENTER widget may be added at com.google.gwt.user.client.ui.DockPanel.add(DockPanel.java:166) at com.gasban.client.AbstractApp.mostrar(AbstractApp.java:87) at com.gasban.client.VCarCli.changeHistory(VCarCli.java:36) at com.gasban.client.VCarCli.changeHistory(VCarCli.java:33) at com.gasban.client.AbstractApp.onValueChange(AbstractApp.java:53) at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java: 128) at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java: 1) at com.google.gwt.event.shared.HandlerManager $HandlerRegistry.fireEvent(HandlerManager.java:65) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access $1(HandlerManager.java:53) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 178) at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java: 74) at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java: 43) at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java: 81) at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java: 121) at com.gasban.client.VCarCli.cargarPanelesSistema(VCarCli.java:77) at com.gasban.client.VCarCli.onModuleLoad(VCarCli.java:44) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:369) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 185) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 380) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Thread.java:619) SWF: Galileo 3.5.2 GWT 2.0.3 jdk1.6.0_17 jboss-4.0.5 sources: public class VCarCli extends AbstractApp { private static VCarCli instance; public VCarCli() { instance = this; } public static VCarCli getInstance() { if (instance != null) return instance; return new VCarCli(); } @Override public void changeHistory(String token, boolean afectaHistoria) { PanelEspecialInfo info = list.encontrar(token); if (info == null) { this.changeHistory(Clientes,false); return; } mostrar(info, afectaHistoria); } /** * This is the entry point method. */ public void onModuleLoad() { seeds.put(Clientes, (Seed)(new DRSSeed(clientservice))); cargarPanelesSistema(); } private void cargarPanelesSistema() { if (RootPanel.get().getWidgetCount()0) RootPanel.get().remove(0); // Carga todos lo Paneles Especiales list.agregar(Clientes.init(), false); list.agregar(PanelCliente.init()); // Put the sink list on the left, and add the outer dock panel to the // root. sinkContainer = new DockPanel(); sinkContainer.setStyleName(sv-Contenedor
Re: java.lang.IllegalArgumentException: Only one CENTER widget may be added
I feel gwt's plugin is not good to debug my project because it usually has bugs. Can I debug it from Eclipse without that plugin ? On 13 jun, 13:28, Thomas Broyer t.bro...@gmail.com wrote: On 13 juin, 16:20, Kelo mcac...@gmail.com wrote: It doesn't stop on my breakpoints, it just displays this error. Yes, of course, as you're running DevMode from Ant. Can't you run it from Eclipse (or you IDE of choice)? -- 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.
java.lang.IllegalArgumentException: Only one CENTER widget may be added
Clicking on my ant's script target name=devmode depends=javac description=Run development mode java failonerror=true fork=true classname=com.google.gwt.dev.DevMode classpath pathelement location=src/ pathelement location=/Galileo/workspace/Mark5/src/ path refid=project.class.path/ /classpath jvmarg value=-Xmx256M/ jvmarg value=-Xss16M/ arg value=-noserver/ arg value=-port/ arg value=8080/ arg value=-startupUrl/ arg value=VCarCli/VCarCli.html/ arg value=-logLevel/ arg value=DEBUG/ !-- Additional arguments like -style PRETTY or -logLevel DEBUG -- arg value=-war/ arg value=D:/Galileo/workspace/VCarCli/war/ arg value=com.gasban.VCarCli/ /java /target When I launch DevMode so on my GWT DevMode Box, app tab shows this errors: 00:00:50,872 [ERROR] Unable to load module entry point class com.gasban.client.VCarCli (see associated exception for details) java.lang.IllegalArgumentException: Only one CENTER widget may be added at com.google.gwt.user.client.ui.DockPanel.add(DockPanel.java:166) at com.gasban.client.AbstractApp.mostrar(AbstractApp.java:87) at com.gasban.client.VCarCli.changeHistory(VCarCli.java:36) at com.gasban.client.VCarCli.changeHistory(VCarCli.java:33) at com.gasban.client.AbstractApp.onValueChange(AbstractApp.java:53) at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java: 128) at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java: 1) at com.google.gwt.event.shared.HandlerManager $HandlerRegistry.fireEvent(HandlerManager.java:65) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access $1(HandlerManager.java:53) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java: 178) at com.google.gwt.user.client.impl.HistoryImpl.fireEvent(HistoryImpl.java: 74) at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java: 43) at com.google.gwt.user.client.impl.HistoryImpl.fireHistoryChangedImpl(HistoryImpl.java: 81) at com.google.gwt.user.client.History.fireCurrentHistoryState(History.java: 121) at com.gasban.client.VCarCli.cargarPanelesSistema(VCarCli.java:77) at com.gasban.client.VCarCli.onModuleLoad(VCarCli.java:44) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:369) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 185) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 380) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Thread.java:619) SWF: Galileo 3.5.2 GWT 2.0.3 jdk1.6.0_17 jboss-4.0.5 sources: public class VCarCli extends AbstractApp { private static VCarCli instance; public VCarCli() { instance = this; } public static VCarCli getInstance() { if (instance != null) return instance; return new VCarCli(); } @Override public void changeHistory(String token, boolean afectaHistoria) { PanelEspecialInfo info = list.encontrar(token); if (info == null) { this.changeHistory(Clientes,false); return; } mostrar(info, afectaHistoria); } /** * This is the entry point method. */ public void onModuleLoad() { seeds.put(Clientes, (Seed)(new DRSSeed(clientservice))); cargarPanelesSistema(); } private void cargarPanelesSistema() { if (RootPanel.get().getWidgetCount()0) RootPanel.get().remove(0); // Carga todos lo Paneles Especiales list.agregar(Clientes.init(), false); list.agregar(PanelCliente.init()); // Put the sink list on the left, and add the outer dock panel to the // root. sinkContainer = new DockPanel(); sinkContainer.setStyleName(sv-Contenedor); VerticalPanel vp = new VerticalPanel(); vp.setWidth(100%); vp.add(description); vp.add(sinkContainer); description.setStyleName(sv-Info); panel.add(list, DockPanel.WEST); panel.add(vp, DockPanel.CENTER); panel.setCellVerticalAlignment(list, HasAlignment.ALIGN_TOP); panel.setCellWidth(vp, 100%); // Add history listener History.addValueChangeHandler(this); RootPanel.get(panelPrincipal).add(panel); // Now that we've setup our listener, fire the initial history state. History.fireCurrentHistoryState();
Re: Mouseover/mouseout event on GRID/FLEX TABLE
Heidi, Your code was based on old event's model, you should write this one on 1.6.4. Check this out http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/0b3158d9e7e2d21a# On 15 jun, 14:24, Hiedi hiedi.ut...@gmail.com wrote: This is basically how I did it: 1) Create a RowListener interface 2) Create a RowListenerCollection 3) Create an implementation of RowListener 4) Add your rowListener to the table you care about -- the table should know what its styles are and have a contract for hovering and resetting its own styles that the rowListener can call -- that way you can use the same listeners every where but the styles are controlled by your dataTable. 5) Lastly -- your table needs to implement onBrowserEvent and figure out what row its supposed to be acting on. import java.util.EventListener; public interface RowListener extends EventListener { void onMouseLeave(int row); void onMouseEnter(int row); void onMouseOver(int row); } import java.util.ArrayList; public class RowListenerCollection extends ArrayListRowListener { private static final long serialVersionUID = 1L; public void fireMouseEnterEvent(int row) { for (RowListener listener : this) { listener.onMouseEnter(row); } } public void fireMouseOverEvent(int row) { for (RowListener listener : this) { listener.onMouseOver(row); } } public void fireMouseLeaveEvent(int row) { for (RowListener listener : this) { listener.onMouseLeave(row); } } } import com.google.gwt.user.client.ui.SourcesTableEvents; import com.google.gwt.user.client.ui.TableListener; public class RowHighlighter implements TableListener, RowListener { private DataTable table = null; public RowHighlighter(DataTable table) { this.table = table; } public void onCellClicked(SourcesTableEvents sender, int row, int cell) { if (sender == table) { table.selectRow(row); } } public void onMouseEnter(int row) { if (table.getLastSelectedRow() != row) { table.hoverRow(row); } } public void onMouseLeave(int row) { if (table.getLastSelectedRow() != row) { table.resetRowStyle(row); } } public void onMouseOver(int row) { // TODO Auto-generated method stub } } mport com.google.gwt.user.client.ui.Widget; public interface DataTable { public abstract void highlightRow(int row); public abstract void hoverRow(int row); public abstract void resetRowStyle(int row); public abstract void resetTableStyle(); public abstract int getLastSelectedRow(); public abstract void setLastSelectedRow(int row); public abstract int getRowCount(); public abstract int getCellCount(int row); public abstract Widget getWidget(int row, int col); public abstract void selectRow(int row); } public void onBrowserEvent(Event event) { // Find out which row. Element td = getEventTargetCell(event); if (td == null) { return; } Element tr = DOM.getParent ((com.google.gwt.user.client.Element) td); Element body = DOM.getParent(tr); int row = DOM.getChildIndex(body, tr); switch (DOM.eventGetType(event)) { case Event.ONMOUSEOVER: // Only fire the mouseEnter event if it's coming from outside this // widget. Element from = DOM.eventGetFromElement(event); if (from == null || !DOM.isOrHasChild(tr, from)) { rowListeners.fireMouseEnterEvent(row); } break; case Event.ONMOUSEOUT: // Only fire the mouseLeave event if it's actually leaving this // widget. Element to = DOM.eventGetToElement(event); if (to == null || !DOM.isOrHasChild(tr, to)) { rowListeners.fireMouseLeaveEvent(row); } break; default: { // Do nothing } super.onBrowserEvent(event); } } --~--~-~--~~~---~--~~ 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: How can I add a MouseOutHandler to a FlexTable cell?
Hi Eduardo, Here's your solution: public class BocaJrsTable extends FlexTable implements HasMouseOutHandlers { private HandlerManager manager = new HandlerManager(this); public BocaJrsTable(){ super(); addDomHandler(new MouseOutHandler() { @Override public void onMouseOut(MouseOutEvent event) { fireEvent(event); } }, MouseOutEvent.getType()); } @Override public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { return manager.addHandler(MouseOutEvent.getType(), handler); } @Override public void fireEvent(GwtEvent? event) { manager.fireEvent(event); } } Good luck ! On Jun 12, 5:40 pm, Eduardo Nunes esnu...@gmail.com wrote: I already tried it, but it didn't work. I found a solution, but a very ugly one: private class FlexTableTd extends UIObject implements HasMouseOutHandlers, HasMouseOverHandlers, EventListener { public FlexTableTd(Element element) { this.setElement(element); DOM.setEventListener(this.getElement(), this); } public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { this.sinkEvents(Event.ONMOUSEOUT); return ensureHandlers().addHandler(MouseOutEvent.getType(), handler); } public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) { this.sinkEvents(Event.ONMOUSEOVER); return ensureHandlers().addHandler(MouseOverEvent.getType(), handler); } public void fireEvent(GwtEvent? event) { ensureHandlers().fireEvent(event); } public void onBrowserEvent(Event event) { switch (DOM.eventGetType(event)) { case Event.ONMOUSEOVER: case Event.ONMOUSEOUT: Element related = event.getRelatedTarget(); if (related != null getElement().isOrHasChild(related)) { return; } break; } DomEvent.fireNativeEvent(event, this, this.getElement()); } private HandlerManager handlerManager; HandlerManager ensureHandlers() { return handlerManager == null ? handlerManager = new HandlerManager(this) : handlerManager; } } On Fri, Jun 12, 2009 at 4:46 PM, matthew jonesbigboxe...@gmail.com wrote: Try this instead. addMouseOverHandler(MouseOverHandler handler) { return addDomHandler(handler, MouseOverEvent.getType()); } On Jun 12, 12:52 pm, Eduardo Nunes esnu...@gmail.com wrote: Well, the subject says everything, I would like to know how can I add a MouseOutHandler to a FlexTable cell. I tried a lot of things but none of them with success. I tried a wrap class: private class FlexTableTd extends Widget implements HasMouseOutHandlers, HasMouseOverHandlers { public FlexTableTd(Element element) { setElement(element); } public HandlerRegistration addMouseOutHandler(MouseOutHandler handler) { return addHandler(handler, MouseOutEvent.getType()); } public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) { return addHandler(handler, MouseOverEvent.getType()); } } and I tried FlexTableTd td = new FlexTableTd(table.getFlexCellFormatter().getElement(0, 0)); td.addMouseOverHandler(...); but it doesn't work. -- Eduardo S. Nuneshttp://e-nunes.com.br -- Eduardo S. Nuneshttp://e-nunes.com.br --~--~-~--~~~---~--~~ 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: Help with EventHandlers
I'm glad it works fine on your project. Saludos, Marcelo. On Jun 10, 6:43 pm, Iván López lopez.i...@gmail.com wrote: Thank you very much!. It works ok and now, with my code working I think I understand a little bit better how handlers works!. Muchas gracias compañero. Saludos, Iván. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
MouseOverHandler FlexTable's cell
I'm migrating my library to new event's model. I would like to know row and col of a FlexTable's cell by using MouseOverHandler, something similar to getCellForEvent(ClickEvent event) with ClickHandler. Can anyone help me ? --~--~-~--~~~---~--~~ 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: MouseOverHandler FlexTable's cell
I figured this out by using Element td = getEventTargetCell(Event.as (event.getNativeEvent())); on onMouseOver. On 9 jun, 16:24, Kelo mcac...@gmail.com wrote: I'm migrating my library to new event's model. I would like to know row and col of a FlexTable's cell by using MouseOverHandler, something similar to getCellForEvent(ClickEvent event) with ClickHandler. Can anyone help me ? --~--~-~--~~~---~--~~ 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: Help with EventHandlers
Acá va un poco de luz ( here's a little bit of light ). public class AccountManager extends Composite implements HasValueChangeHandlersInteger { public AccountManager() { .. .. .. .. initWidget(bar); } protected Integer getValue() { return some value; } private void loadAccounts() { AccountRemote.Util.getInstance().getAllAccount(new DefaultCallback() { @SuppressWarnings(unchecked) public void onSuccess(Object result) { if (result != null) { accounts = (ListAccount) result; // Save the accounts accountList.clear(); accountsHM.clear(); for (Account account : accounts) { accountList.addItem (account.getAccountName()); // Save the accounts accountsHM.put (account.getAccountName(), account); } // Update the list of the accounts in all clients ValueChangeEvent.fire (this,getValue()); } } }); public HandlerRegistration addValueChangeHandler(final ValueChangeHandlerInteger handler) { return addHandler(handler,ValueChangeEvent.getType()); } } On 9 jun, 18:15, Iván López lopez.i...@gmail.com wrote: Hi all!, I've a little problem upgrading my code from 1.5.3 to 1.6.4. I've an AccountManager class that manages the accounts and when a change is done it fires an event to all the components to update its list of accounts. AccountManager: private ChangeListenerCollection changeListeners; public void addChangeListener(ChangeListener listener) { if (changeListeners == null) { changeListeners = new ChangeListenerCollection(); } changeListeners.add(listener); } public void removeChangeListener(ChangeListener listener) { if (changeListeners != null) { changeListeners.remove(listener); } } private void fireChangeEvent() { if (changeListeners != null) { changeListeners.fireChange(accountMainPanel); } } private void loadAccounts() { AccountRemote.Util.getInstance().getAllAccount(new DefaultCallback() { @SuppressWarnings(unchecked) public void onSuccess(Object result) { if (result != null) { accounts = (ListAccount)result; // Save the accounts accountList.clear(); accountsHM.clear(); for (Account account : accounts) { accountList.addItem(account.getAccountName()); // Save the accounts accountsHM.put(account.getAccountName(), account); } // Update the list of the accounts in all clients fireChangeEvent(); } } }); } And in the clients I have this code: // ChangeListener to update the account list whenever an account change is done. ApplicationParameters.getInstance().getApplication ().getAccountManager().addChangeListener(new ChangeListener() { public void onChange(Widget sender) { // Update the accounts setFilterAccounts(ApplicationParameters.getInstance().getApplication ().getAccountManager().getAccounts()); } }); Now I'm trying to update this code to use EventHandlers but I've no idea what I should change. I've try with: public HandlerRegistration addChangeHandler(ChangeHandler handler) { return addDomHandler(handler, ChangeEvent.getType()); } But I cann't control when fire the event, I mean, when I change something the event is fired and the clients are updated even if it is not necessary. Please, could someone bring me to
Re: Hosted mode
Hi Greg, Push the button GWT Compile Project Compile your project setting log level to Spam Go to Debug Configurations , on the 2nd tab GWT of your project set log level to Spam. Run Debug as... ( your project ) Make your breakpoints on your project Then press Compile/Browse on Hosted Mode Once it fininshed press Refresh on Hosted Mode On Jun 1, 4:19 pm, Rajeev Dayal rda...@google.com wrote: Hi Greg, A few questions for you: 1) Are you using Debug As to launch your application's debugging session? 2) If you switch to the Debug perspective and look at the breakpoints view, are all of the breakpoints enabled? 3) If you go to Preferences (Window - Preferences on Linux and Windows, Eclipse - Preferences on Mac) - Run/Debug and make sure that Activate the workbench when breakpoint is hit and Activate the debug view when breakpoint is hit options are enabled? 4) Can you tell me what is on your project's classpath? Rajeev On Sat, May 30, 2009 at 5:05 PM, Greg greg.ba...@gmail.com wrote: I'm having the same problem as the OP. I'm working through the StockWatcher tutorial, and I set breakpoints on the specified lines in updateTable. Eclipse shows checkmarks on the breakpoint indicators after the hosted-mode browser starts. Extra calls to GWT.log demonstrate that control is passing through the marked lines, but execution does not stop. Eclipse's perspective never changes to Debug. OS: Vista Eclipse v3.4.2 (Ganymede + EE) GWT Plugin 1.0.1.v200905131143 GWT SDK for Win32 1.6.4.v200904062334 JDK 1.6.0_14 Thanks, Greg --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Hosted mode
I created a web app with google plugin on Eclipse Ganymede 3.4, then I made an entry on Debug Configurations... - Web application. Running on Hosted Mode, it didn´t stop on my breakpoints. After that I tried including gwt-user.jar on Classpath - User Entries but I coudn't make it works. --~--~-~--~~~---~--~~ 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: Hosted mode
I just tried by this way but I coudn´t make it stop on my breakpoints. On 12 mayo, 12:04, Jim jim.p...@gmail.com wrote: How about Debug As - Web Application. Jimhttp://www.gwtorm.comhttp://code.google.com/p/dreamsource-orm/ On May 12, 10:54 am, Kelo mcac...@gmail.com wrote: I created a web app with google plugin on Eclipse Ganymede 3.4, then I made an entry on Debug Configurations... - Web application. Running on Hosted Mode, it didn´t stop on my breakpoints. After that I tried including gwt-user.jar on Classpath - User Entries but I coudn't make it works. --~--~-~--~~~---~--~~ 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 1.6 Custom Event Handler
I wrote a post like yours asking for a guidance or something that it can explain how I can create my own handlers and events, and how I can make a drag drop using mouse handlers but my issue disappeared. On 27 abr, 17:55, Micky micky.johns...@gmail.com wrote: I’m building an application that is similar in layout to the Showcase example that is part of the GWT 1.6 install - there is central DeckPanel that contains a number of content widgets and only one of these widgets can be displayed at any one time. However, whereas the content widget being displayed in the Showcase example is controlled by the Tree on the left of the screen, my content widgets need to cause other content widgets to display. I’d like to be able to fire an event (e.g. ChangeContentWidgetEvent) from the content widgets and then have an application level handler manage the change in the DeckPanel. Do I need to create a custom event for this? If so, can someone provide some guidance or good articles on doing so? Is there a better approach to what I’m trying to do? 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 -~--~~~~--~~--~--~---
Migrating listeners to handlers
I have a lot of code using listeners/events, owner's listeners/events, so GWT 1.6 makes me have a headache with its new handlers. I don't find much documentation or examples about that. There's a link http://code.google.com/p/google-web-toolkit-incubator/wiki/GwtEventSystem where explains how to migrate listeners to handlers but I found this doesn't work with 1.6.4 Does anyone know some technique to migrate listeners to handlers, a good documentation or good examples ? Does anyone know some example of drag drop with 1.6.4 ? --~--~-~--~~~---~--~~ 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: MouseListener to MouseMoveHandler
To restrict the movement of a widget inside another. Seeing gwt's development from its beginning till now, do you think deprecated classes would not work anymore on next versions of GWT ? On 22 abr, 22:59, Thomas Broyer t.bro...@gmail.com wrote: On 22 avr, 20:49, Kelo mcac...@gmail.com wrote: Hi people, I used mouseListeners.fireMouseMove(this,x,y) on onBrowserEvent (Event event) to fire this kind of event and modified x and y. I would like to know how to set x and y when I firing an event on 1.6 : addDomHandler(new MouseMoveHandler() { public void onMouseMove(MouseMoveEvent event) { int x = new value; int y = new value; fireEvent(event); // how can I set x and y to modify its original values ? } },MouseMoveEvent.getType()); I'll appreciate any help. Have a look at com.google.gwt.dom.client.Document.createMouseMoveEvent and com.google.gwt.event.client.DomEvent.fireNativeEvent, I believe they'll be helpful. But may I ask why (you think) you need such a coordinate transform? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
MouseListener to MouseMoveHandler
Hi people, I used mouseListeners.fireMouseMove(this,x,y) on onBrowserEvent (Event event) to fire this kind of event and modified x and y. I would like to know how to set x and y when I firing an event on 1.6 : addDomHandler(new MouseMoveHandler() { public void onMouseMove(MouseMoveEvent event) { int x = new value; int y = new value; fireEvent(event); // how can I set x and y to modify its original values ? } },MouseMoveEvent.getType()); I'll appreciate any help. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---