code
stringlengths
3
1.18M
language
stringclasses
1 value
package org.dodgybits.shuffle.android.list.view; import android.content.Context; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.Button; import android.widget.ImageButton; import android.widget.LinearLayout...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
package org.dodgybits.shuffle.android.list.view; import android.content.Context; import android.text.ParcelableSpan; import android.text.Spannable; import android.text.SpannableString; import android.text.SpannableStringBuilder; import android.text.style.ForegroundColorSpan; import android.util.AttributeSet; import an...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
package org.dodgybits.shuffle.android.list.activity; import android.content.Intent; import android.os.Bundle; import android.preference.ListPreference; import android.preference.Preference; import android.preference.PreferenceActivity; import android.preference.PreferenceScreen; import org.dodgybits.android.shuffle.R;...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
package org.dodgybits.shuffle.android.preference.view; public class Progress { private int mProgressPercent; private String mDetails; private boolean mIsError; private Runnable mErrorUIAction; public static Progress createProgress(int progressPercent, String details) { return new Progress(progressPercent, det...
Java
package org.dodgybits.shuffle.android.preference.model; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.util.Log; import org.dodgybits.shuffle.android.core.model.persistence.se...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
package org.dodgybits.shuffle.android.preference.activity; import static org.dodgybits.shuffle.android.preference.model.Preferences.TRACKS_INTERVAL; import static org.dodgybits.shuffle.android.preference.model.Preferences.TRACKS_PASSWORD; import static org.dodgybits.shuffle.android.preference.model.Preferences.TRACKS_...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
package org.dodgybits.shuffle.android.preference.activity; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.text.SimpleDateFormat; import java.util.Date; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.activity...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
package org.dodgybits.shuffle.android.preference.activity; import java.io.File; import java.io.FileInputStream; import java.io.FilenameFilter; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; ...
Java
package org.dodgybits.shuffle.android.persistence.migrations; import android.content.Context; import org.dodgybits.shuffle.android.persistence.provider.ContextProvider; import org.dodgybits.shuffle.android.persistence.provider.ProjectProvider; import org.dodgybits.shuffle.android.persistence.provider.TaskProvider...
Java
package org.dodgybits.shuffle.android.persistence.migrations; import android.content.Context; import android.database.sqlite.SQLiteDatabase; public interface Migration { public void migrate(SQLiteDatabase db); }
Java
package org.dodgybits.shuffle.android.persistence.migrations; import android.content.Context; import org.dodgybits.shuffle.android.persistence.provider.ReminderProvider; import org.dodgybits.shuffle.android.persistence.provider.TaskProvider; import android.database.sqlite.SQLiteDatabase; public class V11Migr...
Java
package org.dodgybits.shuffle.android.persistence.migrations; import static org.dodgybits.shuffle.android.persistence.provider.ContextProvider.CONTEXT_TABLE_NAME; import android.content.Context; import android.database.sqlite.SQLiteDatabase; public class V9Migration implements Migration { @Override publ...
Java
package org.dodgybits.shuffle.android.persistence.migrations; import android.content.ContentResolver; import android.content.ContentUris; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.net.Uri; ...
Java
package org.dodgybits.shuffle.android.persistence.migrations; import android.content.Context; import org.dodgybits.shuffle.android.persistence.provider.ContextProvider; import org.dodgybits.shuffle.android.persistence.provider.ProjectProvider; import org.dodgybits.shuffle.android.persistence.provider.TaskProvid...
Java
package org.dodgybits.shuffle.android.persistence.migrations; import android.content.Context; import org.dodgybits.shuffle.android.persistence.provider.ContextProvider; import org.dodgybits.shuffle.android.persistence.provider.ProjectProvider; import org.dodgybits.shuffle.android.persistence.provider.TaskProvider...
Java
package org.dodgybits.shuffle.android.persistence.migrations; import android.content.Context; import org.dodgybits.shuffle.android.persistence.provider.ProjectProvider; import android.database.sqlite.SQLiteDatabase; public class V13Migration implements Migration { @Override public void migrate(SQLiteD...
Java
package org.dodgybits.shuffle.android.persistence.migrations; import android.content.Context; import org.dodgybits.shuffle.android.persistence.provider.AbstractCollectionProvider; import org.dodgybits.shuffle.android.persistence.provider.ProjectProvider; import org.dodgybits.shuffle.android.persistence.provider.T...
Java
package org.dodgybits.shuffle.android.persistence.migrations; import android.content.Context; import org.dodgybits.shuffle.android.persistence.provider.TaskProvider; import android.database.sqlite.SQLiteDatabase; public class V10Migration implements Migration { @Override public void migrate(SQLiteDataba...
Java
package org.dodgybits.shuffle.android.persistence.provider; import android.net.Uri; public class ReminderProvider extends AbstractCollectionProvider { private static final String AUTHORITY = Shuffle.PACKAGE+".reminderprovider"; public static final String cUpdateIntent = "org.dodgybits.shuffle.android.REM...
Java
package org.dodgybits.shuffle.android.persistence.provider; import android.net.Uri; import android.provider.BaseColumns; public class ContextProvider extends AbstractCollectionProvider { public static final String CONTEXT_TABLE_NAME = "context"; public static final String UPDATE_INTENT = "org.dodgybits....
Java
package org.dodgybits.shuffle.android.persistence.provider; import android.content.ContentValues; import android.net.Uri; import android.provider.BaseColumns; public class TaskProvider extends AbstractCollectionProvider { public static final String TASK_TABLE_NAME = "task"; public static final String U...
Java
/** * */ package org.dodgybits.shuffle.android.persistence.provider; import java.util.Set; import java.util.SortedMap; import java.util.TreeMap; import org.dodgybits.shuffle.android.persistence.migrations.*; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android...
Java
package org.dodgybits.shuffle.android.persistence.provider; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import android.app.SearchManager; import android.content.ContentProvider; import android.content.ContentUris; import android.content.ContentValues; import android.content.Inte...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
package org.dodgybits.shuffle.android.persistence.provider; import android.net.Uri; import android.provider.BaseColumns; public class ProjectProvider extends AbstractCollectionProvider { public static final String PROJECT_TABLE_NAME = "project"; public static final String UPDATE_INTENT = "org.dodg...
Java
/* * Copyright (C) 2009 Android Shuffle 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...
Java
package org.dodgybits.shuffle.android.widget; import android.appwidget.AppWidgetManager; import android.content.Context; import android.content.Intent; import android.os.Bundle; import com.google.inject.Injector; import roboguice.application.RoboApplication; import roboguice.inject.ContextScope; import roboguice.recei...
Java
/* * Copyright (C) 2008 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) 2008 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 org.dodgybits.shuffle.android.widget; import android.appwidget.AppWidgetManager; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.RemoteViews; import org.dodgybits.android.shuffle.R; impo...
Java
package org.dodgybits.shuffle.android.widget; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.content.*; import android.database.Cursor; import android.net.Uri; import android.view.View; import android.widget.RemoteViews; import com.google.inject.Inject; import org.dodgybits...
Java
package org.dodgybits.shuffle.web.client; import com.google.gwt.i18n.client.Constants; import com.google.gwt.i18n.client.LocalizableResource.DefaultLocale; @DefaultLocale("en") // not required since this is the default public interface ShuffleConstants extends Constants { @DefaultStringValue("Sign In") String...
Java
package org.dodgybits.shuffle.web.client.service; import java.util.ArrayList; import org.dodgybits.shuffle.web.client.model.TaskFilter; import org.dodgybits.shuffle.web.client.model.TaskOrdering; import org.dodgybits.shuffle.web.client.model.TaskValue; import com.google.gwt.user.client.rpc.RemoteService; import com....
Java
package org.dodgybits.shuffle.web.client.service; import java.util.ArrayList; import org.dodgybits.shuffle.web.client.model.TaskFilter; import org.dodgybits.shuffle.web.client.model.TaskOrdering; import org.dodgybits.shuffle.web.client.model.TaskValue; import com.google.gwt.user.client.rpc.AsyncCallback; public int...
Java
package org.dodgybits.shuffle.web.client.service; import org.dodgybits.shuffle.web.client.model.LoginInfo; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; @RemoteServiceRelativePath("login") public interface LoginService extends RemoteService { ...
Java
package org.dodgybits.shuffle.web.client.service; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; public abstract class ErrorHandlingAsyncCallback<T> implements AsyncCallback<T> { @Override public void onFailure(Throwable caught) { Window.alert(caught.getMessage()...
Java
package org.dodgybits.shuffle.web.client.service; import java.io.Serializable; public class NotLoggedInException extends Exception implements Serializable { public NotLoggedInException() { super(); } public NotLoggedInException(String message) { super(message); } }
Java
package org.dodgybits.shuffle.web.client.service; import org.dodgybits.shuffle.web.client.model.LoginInfo; import com.google.gwt.user.client.rpc.AsyncCallback; public interface LoginServiceAsync { public void login(String requestUri, AsyncCallback<LoginInfo> async); }
Java
package org.dodgybits.shuffle.web.client.command; import java.util.ArrayList; import org.dodgybits.shuffle.web.client.model.TaskValue; import org.dodgybits.shuffle.web.client.service.TaskServiceAsync; import com.google.gwt.user.client.Command; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.in...
Java
package org.dodgybits.shuffle.web.client.command; import org.dodgybits.shuffle.web.client.model.TaskValue; import org.dodgybits.shuffle.web.client.service.TaskServiceAsync; import com.google.gwt.user.client.Command; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.inject.Inject; public class Sa...
Java
package org.dodgybits.shuffle.web.client; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.ui.DockLayoutPanel; import com.google.gwt.user.client.ui.ResizeComposite; import com.google.inject.Inject; p...
Java
package org.dodgybits.shuffle.web.client; import com.google.gwt.user.client.ui.ResizeComposite; import com.google.inject.Inject; public class CentrePanel extends ResizeComposite { TaskList taskList; @Inject public CentrePanel(TaskList taskList) { this.taskList = taskList; initWidget(taskList);...
Java
package org.dodgybits.shuffle.web.client.gin; import org.dodgybits.shuffle.web.client.formatter.ActionDateFormatter; import org.dodgybits.shuffle.web.client.model.LoginInfo; import com.google.gwt.event.shared.HandlerManager; import com.google.gwt.inject.client.AbstractGinModule; import com.google.inject.Singleton; p...
Java
package org.dodgybits.shuffle.web.client.gin; import org.dodgybits.shuffle.web.client.Main; import com.google.gwt.inject.client.Ginjector; public interface ShuffleGinjector extends Ginjector { Main getMain(); }
Java
/* * 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 writing, software * distributed...
Java
package org.dodgybits.shuffle.web.client.formatter; import java.util.Date; import org.dodgybits.shuffle.web.client.model.TaskValue; import com.google.gwt.i18n.client.DateTimeFormat; public class ActionDateFormatter { private DateTimeFormat dateFormat; public ActionDateFormatter() { dateFormat = DateTimeForma...
Java
package org.dodgybits.shuffle.web.client; import java.util.ArrayList; import java.util.Date; import org.dodgybits.shuffle.web.client.command.GetTasksCommand; import org.dodgybits.shuffle.web.client.command.SaveTaskCommand; import org.dodgybits.shuffle.web.client.formatter.ActionDateFormatter; import org.dodgybits.shu...
Java
package org.dodgybits.shuffle.web.client; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.resources.client.CssResource; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.Ui...
Java
package org.dodgybits.shuffle.web.client; import gwtupload.client.IUploader; import gwtupload.client.SingleUploader; import org.dodgybits.shuffle.web.client.gin.ShuffleGinjector; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.resources.client.ClientBundle; ...
Java
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; @SuppressWarnings("serial") public class KeyValue<T> implements Serializable { private String mKey; @SuppressWarnings("unused") private KeyValue() { // required for GWT serialization } public KeyValue(String key) { mKey = key; }...
Java
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; @SuppressWarnings("serial") public class ContextValue implements Serializable { private KeyValue<ContextValue> mKeyValue; private String mName; @SuppressWarnings("unused") private ContextValue() { // required for GWT serialization }...
Java
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; public class LoginInfo implements Serializable { private boolean loggedIn = false; private String loginUrl; private String logoutUrl; private String emailAddress; private String nickname; public boolean isLoggedIn() { retur...
Java
package org.dodgybits.shuffle.web.client.model; public enum BooleanSelection { IncludeIfTrue, IncludeIfFalse, IncludeAll }
Java
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; import java.util.ArrayList; @SuppressWarnings("serial") public class ValueSelection<T> implements Serializable { static enum SelectionType { All, Some, None } private SelectionType mType; private ArrayList<KeyVal...
Java
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; @SuppressWarnings("serial") public class ProjectValue implements Serializable { private KeyValue<ProjectValue> mKeyValue; private String mName; private KeyValue<ContextValue> mDefaultContextId; @SuppressWarnings("unused") private Proj...
Java
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; @SuppressWarnings("serial") public class TaskOrdering implements Serializable { }
Java
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; @SuppressWarnings("serial") public class TaskValue implements Serializable { private KeyValue<TaskValue> mKeyValue; private String mTitle; private String mDetails; private KeyValue<Proje...
Java
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; @SuppressWarnings("serial") public class TaskFilter implements Serializable { public ValueSelection<ContextValue> contexts; public ValueSelection<ProjectValue> projects; public BooleanSelection isComplete; public boolean only...
Java
package org.dodgybits.shuffle.web.server.service; import org.dodgybits.shuffle.web.client.model.LoginInfo; import org.dodgybits.shuffle.web.client.service.LoginService; import com.google.appengine.api.users.User; import com.google.appengine.api.users.UserService; import com.google.appengine.api.users.UserServiceFacto...
Java
package org.dodgybits.shuffle.web.server.service; import gwtupload.server.UploadAction; import gwtupload.server.exceptions.UploadActionException; import java.util.List; import java.util.logging.Logger; import javax.servlet.http.HttpServletRequest; import org.apache.commons.fileupload.FileItem; import org.dodgybits....
Java
package org.dodgybits.shuffle.web.server.service; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Random; import javax.jdo.PersistenceManager; import javax.jdo.Query; import org.dodgybits.shuffle.web.client.model.TaskFilter; import org.dodgybits.shuffle.web.client.model.Tas...
Java
package org.dodgybits.shuffle.web.server.persistence; import java.util.ArrayList; import java.util.List; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import org.dodgybits.shuffle.web.client.model.KeyValue; import com.google.appengine.api.datastore.Key;...
Java
package org.dodgybits.shuffle.web.server.persistence; import javax.servlet.*; import java.io.IOException; /** * Ensures we properly release persistence resources even in * the face of exceptions. */ public class PersistenceFilter implements javax.servlet.Filter { public void destroy() { } publi...
Java
package org.dodgybits.shuffle.web.server.model; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKey; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeyValue; import java.io.Serializable; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.Identi...
Java
package org.dodgybits.shuffle.web.server.model; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKey; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeyValue; import java.io.Serializable; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.Identi...
Java
package org.dodgybits.shuffle.web.server.model; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKey; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeys; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeyValue; import static org.dodgybits.shuffle.web....
Java
/* This work was derived from Chris Evan's opensurf project and re-licensed as the 3 clause BSD license with permission of the original author. Thank you Chris! Copyright (c) 2010, Andrew Stromberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pro...
Java
/* This work was derived from Chris Evan's opensurf project and re-licensed as the 3 clause BSD license with permission of the original author. Thank you Chris! Copyright (c) 2010, Andrew Stromberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pro...
Java
/* This work was derived from Chris Evan's opensurf project and re-licensed as the 3 clause BSD license with permission of the original author. Thank you Chris! Copyright (c) 2010, Andrew Stromberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pro...
Java