Commits

Fred Grott committed 0ddc9e2

corrected some imports and added javadocs to HoloEveryWhere

Comments (0)

Files changed (44)

src/com/WazaBe/HoloEverywhere/FontLoader.java

 import java.io.InputStream;
 import java.io.OutputStream;
 
+import org.bitbucket.fredgrott.gwslaf.R;
+
 import android.annotation.SuppressLint;
 import android.content.Context;
 import android.content.res.Resources;
 import android.view.ViewGroup;
 import android.widget.TextView;
 
+// TODO: Auto-generated Javadoc
+/**
+ * The Class FontLoader.
+ */
 public final class FontLoader {
+	
+	/**
+	 * The Class HoloFont.
+	 */
 	public static class HoloFont {
+		
+		/** The Constant ROBOTO_BOLD. */
 		public static final HoloFont ROBOTO_BOLD = new HoloFont(
 				R.raw.roboto_bold);
+		
+		/** The Constant ROBOTO_BOLD_ITALIC. */
 		public static final HoloFont ROBOTO_BOLD_ITALIC = new HoloFont(
 				R.raw.roboto_bolditalic);
+		
+		/** The Constant ROBOTO_ITALIC. */
 		public static final HoloFont ROBOTO_ITALIC = new HoloFont(
 				R.raw.roboto_italic);
+		
+		/** The Constant ROBOTO_REGULAR. */
 		public static final HoloFont ROBOTO_REGULAR = new HoloFont(
 				R.raw.roboto_regular);
+		
+		/** The Constant ROBOTO. */
 		public static final HoloFont ROBOTO = new HoloFont(-1);
 
+		/** The font. */
 		protected final int font;
+		
+		/** The ignore. */
 		protected final boolean ignore;
 
+		/**
+		 * Instantiates a new holo font.
+		 *
+		 * @param font the font
+		 */
 		private HoloFont(int font) {
 			this(font, VERSION.SDK_INT >= 11);
 		}
 
+		/**
+		 * Instantiates a new holo font.
+		 *
+		 * @param font the font
+		 * @param ignore the ignore
+		 */
 		private HoloFont(int font, boolean ignore) {
 			this.font = font;
 			this.ignore = ignore;
 		}
 	}
 
+	/** The Constant fontArray. */
 	private static final SparseArray<Typeface> fontArray = new SparseArray<Typeface>();
+	
+	/** The Constant TAG. */
 	private static final String TAG = "FontLoader";
 
+	/**
+	 * Apply.
+	 *
+	 * @param view the view
+	 * @return the view
+	 */
 	public static View apply(View view) {
 		return applyDefaultStyles(view);
 	}
 
+	/**
+	 * Apply.
+	 *
+	 * @param view the view
+	 * @param font the font
+	 * @return the view
+	 */
 	public static View apply(View view, HoloFont font) {
 		if (font.ignore) {
 			return view;
 		return apply(view, font.font);
 	}
 
+	/**
+	 * Load typeface.
+	 *
+	 * @param context the context
+	 * @param font the font
+	 * @return the typeface
+	 */
 	public static Typeface loadTypeface(Context context, int font) {
 		if (fontArray.get(font) == null) {
 			try {
 		return fontArray.get(font);
 	}
 
+	/**
+	 * Apply.
+	 *
+	 * @param view the view
+	 * @param font the font
+	 * @return the view
+	 */
 	@SuppressLint("NewApi")
 	public static View apply(View view, int font) {
 		if (view == null || view.getContext() == null
 		}
 	}
 
+	/**
+	 * Apply default styles.
+	 *
+	 * @param view the view
+	 * @return the view
+	 */
 	public static View applyDefaultStyles(View view) {
 		if (view == null || view.getContext() == null
 				|| view.getContext().isRestricted()) {
 		return view;
 	}
 
+	/**
+	 * Apply.
+	 *
+	 * @param view the view
+	 * @param typeface the typeface
+	 * @return the view
+	 */
 	public static View apply(View view, Typeface typeface) {
 		if (view == null || view.getContext() == null
 				|| view.getContext().isRestricted()) {
 		return view;
 	}
 
+	/**
+	 * Inflate.
+	 *
+	 * @param context the context
+	 * @param res the res
+	 * @return the view
+	 */
 	public static View inflate(Context context, int res) {
 		return apply(LayoutInflater.inflate(context, res));
 	}
 
+	/**
+	 * Inflate.
+	 *
+	 * @param context the context
+	 * @param res the res
+	 * @param parent the parent
+	 * @return the view
+	 */
 	public static View inflate(Context context, int res, ViewGroup parent) {
 		return apply(LayoutInflater.inflate(context, res, parent));
 	}
 
+	/**
+	 * Instantiates a new font loader.
+	 */
 	private FontLoader() {
 	}
 }

src/com/WazaBe/HoloEverywhere/LayoutInflater.java

 import android.view.ViewGroup;
 import android.view.ViewGroup.LayoutParams;
 
+@SuppressWarnings("unused")
 public class LayoutInflater extends android.view.LayoutInflater implements
 		Cloneable {
 	public static interface OnInitInflaterListener {

src/com/WazaBe/HoloEverywhere/ThemeManager.java

 package com.WazaBe.HoloEverywhere;
 
+import org.bitbucket.fredgrott.gwslaf.R;
+
 import android.content.Intent;
 
 import com.WazaBe.HoloEverywhere.app.Activity;
 
+// TODO: Auto-generated Javadoc
+/**
+ * The Class ThemeManager.
+ */
 public final class ThemeManager {
+	
+	/**
+	 * The Interface ThemeGetter.
+	 */
 	public static interface ThemeGetter {
+		
+		/**
+		 * Gets the theme resource.
+		 *
+		 * @param themeTag the theme tag
+		 * @param abs the abs
+		 * @return the theme resource
+		 */
 		public int getThemeResource(int themeTag, boolean abs);
 	}
 
+	/** The Constant HOLO_DARK. */
 	public static final int HOLO_DARK = 1;
+	
+	/** The Constant HOLO_LIGHT. */
 	public static final int HOLO_LIGHT = 2;
+	
+	/** The Constant THEME_DEFAULT. */
 	public static final int THEME_DEFAULT = HOLO_DARK;
 
+	/** The Constant THEME_TAG. */
 	public static final String THEME_TAG = "holoeverywhere:theme";
 
+	/** The theme getter. */
 	private static ThemeGetter themeGetter;
 
+	/**
+	 * Apply theme.
+	 *
+	 * @param activity the activity
+	 */
 	public static void applyTheme(Activity activity) {
 		applyTheme(activity, false);
 	}
 
+	/**
+	 * Apply theme.
+	 *
+	 * @param activity the activity
+	 * @param force the force
+	 */
 	public static void applyTheme(Activity activity, boolean force) {
 		if (hasSpecifiedTheme(activity) || force) {
 			int theme = getThemeResource(getTheme(activity),
 		}
 	}
 
+	/**
+	 * Gets the theme.
+	 *
+	 * @param activity the activity
+	 * @return the theme
+	 */
 	public static int getTheme(Activity activity) {
 		return activity.getIntent().getIntExtra(THEME_TAG, THEME_DEFAULT);
 	}
 
+	/**
+	 * Gets the theme resource.
+	 *
+	 * @param themeTag the theme tag
+	 * @param abs the abs
+	 * @return the theme resource
+	 */
 	public static int getThemeResource(int themeTag, boolean abs) {
 		if (themeGetter != null) {
 			int getterResource = themeGetter.getThemeResource(themeTag, abs);
 		}
 	}
 
+	/**
+	 * Checks for specified theme.
+	 *
+	 * @param activity the activity
+	 * @return true, if successful
+	 */
 	public static boolean hasSpecifiedTheme(Activity activity) {
 		return activity.getIntent().hasExtra(THEME_TAG)
 				&& activity.getIntent().getIntExtra(THEME_TAG, 0) > 0;
 	}
 
+	/**
+	 * Restart with theme.
+	 *
+	 * @param activity the activity
+	 * @param theme the theme
+	 */
 	public static void restartWithTheme(Activity activity, int theme) {
 		restartWithTheme(activity, theme, false);
 	}
 
+	/**
+	 * Restart with theme.
+	 *
+	 * @param activity the activity
+	 * @param theme the theme
+	 * @param force the force
+	 */
 	public static void restartWithTheme(Activity activity, int theme,
 			boolean force) {
 		if (getTheme(activity) != theme || force) {
 		}
 	}
 
+	/**
+	 * Sets the theme getter.
+	 *
+	 * @param themeGetter the new theme getter
+	 */
 	public static void setThemeGetter(ThemeGetter themeGetter) {
 		ThemeManager.themeGetter = themeGetter;
 	}
 
+	/**
+	 * Instantiates a new theme manager.
+	 */
 	private ThemeManager() {
 	}
 }

src/com/WazaBe/HoloEverywhere/app/AlertDialog.java

 import android.widget.ListAdapter;
 import android.widget.ListView;
 
-import com.WazaBe.HoloEverywhere.R;
+import org.bitbucket.fredgrott.gwslaf.R;
 import com.WazaBe.HoloEverywhere.internal.AlertController;
 
+// TODO: Auto-generated Javadoc
+/**
+ * The Class AlertDialog.
+ */
 public class AlertDialog extends Dialog implements DialogInterface {
+	
+	/**
+	 * The Class Builder.
+	 */
 	public static class Builder {
+		
+		/** The p. */
 		private final AlertController.AlertParams P;
 
+		/**
+		 * Instantiates a new builder.
+		 *
+		 * @param context the context
+		 */
 		public Builder(Context context) {
 			this(context, resolveDialogTheme(context, 0));
 		}
 
+		/**
+		 * Instantiates a new builder.
+		 *
+		 * @param context the context
+		 * @param theme the theme
+		 */
 		public Builder(Context context, int theme) {
 			P = new AlertController.AlertParams(new ContextThemeWrapper(
 					context, resolveDialogTheme(context, theme)));
 			P.mTheme = theme;
 		}
 
+		/**
+		 * Creates the.
+		 *
+		 * @return the alert dialog
+		 */
 		public AlertDialog create() {
 			final AlertDialog dialog = new AlertDialog(P.mContext, P.mTheme);
 			P.apply(dialog.mAlert);
 			return dialog;
 		}
 
+		/**
+		 * Gets the context.
+		 *
+		 * @return the context
+		 */
 		public Context getContext() {
 			return P.mContext;
 		}
 
+		/**
+		 * Sets the adapter.
+		 *
+		 * @param adapter the adapter
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setAdapter(final ListAdapter adapter,
 				final OnClickListener listener) {
 			P.mAdapter = adapter;
 			return this;
 		}
 
+		/**
+		 * Sets the cancelable.
+		 *
+		 * @param cancelable the cancelable
+		 * @return the builder
+		 */
 		public Builder setCancelable(boolean cancelable) {
 			P.mCancelable = cancelable;
 			return this;
 		}
 
+		/**
+		 * Sets the cursor.
+		 *
+		 * @param cursor the cursor
+		 * @param listener the listener
+		 * @param labelColumn the label column
+		 * @return the builder
+		 */
 		public Builder setCursor(final Cursor cursor,
 				final OnClickListener listener, String labelColumn) {
 			P.mCursor = cursor;
 			return this;
 		}
 
+		/**
+		 * Sets the custom title.
+		 *
+		 * @param customTitleView the custom title view
+		 * @return the builder
+		 */
 		public Builder setCustomTitle(View customTitleView) {
 			P.mCustomTitleView = customTitleView;
 			return this;
 		}
 
+		/**
+		 * Sets the icon.
+		 *
+		 * @param icon the icon
+		 * @return the builder
+		 */
 		public Builder setIcon(Drawable icon) {
 			P.mIcon = icon;
 			return this;
 		}
 
+		/**
+		 * Sets the icon.
+		 *
+		 * @param iconId the icon id
+		 * @return the builder
+		 */
 		public Builder setIcon(int iconId) {
 			P.mIconId = iconId;
 			return this;
 		}
 
+		/**
+		 * Sets the icon attribute.
+		 *
+		 * @param attrId the attr id
+		 * @return the builder
+		 */
 		public Builder setIconAttribute(int attrId) {
 			TypedValue out = new TypedValue();
 			P.mContext.getTheme().resolveAttribute(attrId, out, true);
 			return this;
 		}
 
+		/**
+		 * Sets the inverse background forced.
+		 *
+		 * @param useInverseBackground the use inverse background
+		 * @return the builder
+		 */
 		public Builder setInverseBackgroundForced(boolean useInverseBackground) {
 			P.mForceInverseBackground = useInverseBackground;
 			return this;
 		}
 
+		/**
+		 * Sets the items.
+		 *
+		 * @param items the items
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setItems(CharSequence[] items,
 				final OnClickListener listener) {
 			P.mItems = items;
 			return this;
 		}
 
+		/**
+		 * Sets the items.
+		 *
+		 * @param itemsId the items id
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setItems(int itemsId, final OnClickListener listener) {
 			P.mItems = P.mContext.getResources().getTextArray(itemsId);
 			P.mOnClickListener = listener;
 			return this;
 		}
 
+		/**
+		 * Sets the message.
+		 *
+		 * @param message the message
+		 * @return the builder
+		 */
 		public Builder setMessage(CharSequence message) {
 			P.mMessage = message;
 			return this;
 		}
 
+		/**
+		 * Sets the message.
+		 *
+		 * @param messageId the message id
+		 * @return the builder
+		 */
 		public Builder setMessage(int messageId) {
 			P.mMessage = P.mContext.getText(messageId);
 			return this;
 		}
 
+		/**
+		 * Sets the multi choice items.
+		 *
+		 * @param items the items
+		 * @param checkedItems the checked items
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setMultiChoiceItems(CharSequence[] items,
 				boolean[] checkedItems,
 				final OnMultiChoiceClickListener listener) {
 			return this;
 		}
 
+		/**
+		 * Sets the multi choice items.
+		 *
+		 * @param cursor the cursor
+		 * @param isCheckedColumn the is checked column
+		 * @param labelColumn the label column
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setMultiChoiceItems(Cursor cursor,
 				String isCheckedColumn, String labelColumn,
 				final OnMultiChoiceClickListener listener) {
 			return this;
 		}
 
+		/**
+		 * Sets the multi choice items.
+		 *
+		 * @param itemsId the items id
+		 * @param checkedItems the checked items
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setMultiChoiceItems(int itemsId, boolean[] checkedItems,
 				final OnMultiChoiceClickListener listener) {
 			P.mItems = P.mContext.getResources().getTextArray(itemsId);
 			return this;
 		}
 
+		/**
+		 * Sets the negative button.
+		 *
+		 * @param text the text
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setNegativeButton(CharSequence text,
 				final OnClickListener listener) {
 			P.mNegativeButtonText = text;
 			return this;
 		}
 
+		/**
+		 * Sets the negative button.
+		 *
+		 * @param textId the text id
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setNegativeButton(int textId,
 				final OnClickListener listener) {
 			P.mNegativeButtonText = P.mContext.getText(textId);
 			return this;
 		}
 
+		/**
+		 * Sets the neutral button.
+		 *
+		 * @param text the text
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setNeutralButton(CharSequence text,
 				final OnClickListener listener) {
 			P.mNeutralButtonText = text;
 			return this;
 		}
 
+		/**
+		 * Sets the neutral button.
+		 *
+		 * @param textId the text id
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setNeutralButton(int textId,
 				final OnClickListener listener) {
 			P.mNeutralButtonText = P.mContext.getText(textId);
 			return this;
 		}
 
+		/**
+		 * Sets the on cancel listener.
+		 *
+		 * @param onCancelListener the on cancel listener
+		 * @return the builder
+		 */
 		public Builder setOnCancelListener(OnCancelListener onCancelListener) {
 			P.mOnCancelListener = onCancelListener;
 			return this;
 		}
 
+		/**
+		 * Sets the on item selected listener.
+		 *
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setOnItemSelectedListener(
 				final AdapterView.OnItemSelectedListener listener) {
 			P.mOnItemSelectedListener = listener;
 			return this;
 		}
 
+		/**
+		 * Sets the on key listener.
+		 *
+		 * @param onKeyListener the on key listener
+		 * @return the builder
+		 */
 		public Builder setOnKeyListener(OnKeyListener onKeyListener) {
 			P.mOnKeyListener = onKeyListener;
 			return this;
 		}
 
+		/**
+		 * Sets the positive button.
+		 *
+		 * @param text the text
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setPositiveButton(CharSequence text,
 				final OnClickListener listener) {
 			P.mPositiveButtonText = text;
 			return this;
 		}
 
+		/**
+		 * Sets the positive button.
+		 *
+		 * @param textId the text id
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setPositiveButton(int textId,
 				final OnClickListener listener) {
 			P.mPositiveButtonText = P.mContext.getText(textId);
 			return this;
 		}
 
+		/**
+		 * Sets the recycle on measure enabled.
+		 *
+		 * @param enabled the enabled
+		 * @return the builder
+		 */
 		public Builder setRecycleOnMeasureEnabled(boolean enabled) {
 			P.mRecycleOnMeasure = enabled;
 			return this;
 		}
 
+		/**
+		 * Sets the single choice items.
+		 *
+		 * @param items the items
+		 * @param checkedItem the checked item
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setSingleChoiceItems(CharSequence[] items,
 				int checkedItem, final OnClickListener listener) {
 			P.mItems = items;
 			return this;
 		}
 
+		/**
+		 * Sets the single choice items.
+		 *
+		 * @param cursor the cursor
+		 * @param checkedItem the checked item
+		 * @param labelColumn the label column
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setSingleChoiceItems(Cursor cursor, int checkedItem,
 				String labelColumn, final OnClickListener listener) {
 			P.mCursor = cursor;
 			return this;
 		}
 
+		/**
+		 * Sets the single choice items.
+		 *
+		 * @param itemsId the items id
+		 * @param checkedItem the checked item
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setSingleChoiceItems(int itemsId, int checkedItem,
 				final OnClickListener listener) {
 			P.mItems = P.mContext.getResources().getTextArray(itemsId);
 			return this;
 		}
 
+		/**
+		 * Sets the single choice items.
+		 *
+		 * @param adapter the adapter
+		 * @param checkedItem the checked item
+		 * @param listener the listener
+		 * @return the builder
+		 */
 		public Builder setSingleChoiceItems(ListAdapter adapter,
 				int checkedItem, final OnClickListener listener) {
 			P.mAdapter = adapter;
 			return this;
 		}
 
+		/**
+		 * Sets the title.
+		 *
+		 * @param title the title
+		 * @return the builder
+		 */
 		public Builder setTitle(CharSequence title) {
 			P.mTitle = title;
 			return this;
 		}
 
+		/**
+		 * Sets the title.
+		 *
+		 * @param titleId the title id
+		 * @return the builder
+		 */
 		public Builder setTitle(int titleId) {
 			P.mTitle = P.mContext.getText(titleId);
 			return this;
 		}
 
+		/**
+		 * Sets the view.
+		 *
+		 * @param view the view
+		 * @return the builder
+		 */
 		public Builder setView(View view) {
 			P.mView = view;
 			P.mViewSpacingSpecified = false;
 			return this;
 		}
 
+		/**
+		 * Sets the view.
+		 *
+		 * @param view the view
+		 * @param viewSpacingLeft the view spacing left
+		 * @param viewSpacingTop the view spacing top
+		 * @param viewSpacingRight the view spacing right
+		 * @param viewSpacingBottom the view spacing bottom
+		 * @return the builder
+		 */
 		public Builder setView(View view, int viewSpacingLeft,
 				int viewSpacingTop, int viewSpacingRight, int viewSpacingBottom) {
 			P.mView = view;
 			return this;
 		}
 
+		/**
+		 * Show.
+		 *
+		 * @return the alert dialog
+		 */
 		public AlertDialog show() {
 			AlertDialog dialog = create();
 			dialog.show();
 		}
 	}
 
+	/** The Constant THEME_HOLO_DARK. */
 	public static final int THEME_HOLO_DARK = 1;
+	
+	/** The Constant THEME_HOLO_LIGHT. */
 	public static final int THEME_HOLO_LIGHT = 2;
 
+	/**
+	 * Resolve dialog theme.
+	 *
+	 * @param context the context
+	 * @param resid the resid
+	 * @return the int
+	 */
 	static int resolveDialogTheme(Context context, int resid) {
 		if (resid == THEME_HOLO_DARK) {
 			return R.style.Holo_Theme_Dialog_Alert;
 		}
 	}
 
+	/** The m alert. */
 	private final AlertController mAlert;
 
+	/**
+	 * Instantiates a new alert dialog.
+	 *
+	 * @param context the context
+	 */
 	protected AlertDialog(Context context) {
 		this(context, false, null, resolveDialogTheme(context, 0));
 	}
 
+	/**
+	 * Instantiates a new alert dialog.
+	 *
+	 * @param context the context
+	 * @param cancelable the cancelable
+	 * @param cancelListener the cancel listener
+	 */
 	protected AlertDialog(Context context, boolean cancelable,
 			OnCancelListener cancelListener) {
 		this(context, cancelable, cancelListener,
 				resolveDialogTheme(context, 0));
 	}
 
+	/**
+	 * Instantiates a new alert dialog.
+	 *
+	 * @param context the context
+	 * @param cancelable the cancelable
+	 * @param cancelListener the cancel listener
+	 * @param theme the theme
+	 */
 	protected AlertDialog(Context context, boolean cancelable,
 			OnCancelListener cancelListener, int theme) {
 		super(context, resolveDialogTheme(context, theme));
 		mAlert = new AlertController(context, this, getWindow());
 	}
 
+	/**
+	 * Instantiates a new alert dialog.
+	 *
+	 * @param context the context
+	 * @param theme the theme
+	 */
 	protected AlertDialog(Context context, int theme) {
 		this(context, false, null, theme);
 	}
 
+	/**
+	 * Gets the button.
+	 *
+	 * @param whichButton the which button
+	 * @return the button
+	 */
 	public Button getButton(int whichButton) {
 		return mAlert.getButton(whichButton);
 	}
 
+	/**
+	 * Gets the list view.
+	 *
+	 * @return the list view
+	 */
 	public ListView getListView() {
 		return mAlert.getListView();
 	}
 
+	/* (non-Javadoc)
+	 * @see android.app.Dialog#onCreate(android.os.Bundle)
+	 */
 	@Override
 	protected void onCreate(Bundle savedInstanceState) {
 		super.onCreate(savedInstanceState);
 		mAlert.installContent();
 	}
 
+	/* (non-Javadoc)
+	 * @see android.app.Dialog#onKeyDown(int, android.view.KeyEvent)
+	 */
 	@Override
 	public boolean onKeyDown(int keyCode, KeyEvent event) {
 		if (mAlert.onKeyDown(keyCode, event)) {
 		return super.onKeyDown(keyCode, event);
 	}
 
+	/**
+	 * On key up.
+	 *
+	 * @param keyCode the key code
+	 * @param event the event
+	 * @return true, if successful
+	 * @see android.app.Dialog#onKeyUp(int, android.view.KeyEvent)
+	 */
 	@Override
 	public boolean onKeyUp(int keyCode, KeyEvent event) {
 		if (mAlert.onKeyUp(keyCode, event)) {
 		return super.onKeyUp(keyCode, event);
 	}
 
+	/**
+	 * Sets the button.
+	 *
+	 * @param text the text
+	 * @param msg the msg
+	 */
 	@Deprecated
 	public void setButton(CharSequence text, Message msg) {
 		setButton(BUTTON_POSITIVE, text, msg);
 	}
 
+	/**
+	 * Sets the button.
+	 *
+	 * @param text the text
+	 * @param listener the listener
+	 */
 	@Deprecated
 	public void setButton(CharSequence text, final OnClickListener listener) {
 		setButton(BUTTON_POSITIVE, text, listener);
 	}
 
+	/**
+	 * Sets the button.
+	 *
+	 * @param whichButton the which button
+	 * @param text the text
+	 * @param msg the msg
+	 */
 	public void setButton(int whichButton, CharSequence text, Message msg) {
 		mAlert.setButton(whichButton, text, null, msg);
 	}
 
+	/**
+	 * Sets the button.
+	 *
+	 * @param whichButton the which button
+	 * @param text the text
+	 * @param listener the listener
+	 */
 	public void setButton(int whichButton, CharSequence text,
 			OnClickListener listener) {
 		mAlert.setButton(whichButton, text, listener, null);
 	}
 
+	/**
+	 * Sets the button2.
+	 *
+	 * @param text the text
+	 * @param msg the msg
+	 */
 	@Deprecated
 	public void setButton2(CharSequence text, Message msg) {
 		setButton(BUTTON_NEGATIVE, text, msg);
 	}
 
+	/**
+	 * Sets the button2.
+	 *
+	 * @param text the text
+	 * @param listener the listener
+	 */
 	@Deprecated
 	public void setButton2(CharSequence text, final OnClickListener listener) {
 		setButton(BUTTON_NEGATIVE, text, listener);
 	}
 
+	/**
+	 * Sets the button3.
+	 *
+	 * @param text the text
+	 * @param msg the msg
+	 */
 	@Deprecated
 	public void setButton3(CharSequence text, Message msg) {
 		setButton(BUTTON_NEUTRAL, text, msg);
 	}
 
+	/**
+	 * Sets the button3.
+	 *
+	 * @param text the text
+	 * @param listener the listener
+	 */
 	@Deprecated
 	public void setButton3(CharSequence text, final OnClickListener listener) {
 		setButton(BUTTON_NEUTRAL, text, listener);
 	}
 
+	/**
+	 * Sets the custom title.
+	 *
+	 * @param customTitleView the new custom title
+	 */
 	public void setCustomTitle(View customTitleView) {
 		mAlert.setCustomTitle(customTitleView);
 	}
 
+	/**
+	 * Sets the icon.
+	 *
+	 * @param icon the new icon
+	 */
 	public void setIcon(Drawable icon) {
 		mAlert.setIcon(icon);
 	}
 
+	/**
+	 * Sets the icon.
+	 *
+	 * @param resId the new icon
+	 */
 	public void setIcon(int resId) {
 		mAlert.setIcon(resId);
 	}
 
+	/**
+	 * Sets the icon attribute.
+	 *
+	 * @param attrId the new icon attribute
+	 */
 	public void setIconAttribute(int attrId) {
 		TypedValue out = new TypedValue();
 		getContext().getTheme().resolveAttribute(attrId, out, true);
 		mAlert.setIcon(out.resourceId);
 	}
 
+	/**
+	 * Sets the inverse background forced.
+	 *
+	 * @param forceInverseBackground the new inverse background forced
+	 */
 	public void setInverseBackgroundForced(boolean forceInverseBackground) {
 		mAlert.setInverseBackgroundForced(forceInverseBackground);
 	}
 
+	/**
+	 * Sets the message.
+	 *
+	 * @param message the new message
+	 */
 	public void setMessage(CharSequence message) {
 		mAlert.setMessage(message);
 	}
 
+	/**
+	 * Sets the title.
+	 *
+	 * @param title the new title
+	 * @see android.app.Dialog#setTitle(java.lang.CharSequence)
+	 */
 	@Override
 	public void setTitle(CharSequence title) {
 		super.setTitle(title);
 		mAlert.setTitle(title);
 	}
 
+	/**
+	 * Sets the view.
+	 *
+	 * @param view the new view
+	 */
 	public void setView(View view) {
 		mAlert.setView(view);
 	}
 
+	/**
+	 * Sets the view.
+	 *
+	 * @param view the view
+	 * @param viewSpacingLeft the view spacing left
+	 * @param viewSpacingTop the view spacing top
+	 * @param viewSpacingRight the view spacing right
+	 * @param viewSpacingBottom the view spacing bottom
+	 */
 	public void setView(View view, int viewSpacingLeft, int viewSpacingTop,
 			int viewSpacingRight, int viewSpacingBottom) {
 		mAlert.setView(view, viewSpacingLeft, viewSpacingTop, viewSpacingRight,

src/com/WazaBe/HoloEverywhere/app/DatePickerDialog.java

 import android.view.View;
 
 import com.WazaBe.HoloEverywhere.LayoutInflater;
-import com.WazaBe.HoloEverywhere.R;
+import org.bitbucket.fredgrott.gwslaf.R;
 import com.WazaBe.HoloEverywhere.widget.DatePicker;
 import com.WazaBe.HoloEverywhere.widget.DatePicker.OnDateChangedListener;
 
+// TODO: Auto-generated Javadoc
+/**
+ * The Class DatePickerDialog.
+ */
 public class DatePickerDialog extends AlertDialog implements OnClickListener,
 		OnDateChangedListener {
+	
+	/**
+	 * The listener interface for receiving onDateSet events.
+	 * The class that is interested in processing a onDateSet
+	 * event implements this interface, and the object created
+	 * with that class is registered with a component using the
+	 * component's <code>addOnDateSetListener<code> method. When
+	 * the onDateSet event occurs, that object's appropriate
+	 * method is invoked.
+	 *
+	 * @see OnDateSetEvent
+	 */
 	public interface OnDateSetListener {
+		
+		/**
+		 * On date set.
+		 *
+		 * @param view the view
+		 * @param year the year
+		 * @param monthOfYear the month of year
+		 * @param dayOfMonth the day of month
+		 */
 		void onDateSet(DatePicker view, int year, int monthOfYear,
 				int dayOfMonth);
 	}
 
+	/** The Constant DAY. */
 	private static final String DAY = "day";
+	
+	/** The Constant MONTH. */
 	private static final String MONTH = "month";
+	
+	/** The Constant YEAR. */
 	private static final String YEAR = "year";
+	
+	/** The m calendar. */
 	private final Calendar mCalendar;
+	
+	/** The m call back. */
 	private final OnDateSetListener mCallBack;
+	
+	/** The m date picker. */
 	private final DatePicker mDatePicker;
 
+	/** The m title needs update. */
 	private boolean mTitleNeedsUpdate = true;
 
+	/**
+	 * Instantiates a new date picker dialog.
+	 *
+	 * @param context the context
+	 * @param theme the theme
+	 * @param callBack the call back
+	 * @param year the year
+	 * @param monthOfYear the month of year
+	 * @param dayOfMonth the day of month
+	 */
 	public DatePickerDialog(Context context, int theme,
 			OnDateSetListener callBack, int year, int monthOfYear,
 			int dayOfMonth) {
 		updateTitle(year, monthOfYear, dayOfMonth);
 	}
 
+	/**
+	 * Instantiates a new date picker dialog.
+	 *
+	 * @param context the context
+	 * @param callBack the call back
+	 * @param year the year
+	 * @param monthOfYear the month of year
+	 * @param dayOfMonth the day of month
+	 */
 	public DatePickerDialog(Context context, OnDateSetListener callBack,
 			int year, int monthOfYear, int dayOfMonth) {
 		this(context, 0, callBack, year, monthOfYear, dayOfMonth);
 	}
 
+	/**
+	 * Gets the date picker.
+	 *
+	 * @return the date picker
+	 */
 	public DatePicker getDatePicker() {
 		return mDatePicker;
 	}
 
+	/**
+	 * On click.
+	 *
+	 * @param dialog the dialog
+	 * @param which the which
+	 * @see android.content.DialogInterface.OnClickListener#onClick(android.content.DialogInterface, int)
+	 */
 	@Override
 	public void onClick(DialogInterface dialog, int which) {
 		tryNotifyDateSet();
 	}
 
+	/**
+	 * On date changed.
+	 *
+	 * @param view the view
+	 * @param year the year
+	 * @param month the month
+	 * @param day the day
+	 * @see com.WazaBe.HoloEverywhere.widget.DatePicker.OnDateChangedListener#onDateChanged(com.WazaBe.HoloEverywhere.widget.DatePicker, int, int, int)
+	 */
 	@Override
 	public void onDateChanged(DatePicker view, int year, int month, int day) {
 		mDatePicker.init(year, month, day, this);
 		updateTitle(year, month, day);
 	}
 
+	/**
+	 * On restore instance state.
+	 *
+	 * @param savedInstanceState the saved instance state
+	 * @see android.app.Dialog#onRestoreInstanceState(android.os.Bundle)
+	 */
 	@Override
 	public void onRestoreInstanceState(Bundle savedInstanceState) {
 		super.onRestoreInstanceState(savedInstanceState);
 		mDatePicker.init(year, month, day, this);
 	}
 
+	/**
+	 * On save instance state.
+	 *
+	 * @return the bundle
+	 * @see android.app.Dialog#onSaveInstanceState()
+	 */
 	@Override
 	public Bundle onSaveInstanceState() {
 		Bundle state = super.onSaveInstanceState();
 		return state;
 	}
 
+	/**
+	 * On stop.
+	 *
+	 * @see android.app.Dialog#onStop()
+	 */
 	@Override
 	protected void onStop() {
 		tryNotifyDateSet();
 		super.onStop();
 	}
 
+	/**
+	 * Try notify date set.
+	 */
 	private void tryNotifyDateSet() {
 		if (mCallBack != null) {
 			mDatePicker.clearFocus();
 		}
 	}
 
+	/**
+	 * Update date.
+	 *
+	 * @param year the year
+	 * @param monthOfYear the month of year
+	 * @param dayOfMonth the day of month
+	 */
 	public void updateDate(int year, int monthOfYear, int dayOfMonth) {
 		mDatePicker.updateDate(year, monthOfYear, dayOfMonth);
 	}
 
+	/**
+	 * Update title.
+	 *
+	 * @param year the year
+	 * @param month the month
+	 * @param day the day
+	 */
 	private void updateTitle(int year, int month, int day) {
 		if (!mDatePicker.getCalendarViewShown()) {
 			mCalendar.set(Calendar.YEAR, year);

src/com/WazaBe/HoloEverywhere/app/ExpandableListActivity.java

 import android.widget.ExpandableListAdapter;
 import android.widget.ExpandableListView;
 
-import com.WazaBe.HoloEverywhere.R;
+import org.bitbucket.fredgrott.gwslaf.R;
 
+// TODO: Auto-generated Javadoc
+/**
+ * The Class ExpandableListActivity.
+ */
 public abstract class ExpandableListActivity extends Activity implements
 		OnCreateContextMenuListener, ExpandableListView.OnChildClickListener,
 		ExpandableListView.OnGroupCollapseListener,
 		ExpandableListView.OnGroupExpandListener {
+	
+	/** The m adapter. */
 	ExpandableListAdapter mAdapter;
+	
+	/** The m finished start. */
 	boolean mFinishedStart = false;
+	
+	/** The m list. */
 	ExpandableListView mList;
 
+	/**
+	 * Ensure list.
+	 */
 	private void ensureList() {
 		if (mList != null) {
 			return;
 		setContentView(R.layout.expandable_list_content);
 	}
 
+	/**
+	 * Gets the expandable list adapter.
+	 *
+	 * @return the expandable list adapter
+	 */
 	public ExpandableListAdapter getExpandableListAdapter() {
 		return mAdapter;
 	}
 
+	/**
+	 * Gets the expandable list view.
+	 *
+	 * @return the expandable list view
+	 */
 	public ExpandableListView getExpandableListView() {
 		ensureList();
 		return mList;
 	}
 
+	/**
+	 * Gets the selected id.
+	 *
+	 * @return the selected id
+	 */
 	public long getSelectedId() {
 		return mList.getSelectedId();
 	}
 
+	/**
+	 * Gets the selected position.
+	 *
+	 * @return the selected position
+	 */
 	public long getSelectedPosition() {
 		return mList.getSelectedPosition();
 	}
 
+	/**
+	 * On child click.
+	 *
+	 * @param parent the parent
+	 * @param v the v
+	 * @param groupPosition the group position
+	 * @param childPosition the child position
+	 * @param id the id
+	 * @return true, if successful
+	 * @see android.widget.ExpandableListView.OnChildClickListener#onChildClick(android.widget.ExpandableListView, android.view.View, int, int, long)
+	 */
 	@Override
 	public boolean onChildClick(ExpandableListView parent, View v,
 			int groupPosition, int childPosition, long id) {
 		return false;
 	}
 
+	/**
+	 * On content changed.
+	 *
+	 * @see android.app.Activity#onContentChanged()
+	 */
 	@Override
 	public void onContentChanged() {
 		super.onContentChanged();
 		mFinishedStart = true;
 	}
 
+	/**
+	 * On create context menu.
+	 *
+	 * @param menu the menu
+	 * @param v the v
+	 * @param menuInfo the menu info
+	 * @see android.app.Activity#onCreateContextMenu(android.view.ContextMenu, android.view.View, android.view.ContextMenu.ContextMenuInfo)
+	 */
 	@Override
 	public void onCreateContextMenu(ContextMenu menu, View v,
 			ContextMenuInfo menuInfo) {
 	}
 
+	/**
+	 * On group collapse.
+	 *
+	 * @param groupPosition the group position
+	 * @see android.widget.ExpandableListView.OnGroupCollapseListener#onGroupCollapse(int)
+	 */
 	@Override
 	public void onGroupCollapse(int groupPosition) {
 	}
 
+	/**
+	 * On group expand.
+	 *
+	 * @param groupPosition the group position
+	 * @see android.widget.ExpandableListView.OnGroupExpandListener#onGroupExpand(int)
+	 */
 	@Override
 	public void onGroupExpand(int groupPosition) {
 	}
 
+	/**
+	 * On restore instance state.
+	 *
+	 * @param state the state
+	 * @see android.app.Activity#onRestoreInstanceState(android.os.Bundle)
+	 */
 	@Override
 	protected void onRestoreInstanceState(Bundle state) {
 		ensureList();
 		super.onRestoreInstanceState(state);
 	}
 
+	/**
+	 * Sets the list adapter.
+	 *
+	 * @param adapter the new list adapter
+	 */
 	public void setListAdapter(ExpandableListAdapter adapter) {
 		synchronized (this) {
 			ensureList();
 		}
 	}
 
+	/**
+	 * Sets the selected child.
+	 *
+	 * @param groupPosition the group position
+	 * @param childPosition the child position
+	 * @param shouldExpandGroup the should expand group
+	 * @return true, if successful
+	 */
 	public boolean setSelectedChild(int groupPosition, int childPosition,
 			boolean shouldExpandGroup) {
 		return mList.setSelectedChild(groupPosition, childPosition,
 				shouldExpandGroup);
 	}
 
+	/**
+	 * Sets the selected group.
+	 *
+	 * @param groupPosition the new selected group
+	 */
 	public void setSelectedGroup(int groupPosition) {
 		mList.setSelectedGroup(groupPosition);
 	}

src/com/WazaBe/HoloEverywhere/app/FragmentBreadCrumbs.java

 import android.widget.TextView;
 
 import com.WazaBe.HoloEverywhere.LayoutInflater;
-import com.WazaBe.HoloEverywhere.R;
+import org.bitbucket.fredgrott.gwslaf.R;
 
+// TODO: Auto-generated Javadoc
+/**
+ * The Class FragmentBreadCrumbs.
+ */
 public class FragmentBreadCrumbs extends ViewGroup implements
 		FragmentManager.OnBackStackChangedListener {
+	
 	/**
 	 * Interface to intercept clicks on the bread crumbs.
+	 *
+	 * @see OnBreadCrumbClickEvent
 	 */
 	public interface OnBreadCrumbClickListener {
 		/**
 		public boolean onBreadCrumbClick(BackStackEntry backStack, int flags);
 	}
 
+	/** The m activity. */
 	FragmentActivity mActivity;
+	
+	/** The m container. */
 	LinearLayout mContainer;
+	
+	/** The m inflater. */
 	LayoutInflater mInflater;
 
+	/** The m max visible. */
 	int mMaxVisible = -1;
+	
+	/** The m on bread crumb click listener. */
 	private OnBreadCrumbClickListener mOnBreadCrumbClickListener;
 
+	/** The m on click listener. */
 	private OnClickListener mOnClickListener = new OnClickListener() {
 		@Override
 		public void onClick(View v) {
 		}
 	};
 
-	/** Listener to inform when a parent entry is clicked */
+	/** Listener to inform when a parent entry is clicked. */
 	private OnClickListener mParentClickListener;
 
+	/** The m parent entry. */
 	BackStackEntry mParentEntry;
 
 	// Hahah
+	/** The m top entry. */
 	BackStackEntry mTopEntry;
 
+	/**
+	 * Instantiates a new fragment bread crumbs.
+	 *
+	 * @param context the context
+	 */
 	public FragmentBreadCrumbs(Context context) {
 		this(context, null);
 	}
 
+	/**
+	 * Instantiates a new fragment bread crumbs.
+	 *
+	 * @param context the context
+	 * @param attrs the attrs
+	 */
 	public FragmentBreadCrumbs(Context context, AttributeSet attrs) {
 		this(context, attrs, android.R.style.Widget_FragmentBreadCrumbs);
 	}
 
+	/**
+	 * Instantiates a new fragment bread crumbs.
+	 *
+	 * @param context the context
+	 * @param attrs the attrs
+	 * @param defStyle the def style
+	 */
 	public FragmentBreadCrumbs(Context context, AttributeSet attrs, int defStyle) {
 		super(context, attrs, defStyle);
 	}
 
+	/**
+	 * Creates the back stack entry.
+	 *
+	 * @param title the title
+	 * @param shortTitle the short title
+	 * @return the back stack entry
+	 */
 	private BackStackEntry createBackStackEntry(final CharSequence title,
 			final CharSequence shortTitle) {
 		if (title == null) {
 	 * Returns the pre-entry corresponding to the index. If there is a parent
 	 * and a top entry set, parent has an index of zero and top entry has an
 	 * index of 1. Returns null if the specified index doesn't exist or is null.
-	 * 
-	 * @param index
-	 *            should not be more than {@link #getPreEntryCount()} - 1
+	 *
+	 * @param index should not be more than {@link #getPreEntryCount()} - 1
+	 * @return the pre entry
 	 */
 	private BackStackEntry getPreEntry(int index) {
 		// If there's a parent entry, then return that for zero'th item, else
 	/**
 	 * Returns the number of entries before the backstack, including the title
 	 * of the current fragment and any custom parent title that was set.
+	 *
+	 * @return the pre entry count
 	 */
 	private int getPreEntryCount() {
 		return (mTopEntry != null ? 1 : 0) + (mParentEntry != null ? 1 : 0);
 	}
 
+	/* (non-Javadoc)
+	 * @see android.support.v4.app.FragmentManager.OnBackStackChangedListener#onBackStackChanged()
+	 */
 	@Override
 	public void onBackStackChanged() {
 		updateCrumbs();
 	}
 
+	/* (non-Javadoc)
+	 * @see android.view.ViewGroup#onLayout(boolean, int, int, int, int)
+	 */
 	@Override
 	protected void onLayout(boolean changed, int l, int t, int r, int b) {
 		// Eventually we should implement our own layout of the views,
 		}
 	}
 
+	/* (non-Javadoc)
+	 * @see android.view.View#onMeasure(int, int)
+	 */
 	@SuppressLint("NewApi")
 	@Override
 	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
 	/**
 	 * Attach the bread crumbs to their activity. This must be called once when
 	 * creating the bread crumbs.
+	 *
+	 * @param a the new activity
 	 */
 	@SuppressLint("NewApi")
 	public void setActivity(FragmentActivity a) {
 	 * Set a custom title for the bread crumbs. This will be the first entry
 	 * shown at the left, representing the root of the bread crumbs. If the
 	 * title is null, it will not be shown.
+	 *
+	 * @param title the title
+	 * @param shortTitle the short title
 	 */
 	public void setTitle(CharSequence title, CharSequence shortTitle) {
 
 		updateCrumbs();
 	}
 
+	/**
+	 * Update crumbs.
+	 */
 	void updateCrumbs() {
 		FragmentManager fm = mActivity.getSupportFragmentManager();
 		int numEntries = fm.getBackStackEntryCount();

src/com/WazaBe/HoloEverywhere/app/ListActivity.java

 import android.widget.ListAdapter;
 import android.widget.ListView;
 
-import com.WazaBe.HoloEverywhere.R;
+import org.bitbucket.fredgrott.gwslaf.R;
 
+// TODO: Auto-generated Javadoc
+/**
+ * The Class ListActivity.
+ */
 public abstract class ListActivity extends Activity {
+	
+	/** The m adapter. */
 	protected ListAdapter mAdapter;
+	
+	/** The m finished start. */
 	private boolean mFinishedStart = false;
 
+	/** The m handler. */
 	private Handler mHandler = new Handler();
+	
+	/** The m list. */
 	protected ListView mList;
 
+	/** The m on click listener. */
 	private AdapterView.OnItemClickListener mOnClickListener = new AdapterView.OnItemClickListener() {
 		@Override
 		public void onItemClick(AdapterView<?> parent, View v, int position,
 		}
 	};
 
+	/** The m request focus. */
 	private Runnable mRequestFocus = new Runnable() {
 		@Override
 		public void run() {
 		}
 	};
 
+	/**
+	 * Ensure list.
+	 */
 	private void ensureList() {
 		if (mList != null) {
 			return;
 		setContentView(R.layout.list_content);
 	}
 
+	/**
+	 * Gets the list adapter.
+	 *
+	 * @return the list adapter
+	 */
 	public ListAdapter getListAdapter() {
 		return mAdapter;
 	}
 
+	/**
+	 * Gets the list view.
+	 *
+	 * @return the list view
+	 */
 	public ListView getListView() {
 		ensureList();
 		return mList;
 	}
 
+	/**
+	 * Gets the selected item id.
+	 *
+	 * @return the selected item id
+	 */
 	public long getSelectedItemId() {
 		return mList.getSelectedItemId();
 	}
 
+	/**
+	 * Gets the selected item position.
+	 *
+	 * @return the selected item position
+	 */
 	public int getSelectedItemPosition() {
 		return mList.getSelectedItemPosition();
 	}
 
+	/* (non-Javadoc)
+	 * @see android.app.Activity#onContentChanged()
+	 */
 	@Override
 	public void onContentChanged() {
 		super.onContentChanged();
 		mFinishedStart = true;
 	}
 
+	/* (non-Javadoc)
+	 * @see android.support.v4.app.FragmentActivity#onDestroy()
+	 */
 	@Override
 	protected void onDestroy() {
 		mHandler.removeCallbacks(mRequestFocus);
 		super.onDestroy();
 	}
 
+	/**
+	 * On list item click.
+	 *
+	 * @param l the l
+	 * @param v the v
+	 * @param position the position
+	 * @param id the id
+	 */
 	protected void onListItemClick(ListView l, View v, int position, long id) {
 	}
 
+	/* (non-Javadoc)
+	 * @see android.app.Activity#onRestoreInstanceState(android.os.Bundle)
+	 */
 	@Override
 	protected void onRestoreInstanceState(Bundle state) {
 		ensureList();
 		super.onRestoreInstanceState(state);
 	}
 
+	/**
+	 * Sets the list adapter.
+	 *
+	 * @param adapter the new list adapter
+	 */
 	public void setListAdapter(ListAdapter adapter) {
 		synchronized (this) {
 			ensureList();
 		}
 	}
 
+	/**
+	 * Sets the selection.
+	 *
+	 * @param position the new selection
+	 */
 	public void setSelection(int position) {
 		mList.setSelection(position);
 	}

src/com/WazaBe/HoloEverywhere/app/ProgressDialog.java

 import android.widget.TextView;
 
 import com.WazaBe.HoloEverywhere.LayoutInflater;
-import com.WazaBe.HoloEverywhere.R;
+import org.bitbucket.fredgrott.gwslaf.R;
 import com.WazaBe.HoloEverywhere.widget.ProgressBar;
 
+// TODO: Auto-generated Javadoc
+/**
+ * The Class ProgressDialog.
+ */
 public class ProgressDialog extends AlertDialog {
+	
+	/** The Constant STYLE_HORIZONTAL. */
 	public static final int STYLE_HORIZONTAL = 1;
+	
+	/** The Constant STYLE_SPINNER. */
 	public static final int STYLE_SPINNER = 0;