eEcho blog

is een halte van de gedachte

Archive for the ‘AJAX’ Category

Get Widget(s) Data In a Panel Dynamic

Getting Widgets in a panel is a nice way to interact with widgets you make. You can add several widgets into a panel, and get all of them by looping through the widgets in the panel. I make a specific panel to put all my reminder widgets in. Then I gather data and use it […]

Get ListBox Value’s Index getListBoxIndexByValue

Here is a method used to find the value’s index, so then you can setSelected for listbox by value.
/**
* get list box value’s index
* @param lb ListBox - what listbox are you looking for value’s index
[…]

Keyboardlistener GWT

http://code.google.com/p/gwt-examples/wiki/QuickTips
# Example of a keyboard listener. Listen to ten key or number pad with numlock on.
# GWT Interface KeyboardListener Reference
# Google Example on the Textbox

public class CalculatorWidget extends Composite implements ClickListener, KeyboardListener {
TextBox tbDisplay = new TextBox();
public CalculatorWidget() […]

Clicklistener GWT more than once!

Avoid calling a listener more than once! Add the clicklistener in the constructor of the widget not a method called over and over. Every time you call a method with a clicklister, you add another observer to that object. Then if you want to do something with that object, you may […]

Image GWT

Show an external image on your page.
//stick the image in the ~/www folder
HorizontalPanel pLoading = new HorizontalPanel();
String sImage = GWT.getModuleBaseURL() + “loading2.gif”;
Image image = new Image(sImage);
pLoading.add(image);

Print RPCs Serialized Response GWT

I found this in GWT sample Dynamic Table. I love this function b/c it prints out the object that will be sent in the RPC. Put this snippet in your server side of the rpc call, MyServerImpl.java class.
//stick this in your server side, MyServiceImpl.java class
[…]

Console/Syslog Debugging GWT

Using System.out.println to print to debugger console or when running it on the server it will print to the /var/log/Syslog which is very helpful for debugging.
System.out.println(”MyMethod has this var: ” + this.MyVar);

Create your own web pages Googlepages

Google Page Creator is a free online tool that makes it easy for anyone to create and publish useful, attractive web pages in just minutes.
* No technical knowledge required.
Build high-quality web pages without having to learn HTML or use complex software.
* […]

AutoCompleteTextBox GWT

http://gwt.components.googlepages.com/
How to use it:
final AutoCompleteTextBox box = new AutoCompleteTextBox();
box.setCompletionItems(new SimpleAutoCompletionItems(
new String[]{ “apple”, “ape”, “anything”, “else”}));
Alternatively, you can create your own implementation of CompletionItems interface (see below) to get a list of items using RPC.
Updated 05/27/06. New version is up. Now with AutoCompleteTextArea.
Please […]

loading animation bar gif indicator javascript progress script

Many ajax Progress indicators, ajax activity indicators, ajax loading animated gif, ajax loading animated images.
Inspired by the Firefox 1.5 busy icon
Inspired by the Firefox 1.5 busy icon (yellow version)
Inspired by RememberTheMilk (tuned to orange)
Tiny red (original creation)
Black busy (original creation)
Gray busy (original creation)
Green rotate (original creation)
Rotation (big […]

History Bookmarks GWT

To the user, the history token […]

GWT hsqldb

In deze voorbeeld wordt hsqldb gebruikt met jdbc driver omdat met hsqldb
kan een kleine op file gebaseerd database gemaakt worden en ook dat is 100% java oplossing
http://hsqldb.sourceforge.net/doc/guide/ch01.html
http://hsqldb.sourceforge.net/doc/src/org/hsqldb/jdbc/jdbcConnection.html
http://www.cs.unc.edu/Courses/wwwp-s98/members/thornett/jdbc/
http://java.sun.com/docs/books/tutorial/jdbc/index.html
Hier is te vinden hoe moet een hsqldb geconfigureerd worden met eclipse
http://www.rockhoppertech.com/resources/eclipse-hsqldb/index.html
Meer informatie over jdbc connector en mysql
http://www.developer.com/java/data/article.php/3417381

Werkwijze nieuwe eclipse project voor GWT

Tutorial eclipse https://eclipse-tutorial.dev.java.net/eclipse-tutorial/part1.html
Maak een project aan.
$ ./projectCreator -out /home/db_test/ -eclipse dbTest
Maak in deze project een applicatie.
$ ./applicationCreator -out /home/db_test/ -eclipse dbTest -overwrite com.eEcho.client.dbTest
Importeer project in worspace van eclipse.
Existing projects into Workspace screen in Eclipse through the File | Import
menu. Select the /home/db_test/ directory as the root folder
Opmerking:
Workspace van eclipse en project […]

projectCreator eclipse gwt

Het is mogelijk uw applicatie uitbreiden met eclipse ondersteuning.
./projectCreator -eclipse webArchiver -out /home/archiver/ -ignore
Deze opdracht zal een nieuwe project aanmaken voor eclipse.
Dan kan het gemakkelijk geïmporteerd worden.

Google web toolkit source

Op deze pagina kunt u door bron van google web toolkit (GWT) bladeren.
http://code.google.com/p/google-web-toolkit/source/browse

gwt-dnd

Library providing easy to use drag-and-drop capabilities to Google Web Toolkit (GWT) projects.
Getting started with your own drag-and-drop projects
Read the wiki here: http://code.google.com/p/gwt-dnd/wiki/GettingStarted
http://code.google.com/p/gwt-dnd/

TreeItem GWT

The TreeItem widget is a branch for a Tree widget

class Demo extends Composite
{
public Demo()
{
Tree tree = new Tree();
initWidget(tree);
TreeItem outerRoot = new TreeItem(”Item 1″);
[…]

Tree GWT

The Tree widget lets you display hierarchical data
class Demo extends Composite
{
public Demo()
{
Tree tree = new Tree();
initWidget(tree);
TreeItem outerRoot = new TreeItem(”Item 1″);
[…]

ToggleButton GWT

The ToggleButton widget is a latching PushButton

ToggleButton widget = new ToggleButton(”Click Me”, “And Again To Release”);
widget.setStylePrimaryName(”demo-ToggleButton”);

TextBox GWT

The TextBox widget lets the user input a single line of text

TextBox widget = new TextBox();
widget.addStyleName(”demo-TextBox”);
widget.setWidth(”200px”);

 

Home | info@eecho.info | Voorwaarden | Blog