code
stringlengths
3
1.18M
language
stringclasses
1 value
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
package com.actionbarsherlock.internal.view.menu; import java.util.WeakHashMap; import android.content.ComponentName; import android.content.Intent; import android.view.KeyEvent; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuItem; import com.actionbarsherlock.view.SubMenu; public class...
Java
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
package com.actionbarsherlock.internal.view.menu; import android.content.Intent; import android.graphics.drawable.Drawable; import android.view.View; import android.view.ContextMenu.ContextMenuInfo; import com.actionbarsherlock.internal.view.ActionProviderWrapper; import com.actionbarsherlock.view.ActionProvider; impo...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
package com.actionbarsherlock.internal.view.menu; import android.graphics.drawable.Drawable; import android.view.View; import com.actionbarsherlock.view.MenuItem; import com.actionbarsherlock.view.SubMenu; public class SubMenuWrapper extends MenuWrapper implements SubMenu { private final android.view.SubMenu mNat...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
package com.actionbarsherlock.internal.app; import java.util.HashSet; import java.util.Set; import android.app.Activity; import android.content.Context; import android.graphics.drawable.Drawable; import android.support.v4.app.FragmentTransaction; import android.view.View; import android.widget.SpinnerAdapter; import...
Java
package com.actionbarsherlock.internal.widget; import android.view.View; final class IcsView { //No instances private IcsView() {} /** * Return only the state bits of {@link #getMeasuredWidthAndState()} * and {@link #getMeasuredHeightAndState()}, combined into one integer. * The width comp...
Java
package com.actionbarsherlock.internal.widget; import java.util.Locale; import android.content.Context; import android.content.res.TypedArray; import android.os.Build; import android.util.AttributeSet; import android.widget.TextView; public class CapitalizingTextView extends TextView { private static final boolea...
Java
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
package com.actionbarsherlock.internal.widget; import com.actionbarsherlock.R; import android.content.Context; import android.content.res.Resources; import android.database.DataSetObserver; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.os.Build; import android.os.Handler; imp...
Java
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
package com.actionbarsherlock.internal.widget; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.View; import com.actionbarsherlock.internal.nineoldandroids.widget.NineL...
Java
package com.actionbarsherlock.internal.widget; import java.util.Locale; import android.content.Context; import android.content.res.TypedArray; import android.os.Build; import android.util.AttributeSet; import android.widget.Button; public class CapitalizingButton extends Button { private static final boolean SANS...
Java
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
package com.actionbarsherlock.internal.widget; import static android.view.View.MeasureSpec.EXACTLY; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.TypedValue; import android.widget.LinearLayout; import com...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
package com.actionbarsherlock.app; import android.content.res.Configuration; import android.os.Bundle; import android.preference.PreferenceActivity; import android.view.KeyEvent; import android.view.View; import android.view.ViewGroup.LayoutParams; import android.view.Window; import com.actionbarsherlock.Acti...
Java
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
Java
package com.actionbarsherlock.app; import android.content.res.Configuration; import android.os.Bundle; import android.support.v4.app._ActionBarSherlockTrojanHorse; import android.util.Log; import android.view.KeyEvent; import android.view.View; import android.view.ViewGroup.LayoutParams; import android.view.Window; im...
Java
package com.actionbarsherlock.app; import android.app.Activity; import android.support.v4.app.ListFragment; import com.actionbarsherlock.internal.view.menu.MenuItemWrapper; import com.actionbarsherlock.internal.view.menu.MenuWrapper; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflate...
Java
package com.actionbarsherlock.app; import android.app.Activity; import android.support.v4.app.DialogFragment; import com.actionbarsherlock.internal.view.menu.MenuItemWrapper; import com.actionbarsherlock.internal.view.menu.MenuWrapper; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInfla...
Java
package com.actionbarsherlock.app; import android.app.ExpandableListActivity; import android.content.res.Configuration; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.view.ViewGroup.LayoutParams; import android.view.Window; import com.actionbarsherlock.ActionB...
Java
package com.actionbarsherlock.app; import android.app.ListActivity; import android.content.res.Configuration; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.view.Window; import android.view.ViewGroup.LayoutParams; import com.actionbarsherlock.ActionBarSherlock...
Java
package com.actionbarsherlock.app; import android.app.Activity; import android.support.v4.app.Fragment; import com.actionbarsherlock.internal.view.menu.MenuItemWrapper; import com.actionbarsherlock.internal.view.menu.MenuWrapper; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuInflater; i...
Java
package com.actionbarsherlock.app; import android.app.Activity; import android.content.res.Configuration; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.view.Window; import android.view.ViewGroup.LayoutParams; import com.actionbarsherlock.ActionBarSherlock; i...
Java
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
package com.animatron.sample.client.tree.draw; import java.util.ArrayList; import java.util.List; import com.animatron.sample.client.tree.node.Node; import com.animatron.sample.client.tree.node.NodeHitKind; import com.animatron.sample.client.tree.node.NodeHitResult; import com.google.gwt.canvas.dom.client.Context2d; ...
Java
package com.animatron.sample.client.tree.node; import java.util.ArrayList; import java.util.List; public class Node { List<Node> items = new ArrayList<Node>(); String name = ""; boolean collapsed = false; /** * @return the name */ public String getName() { return name; } /** * @param name the name to ...
Java
package com.animatron.sample.client.tree.node; public enum NodeHitKind { EMPTY, CAPTION, PLUSMINUS }
Java
package com.animatron.sample.client.tree.node; public class NodeHitResult { NodeHitKind hitKind; Node node; public NodeHitResult(NodeHitKind hitKind, Node node) { super(); this.hitKind = hitKind; this.node = node; } public NodeHitKind getHitKind() { return hitKind; } public Node getNode() { return ...
Java
package com.animatron.sample.client.tree.json; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArray; public class JsonNodeData extends JavaScriptObject { protected JsonNodeData() { } public final native String getName() /*-{ return this.name; }-*/; public final nativ...
Java
package com.animatron.sample.client.tree.json; import com.animatron.sample.client.tree.node.Node; import com.google.gwt.core.client.JsArray; import com.google.gwt.user.client.Window; public class JsonLoader { String jsonString; Node root; public JsonLoader(String jsonString, Node root) { super(); this.jsonSt...
Java
package com.animatron.sample.client.tree; import com.animatron.sample.client.tree.draw.TreeDrawer; import com.animatron.sample.client.tree.node.Node; import com.animatron.sample.client.tree.node.NodeHitResult; import com.google.gwt.canvas.client.Canvas; import com.google.gwt.canvas.dom.client.Context2d; import com.goo...
Java
package com.animatron.sample.client; import com.animatron.sample.client.tree.TreeComponent; import com.animatron.sample.client.tree.json.JsonLoader; import com.google.gwt.canvas.client.Canvas; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.dom.client.TextAreaElement; import com.google.gwt.event.do...
Java
package com.animatron.sample.client; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; /** * The client side stub for the RPC service. */ @RemoteServiceRelativePath("greet") public interface GreetingService extends RemoteService { String greetSer...
Java
package com.animatron.sample.shared; /** * <p> * FieldVerifier validates that the name the user enters is valid. * </p> * <p> * This class is in the <code>shared</code> packing because we use it in both * the client code and on the server. On the client, we verify that the name is * valid before sending an RPC ...
Java
package com.animatron.sample.server; import com.animatron.sample.client.GreetingService; import com.animatron.sample.shared.FieldVerifier; import com.google.gwt.user.server.rpc.RemoteServiceServlet; /** * The server side implementation of the RPC service. */ @SuppressWarnings("serial") public class GreetingServiceI...
Java
/* * Copyright 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Java
/* * Copyright (c) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Java
/* * Copyright (c) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/* * Copyright (c) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Java
/* * Copyright (c) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Java
/* * Copyright (c) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Java
/* * Copyright (c) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Java
/* * Copyright (c) 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
package com.philbeaudoin.client.gin; import com.google.gwt.inject.client.GinModules; import com.gwtplatform.dispatch.client.gin.DispatchAsyncModule; import com.philbeaudoin.client.core.WelcomePresenter; import com.philbeaudoin.client.gin.ClientModule; import com.google.gwt.inject.client.Ginjector; import com.go...
Java
package com.philbeaudoin.client.gin; import com.gwtplatform.mvp.client.gin.AbstractPresenterModule; import com.gwtplatform.mvp.client.gin.DefaultModule; import com.philbeaudoin.client.core.WelcomePresenter; import com.philbeaudoin.client.core.WelcomeView; import com.philbeaudoin.client.place.ClientPlaceManager; ...
Java
package com.philbeaudoin.client.place; import com.google.inject.BindingAnnotation; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.PARAMETER; import static java.lang.annotation.ElementType.METHOD; import java.lang.annotatio...
Java
package com.philbeaudoin.client.place; import com.gwtplatform.mvp.client.proxy.PlaceManagerImpl; import com.gwtplatform.mvp.client.proxy.PlaceRequest; import com.philbeaudoin.client.place.DefaultPlace; import com.google.inject.Inject; import com.google.gwt.event.shared.EventBus; import com.gwtplatform.mvp.clien...
Java
package com.philbeaudoin.client.place; import com.google.inject.BindingAnnotation; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.PARAMETER; import static java.lang.annotation.ElementType.METHOD; import java.lang.annotatio...
Java
package com.philbeaudoin.client.place; public class NameTokens { public static final String welcome = "!welcome"; public static final String error = "!error"; public static final String login = "!login"; public static final String help = "!help"; public static String getWelcome() { return welcome; ...
Java
package com.philbeaudoin.client; import com.google.gwt.core.client.EntryPoint; import com.philbeaudoin.client.gin.ClientGinjector; import com.google.gwt.core.client.GWT; import com.gwtplatform.mvp.client.DelayedBindRegistry; public class PrairieDevCon implements EntryPoint { private final ClientGinjector g...
Java
package com.philbeaudoin.client.core; import com.gwtplatform.mvp.client.ViewImpl; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.ui.HTMLPanel; import com.google.gwt.user.client.ui.Widget; import com.google.inject.Inject; public...
Java
package com.philbeaudoin.client.core; import com.gwtplatform.mvp.client.Presenter; import com.gwtplatform.mvp.client.View; import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit; import com.gwtplatform.mvp.client.annotations.NameToken; import com.philbeaudoin.client.place.NameTokens; import com.gwtplatfor...
Java
package com.philbeaudoin.client.core; import com.gwtplatform.mvp.client.ViewImpl; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.user.client.ui.Widget; import com.google.inject.Inject; public class LoginView extends ViewImpl implements LoginPresenter.MyView { private final Widget wid...
Java
package com.philbeaudoin.client.core; import com.google.gwt.event.shared.EventBus; import com.google.gwt.event.shared.GwtEvent.Type; import com.google.inject.Inject; import com.gwtplatform.mvp.client.Presenter; import com.gwtplatform.mvp.client.View; import com.gwtplatform.mvp.client.annotations.ContentSlot; i...
Java
package com.philbeaudoin.client.core; import com.google.gwt.event.shared.EventBus; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.inject.Inject; import com.gwtplatform.dispatch.shared.DispatchAsync; import com.gwtplatform.mvp.client.Presenter; import com.gwtplatform.mvp.client.View; imp...
Java
package com.philbeaudoin.client.core; import com.gwtplatform.mvp.client.ViewImpl; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.user.client.ui.Widget; import com.google.inject.Inject; public class HelpView extends ViewImpl implements HelpPresenter.MyView { private final Widget widge...
Java
package com.philbeaudoin.client.core; import com.gwtplatform.mvp.client.ViewImpl; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.user.client.ui.Widget; import com.google.inject.Inject; public class ErrorView extends ViewImpl implements ErrorPresenter.MyView { private final Widget wid...
Java
package com.philbeaudoin.client.core; import com.gwtplatform.mvp.client.Presenter; import com.gwtplatform.mvp.client.View; import com.gwtplatform.mvp.client.annotations.ProxyCodeSplit; import com.gwtplatform.mvp.client.annotations.NameToken; import com.philbeaudoin.client.place.NameTokens; import com.gwtplatfor...
Java
package com.philbeaudoin.client.core; import com.google.gwt.event.shared.EventBus; import com.google.inject.Inject; import com.gwtplatform.mvp.client.Presenter; import com.gwtplatform.mvp.client.View; import com.gwtplatform.mvp.client.annotations.NameToken; import com.gwtplatform.mvp.client.annotations.ProxyCod...
Java
package com.philbeaudoin.client.core; import com.gwtplatform.mvp.client.ViewImpl; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HTMLPanel; import com.google.gwt.user.client.ui.Widget;...
Java
package com.philbeaudoin.shared.core; import com.gwtplatform.dispatch.shared.Result; import java.lang.String; public class GetServerDateResult implements Result { private static final long serialVersionUID = -3074151231299291261L; private String formattedDate; @SuppressWarnings("unused") private GetS...
Java
package com.philbeaudoin.shared.core; import com.gwtplatform.dispatch.shared.UnsecuredActionImpl; public class GetServerDate extends UnsecuredActionImpl<GetServerDateResult> { private static final long serialVersionUID = 4817640224749758860L; public GetServerDate() { } }
Java
package com.philbeaudoin.server.guice; import com.google.inject.servlet.GuiceServletContextListener; import com.google.inject.Injector; import com.google.inject.Guice; import com.philbeaudoin.server.guice.ServerModule; import com.philbeaudoin.server.guice.DispatchServletModule; public class GuiceServletConfig...
Java
package com.philbeaudoin.server.guice; import com.gwtplatform.dispatch.server.guice.HandlerModule; import com.philbeaudoin.server.core.GetServerDateActionHandler; import com.philbeaudoin.shared.core.GetServerDate; public class ServerModule extends HandlerModule { @Override protected void configureHandlers...
Java
package com.philbeaudoin.server.guice; import com.google.inject.servlet.ServletModule; import com.gwtplatform.dispatch.shared.ActionImpl; import com.gwtplatform.dispatch.server.guice.DispatchServiceImpl; public class DispatchServletModule extends ServletModule { @Override public void configureServlets() {...
Java
package com.philbeaudoin.server.core; import java.text.Format; import java.text.SimpleDateFormat; import java.util.Date; import com.google.inject.Inject; import com.gwtplatform.dispatch.server.ExecutionContext; import com.gwtplatform.dispatch.server.actionhandler.ActionHandler; import com.gwtplatform.dispatc...
Java
package com.windo.animationview; import android.app.Activity; import android.os.Bundle; public class HomeAcitivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContent...
Java
package com.windo.animationview; import java.util.Vector; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import androi...
Java
package com.windo.animationview; import android.graphics.Bitmap; import android.util.Log; public class Bubble { static int box_width; static int box_height; // Following properties are set in the constructor private int initial_x; private int initial_y; private int initial_xdelta; private int ini...
Java
package model; public class Ei { private Eilegger inHetEi; public Eilegger getInHetEi() { return inHetEi; } public void setInHetEi(Eilegger inHetEi) { this.inHetEi = inHetEi; } }
Java
package model; import java.util.Random; import Lijst.*; public abstract class Dier{ private int Animal_nummer; private String Naam; private String SoortVacht; private int Energie; private int Hygiene; private int Humeur; private boolean Ziek; private boolean Blaas; protected boolean Manneli...
Java
package model; public interface IEilegger { public Eilegger broedEi(Ei ei); public Ei legtEi(); }
Java