javax.microedition.lcdui.List Java Examples

The following examples show how to use javax.microedition.lcdui.List. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MicroActivity.java    From J2ME-Loader with Apache License 2.0 5 votes vote down vote up
@Override
public boolean onContextItemSelected(@NonNull MenuItem item) {
	if (current instanceof Form) {
		((Form) current).contextMenuItemSelected(item);
	} else if (current instanceof List) {
		AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
		((List) current).contextMenuItemSelected(item, info.position);
	}

	return super.onContextItemSelected(item);
}
 
Example #2
Source File: VideoSourceSelector.java    From pluotsorbet with GNU General Public License v2.0 5 votes vote down vote up
public VideoSourceSelector(MediaSamplerMIDlet midlet, MediaList list) {
    super("Select Video Source", List.IMPLICIT);
    this.midlet = midlet;
    this.returnList = list;
    urlForm = new HTTPUrlForm();
    append("From http", null);
    append("From jar", null);
    addCommand(backCommand);
    setCommandListener(this);
}