package com.hp.cp.pm.gwt.ui.client.controls;

import com.google.gwt.core.client.JavaScriptObject;
import com.smartgwt.client.widgets.form.fields.PickTreeItem;
import com.smartgwt.client.widgets.menu.TreeMenuButton;

public class PMDefaultPickTreeItem extends PickTreeItem {
	public PMDefaultPickTreeItem() {
		super();
		init();
	}
	
	public PMDefaultPickTreeItem(JavaScriptObject jsObj) {
		super(jsObj);
	}

	
	public PMDefaultPickTreeItem(String name) {
		super(name);
		init();
	}
	
	
	public PMDefaultPickTreeItem(String name, String title) {
		super(name, title);
		init();
	}
	
	private void init() {
		TreeMenuButton button = new TreeMenuButton();
		button.setBaseStyle("pm-darkPickTreeMenuButton"); //$NON-NLS-1$
		button.setMenuButtonImage("[SKINIMG]Product/SelectItem/dark/button.png"); //$NON-NLS-1$
		button.setIconWidth(18);
		button.setIconHeight(6);
		button.setWidth(20);
		button.setHeight(20);
		button.setMenuConstructor(PMDarkPickTreeMenu.class.getName());
		
		changeAutoChildDefaults("button", button); //$NON-NLS-1$
	}
}
