Code Search for Developers
 
 
  

StoryCardParentListBox.java from MASE: Agile Software Engineering at Krugle


Show StoryCardParentListBox.java syntax highlighted

package ucalgary.ebe.webui.client.ui;

import java.util.Vector;

import ucalgary.ebe.webui.client.WebUI2ServiceConnection;
import ucalgary.ebe.webui.client.data.IterationWeb;
import ucalgary.ebe.webui.client.data.ProjectWeb;

import com.google.gwt.user.client.ui.ChangeListener;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.Widget;

public class StoryCardParentListBox extends ListBox implements ChangeListener {
	
	private WebUI2ServiceConnection con;
	private CreateStoryCardDialogBox db;
	
	public StoryCardParentListBox(WebUI2ServiceConnection con, CreateStoryCardDialogBox db) {
		
		super();		
		this.con = con;
		this.db = db;
		this.addChangeListener(this);
		
		ProjectWeb prj = con.getProject();
		
		if(prj.getBacklog() != null) {
			this.addItem(prj.getBacklog().getName(), String.valueOf(prj.getBacklog().getId()));
		}
		
		Vector iterations = prj.getIterationChildren();
		
		for(int i = 0; i < prj.getIterationChildren().size(); i++) {
			IterationWeb iter = (IterationWeb)iterations.get(i);
			this.addItem(iter.getName(), String.valueOf(iter.getId()));
		}
		
		this.setVisibleItemCount(1);
		db.setParentId(Long.valueOf(getValue(0)).longValue());
		
	}

	public void onChange(Widget sender) {
		db.setParentId(Long.valueOf(getValue(getSelectedIndex())).longValue());		
	}

}




See more files for this project here

MASE: Agile Software Engineering

The MASE project investigates methods to support the coordination and executable acceptance testing of software projects. Keywords: Agile methods, distributed teams, Extreme Programming. See http://ebe.cpsc.ucalgary.ca/ebe for more information.

Project homepage: http://sourceforge.net/projects/mase
Programming language(s): Java,XML
License: other

  CreateIterationDialogBox.java
  CreateProjectDialogBox.java
  CreateStoryCardDialogBox.java
  FloatTextBoxWithID.java
  ImageWithID.java
  ProjectListBox.java
  ProjectWhiteBoard.java
  StoryCardGrid.java
  StoryCardParentListBox.java
  TextBoxWithID.java
  TimestampTextBoxWithID.java
  WebUIMenu.java