NGWLoginFragment

public class NGWLoginFragment extends Fragment implements LoaderManager.LoaderCallbacks<String>, View.OnClickListener

Fields

DEFAULT_ACCOUNT

protected static final String DEFAULT_ACCOUNT

ENDING

protected static final String ENDING

mChangeAccountLogin

protected boolean mChangeAccountLogin

mChangeAccountUrl

protected boolean mChangeAccountUrl

mForNewAccount

protected boolean mForNewAccount

mLoader

protected Loader<String> mLoader

mLoginText

protected String mLoginText

mLoginTitle

protected TextView mLoginTitle

mNGW

protected boolean mNGW

mOnAddAccountListener

protected OnAddAccountListener mOnAddAccountListener

mPasswordText

protected String mPasswordText

mSignInButton

protected Button mSignInButton

mURL

protected EditText mURL

mUrlText

protected String mUrlText

mUrlWithProtocol

protected AtomicReference<String> mUrlWithProtocol

Methods

checkEditText

protected boolean checkEditText(EditText edit)

onClick

public void onClick(View v)

onCreate

public void onCreate(Bundle savedInstanceState)

onCreateLoader

public Loader<String> onCreateLoader(int id, Bundle args)

onCreateView

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

onLoadFinished

public void onLoadFinished(Loader<String> loader, String token)

onLoaderReset

public void onLoaderReset(Loader<String> loader)

onPause

public void onPause()

onResume

public void onResume()

onTokenReceived

public void onTokenReceived(String accountName, String token)

setChangeAccountLogin

public void setChangeAccountLogin(boolean changeAccountLogin)

setChangeAccountUrl

public void setChangeAccountUrl(boolean changeAccountUrl)

setForNewAccount

public void setForNewAccount(boolean forNewAccount)

setLoginText

public void setLoginText(String loginText)

setOnAddAccountListener

public void setOnAddAccountListener(OnAddAccountListener onAddAccountListener)

setUrlText

public void setUrlText(String urlText)