List of usage examples for com.google.gwt.user.client.ui Button Button
protected Button(com.google.gwt.dom.client.Element element)
From source file:com.google.gwt.gdata.sample.hellogdata.client.ContactsUpdateContactDemo.java
License:Apache License
/** * Starts this demo.// w w w . java 2 s .co m */ private void startDemo() { service = ContactsService.newInstance("HelloGData_Contacts_UpdateContactDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Update a contact"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { queryContacts("http://www.google.com/m8/feeds/contacts/default/full"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Contacts.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.ContactsUpdateContactGroupDemo.java
License:Apache License
/** * Starts this demo./*w ww .j a v a 2 s . c o m*/ */ private void startDemo() { service = ContactsService.newInstance("HelloGData_Contacts_UpdateContactGroupDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Update a contact group"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { getContactGroups("http://www.google.com/m8/feeds/groups/default/full"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Contacts.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.FinanceCreatePortfolioDemo.java
License:Apache License
/** * Starts this demo./*w ww .j a va2s . co m*/ */ private void startDemo() { service = FinanceService.newInstance("HelloGData_Finance_CreatePortfolioDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Create a portfolio"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { createPortfolio("http://finance.google.com/finance/feeds/default/portfolios"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Finance.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.FinanceCreateTransactionDemo.java
License:Apache License
/** * Starts this demo./*from w w w. ja v a2 s. co m*/ */ private void startDemo() { service = FinanceService.newInstance("HelloGData_Finance_CreateTransactionDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Create a transaction"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { getPortfolios("http://finance.google.com/finance/feeds/default/portfolios"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Finance.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.FinanceDeletePortfolioDemo.java
License:Apache License
/** * Starts this demo./*from w w w . ja v a 2s.c om*/ */ private void startDemo() { service = FinanceService.newInstance("HelloGData_Finance_DeletePortfolioDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Delete a portfolio"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { getPortfolios("http://finance.google.com/finance/feeds/default/portfolios"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Finance.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.FinanceDeleteTransactionDemo.java
License:Apache License
/** * Starts this demo./*w ww .j a va 2s . c o m*/ */ private void startDemo() { service = FinanceService.newInstance("HelloGData_Finance_DeleteTransactionDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Delete a transaction"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { getPortfolios("http://finance.google.com/finance/feeds/default/portfolios"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Finance.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.FinanceUpdatePortfolioDemo.java
License:Apache License
/** * Starts this demo./*from w w w. j av a 2 s .c o m*/ */ private void startDemo() { service = FinanceService.newInstance("HelloGData_Finance_UpdatePortfolioDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Update a portfolio"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { getPortfolios("http://finance.google.com/finance/feeds/default/portfolios"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Finance.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.FinanceUpdateTransactionDemo.java
License:Apache License
/** * Starts this demo./*from w w w.jav a 2 s . c om*/ */ private void startDemo() { service = FinanceService.newInstance("HelloGData_Finance_UpdateTransactionDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Update a transaction"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { getPortfolios("http://finance.google.com/finance/feeds/default/portfolios"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Finance.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.GoogleBaseCreateItemDemo.java
License:Apache License
/** * Starts this demo.// w w w .j a v a2 s .c o m */ private void startDemo() { service = GoogleBaseService.newInstance("HelloGData_GoogleBase_CreateItemDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Create an item"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { createItem("http://www.google.com/base/feeds/items"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Base.", true); } }
From source file:com.google.gwt.gdata.sample.hellogdata.client.GoogleBaseDeleteItemDemo.java
License:Apache License
/** * Starts this demo.//from w ww .j a v a2 s . c o m */ private void startDemo() { service = GoogleBaseService.newInstance("HelloGData_GoogleBase_DeleteItemDemo_v2.0"); if (User.getStatus(scope) == AuthSubStatus.LOGGED_IN) { Button startButton = new Button("Delete an item"); startButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { getItems("http://www.google.com/base/feeds/items/"); } }); mainPanel.setWidget(0, 0, startButton); } else { showStatus("You are not logged on to Google Base.", true); } }