Skip to content

Instantly share code, notes, and snippets.

View branflake2267's full-sized avatar
🏠
Working from home

Brandon Donnelson branflake2267

🏠
Working from home
View GitHub Profile
import java.util.logging.Logger;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.dom.client.Style;
import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.dom.client.MouseUpEvent;
@branflake2267
branflake2267 / ExampleResources.java
Last active August 29, 2015 14:01
Grid with highlighting
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.CssResource;
public interface ExampleResources extends ClientBundle {
public ExampleResources INSTANCE = GWT.create(ExampleResources.class);
public interface Styles extends CssResource {
String highlight();
}
@branflake2267
branflake2267 / GXT_Grid_withDefaultFilter.java
Last active August 29, 2015 14:01
Grid with a default filter field value set
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.google.gwt.core.client.GWT;
import com.google.gwt.editor.client.Editor.Path;
import com.google.gwt.user.client.ui.RootPanel;
import com.sencha.gxt.core.client.ValueProvider;
@branflake2267
branflake2267 / WindowTest.java
Created May 7, 2014 22:37
Window and with animated display fade in.
import com.google.gwt.dom.client.Style.Display;
import com.google.gwt.user.client.ui.RootPanel;
import com.sencha.gxt.fx.client.FxElement;
import com.sencha.gxt.fx.client.animation.Fx;
import com.sencha.gxt.widget.core.client.Window;
import com.sencha.gxt.widget.core.client.button.TextButton;
import com.sencha.gxt.widget.core.client.event.SelectEvent;
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
public class WindowTest {
@branflake2267
branflake2267 / ValidChangeEvent.java
Created May 8, 2014 20:18
Validating a group of fields
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.HasHandlers;
import com.google.web.bindery.event.shared.HandlerRegistration;
public class ValidChangeEvent extends GwtEvent<ValidChangeEvent.ChangeHandler> {
private boolean valid;
public ValidChangeEvent(boolean valid) {
@branflake2267
branflake2267 / BlcExample_HorizontalContainerLayout.java
Created May 20, 2014 18:54
GXT 3.1 Border Layout Container with Horizontal Container Layout Example
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.sencha.gxt.core.client.util.Margins;
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer;
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData;
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer;
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer.HorizontalLayoutData;
import com.sencha.gxt.widget.core.client.container.CenterLayoutContainer;
@branflake2267
branflake2267 / BlcExample_HBoxContainerLayout.java
Created May 20, 2014 18:56
GXT 3.1 Border Layout Container with Horizontal Box Container Layout Example
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.sencha.gxt.core.client.util.Margins;
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer;
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData;
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData;
import com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer;
import com.sencha.gxt.widget.core.client.container.HBoxLayoutContainer.HBoxLayoutAlign;
@branflake2267
branflake2267 / VerticalLayoutExample.java
Created May 20, 2014 23:16
GXT 3.1 Vertical Layout Example using the CSS Float Layout Container
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.sencha.gxt.widget.core.client.container.CssFloatLayoutContainer;
import com.sencha.gxt.widget.core.client.container.CssFloatLayoutContainer.CssFloatData;
import com.sencha.gxt.widget.core.client.container.MarginData;
import com.sencha.gxt.widget.core.client.container.SimpleContainer;
public class VerticalLayoutExample {
Buildfile: /Users/branflake2267/git/gwt/build.xml
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
[taskdef] Could not load definitions from resource net/sf/antcount/antlib.xml. It could not be found.
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
build:
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
[taskdef] Could not load definitions from resource net/sf/antcount/antlib.xml. It could not be found.
[taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
package com.sencha.gxt.test.client.blc;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.sencha.gxt.core.client.util.Margins;
import com.sencha.gxt.test.client.blc.cust.RowWidget;
import com.sencha.gxt.widget.core.client.ContentPanel;