Source code for JWt examples

Browse below the source code for all examples included in JWt.

.
widgetgallery
src
eu.webtoolkit.jwt.examples.widgetgallery
NonModalDialog.java
NonModalDialog.gjava
text.xml
DeferredWidget.java
charts.xml
EventDisplayer.java
MvcWidgets.java
FormWidgets.java
EventsDemo.java
ChartWidgets.java
EmwebLoadingIndicator.java
PaintBrush.java
GoogleMapExample.java
ControlsWidget.java
DialogWidgets.java
WidgetGalleryServlet.java
text.jwt.xml
BasicControls.java
GoogleMapExample.gjava
Validators.java
SpecialPurposeWidgets.java
StyleLayout.java
GraphicsWidgets.java
WidgetGallery.java
Pair.java
lib
WebRoot
hs_err_pid20332.log
hs_err_pid20269.log
build.xml
.project
.classpath
treeviewdragdrop
treeview
textedit
style
simplechat
planner-app-engine
planner
painting
mission
mandelbrot
javascript
hellowidgetset
hello-mvn
hello
googlemap
form
filetreetable
features
feature
dragdrop
dialog-servlet3.0
dialog
composer
charts
bobsmith
build.xml
/*
* Copyright (C) 2009 Emweb bvba, Leuven, Belgium.
*
* See the LICENSE file for terms of use.
*/
package eu.webtoolkit.jwt.examples.widgetgallery;

import java.util.*;
import java.util.regex.*;
import java.io.*;
import java.lang.ref.*;
import java.util.concurrent.locks.ReentrantLock;
import javax.servlet.http.*;
import javax.servlet.*;
import eu.webtoolkit.jwt.*;
import eu.webtoolkit.jwt.chart.*;
import eu.webtoolkit.jwt.utils.*;
import eu.webtoolkit.jwt.servlet.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

class NonModalDialog extends WDialog {
private static Logger logger = LoggerFactory
.getLogger(NonModalDialog.class);

public NonModalDialog(CharSequence title, EventDisplayer ed) {
super(title);
this.setModal(false);
this.setClosable(true);
new WText(
"You can freely format the contents of a WDialog by adding any widget you want to it.<br/>Here, we added WText, WLineEdit and WPushButton to a dialog",
this.getContents());
new WBreak(this.getContents());
new WText("Enter your name: ", this.getContents());
this.edit_ = new WLineEdit(this.getContents());
new WBreak(this.getContents());
this.ok_ = new WPushButton("Ok", this.getContents());
this.edit_.enterPressed().addListener(this, new Signal.Listener() {
public void trigger() {
NonModalDialog.this.welcome();
}
});
this.ok_.clicked().addListener(this,
new Signal1.Listener<WMouseEvent>() {
public void trigger(WMouseEvent e1) {
NonModalDialog.this.welcome();
}
});
this.ed_ = ed;
}

private WLineEdit edit_;
private WPushButton ok_;
private EventDisplayer ed_;

private void welcome() {
this.ed_.setStatus("Welcome, " + this.edit_.getText());
this.setHidden(true);
}
}