Back to project page android-weblogic-monitor.
The source code is released under:
GNU General Public License
If you think the Android project android-weblogic-monitor listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * ************************************************************************* *//w w w .j a v a 2s .c om * Copyright (c) 2013 - Jeffrey A. West Designs * * This code is provided for example purposes only. Neither Oracle nor * Jeffrey A. West assume any responsibility or liability for the consequences * of using this code. If you choose to use this code for any reason, * including but not limited to its use as an example you do so at your own * risk and without the support of Oracle. * * This code is provided under the following licenses: * - GNU General Public License (GPL-2.0) * * ************************************************************************** */ package com.jeffreyawest.weblogic.monitor.activity.list; import android.os.Bundle; import android.view.Menu; import android.widget.TextView; import com.jeffreyawest.weblogic.entity.Cluster; import com.jeffreyawest.weblogic.monitor.R; import com.jeffreyawest.weblogic.monitor.activity.list.adapter.ClusterListAdapter; public class ListClustersActivity extends ListEntityActivity<Cluster> { private static final String LOG_TAG = "ListClustersActivity"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); arrayAdapter = new ClusterListAdapter(this, R.layout.list_item_cluster, entities); setListAdapter(arrayAdapter); } @Override public Class<Cluster> getEntityClass() { return Cluster.class; } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.list_servers, menu); return true; } }