package com.hp.isomorphic.client.issues;

import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.SelectItem;
import com.smartgwt.client.widgets.form.fields.TimeItem;
import com.smartgwt.client.widgets.layout.Layout;

public class TimeItemCellStyleIssue extends Layout {
	public TimeItemCellStyleIssue() {
		TimeItem dateTimeItem = new TimeItem();
		dateTimeItem.setTitle("Test");
		dateTimeItem.setUseTextField(false);
		dateTimeItem.setUse24HourTime(false);
		
		SelectItem properties = new SelectItem();
		properties.setWidth(46);
		dateTimeItem.setHourItemProperties(properties);

		properties = new SelectItem();
		properties.setWidth(46);
		dateTimeItem.setMinuteItemProperties(properties); 

		properties = new SelectItem();
		properties.setWidth(46);
		dateTimeItem.setSecondItemProperties(properties);
		
		properties = new SelectItem();
		properties.setWidth(54);
		dateTimeItem.setMillisecondItemProperties(properties);
		
		properties = new SelectItem();
		properties.setWidth(50);
		dateTimeItem.setAmpmItemProperties(properties); 
	
		DynamicForm form = new DynamicForm();
		form.setHeight("*");
		form.setWidth(300);
		form.setFields(dateTimeItem);
	
		addMember(form);
	}
}
