All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.android.controlcenter.componentViewer.properties.ComponentPropertyActivity Maven / Gradle / Ivy

Go to download

The Jadex rules tools package contains tools for the Jadex active components infrastructure.

The newest version!
package jadex.android.controlcenter.componentViewer.properties;

import jadex.android.controlcenter.MetaActivity;
import jadex.android.controlcenter.SubActivity;
import jadex.android.controlcenter.componentViewer.ComponentViewer;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ListView;

public class ComponentPropertyActivity extends SubActivity
{

	public ComponentPropertyActivity(Intent intent, MetaActivity ctx)
	{
		super(intent, ctx);
	}

	@Override
	public void onCreate(Bundle savedInstanceState)
	{

		PropertyItem[] props = (PropertyItem[]) getIntent().getSerializableExtra(ComponentViewer.EXTRA_PROPERTIES);

		ListView listView = new ListView(getContext());
		PropertyItemAdapter adapter = new PropertyItemAdapter(getContext(), props);

		listView.setAdapter(adapter);
		this.setContentView(listView);
	}

	@Override
	public void onResume()
	{
		this.setTitle("Component Properties");
	}

	@Override
	public void onPause()
	{
	}

	@Override
	public void onDestroy()
	{
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy