NGWResourcesListAdapter

public class NGWResourcesListAdapter extends BaseAdapter implements AdapterView.OnItemClickListener

Fields

mCheckState

protected List<CheckState> mCheckState

mConnectionListener

protected OnConnectionListener mConnectionListener

mConnections

protected Connections mConnections

mContext

protected Context mContext

mCurrentResource

protected INGWResource mCurrentResource

mLoading

protected boolean mLoading

mPathView

protected PathView mPathView

mShowAccounts

protected boolean mShowAccounts

mShowCheckboxes

protected boolean mShowCheckboxes

mTypeMask

protected int mTypeMask

Constructors

NGWResourcesListAdapter

public NGWResourcesListAdapter(Context context)

Methods

getCheckState

public List<CheckState> getCheckState()

getConnectionView

protected View getConnectionView(Connection connection, View view)

getConnections

public Connections getConnections()

getCount

public int getCount()

getCurrentResource

public INGWResource getCurrentResource()

getCurrentResourceId

public int getCurrentResourceId()

getItem

public Object getItem(int i)

getItemId

public long getItemId(int i)

getLoadingView

protected View getLoadingView(View view)

getResourceView

protected View getResourceView(Resource resource, View view)

getView

public View getView(int i, View view, ViewGroup viewGroup)

goUp

public void goUp()

isAccountsDisabled

public boolean isAccountsDisabled()

onItemClick

public void onItemClick(AdapterView<?> adapterView, View view, int i, long l)

refresh

public void refresh()

setCheckBox

public void setCheckBox(int resourceType, CheckBox checkBox, int id, int checkNo)

setCheckState

public void setCheckState(List<CheckState> checkState)

setConnectionListener

public void setConnectionListener(OnConnectionListener connectionListener)

setConnections

public void setConnections(Connections connections)

setCurrentResourceId

public void setCurrentResourceId(int id)

setPathLayout

public void setPathLayout(LinearLayout linearLayout)

setShowAccounts

public void setShowAccounts(boolean show)

setShowCheckboxes

public void setShowCheckboxes(boolean show)

setTypeMask

public void setTypeMask(int typeMask)