//==================================================================
// iPhone Table Icons
// Timur Prokopiev 2011
//==================================================================


function setDefaultValues() {
  var values = new Array();
  
// Style
  values.push({ name:"Style", type:"ComboBox", value:"Arrow,Arrow,Remove,Add Blue,Add Green,Check,Check Unselected"});

Widget.elem.customData["currentValues"] = values;

}

function applyCurrentValues() {
  var values = Widget.elem.customData["currentValues"];
  var style  = values[0].value.split(",")[0].toString();

  Widget.GetObjectByName("arrow").visible = (style == "Arrow");
  Widget.GetObjectByName("remove").visible = (style == "Remove");
  Widget.GetObjectByName("add (blue)").visible = (style == "Add Blue");
  Widget.GetObjectByName("add (green)").visible = (style == "Add Green");
  Widget.GetObjectByName("check").visible = (style == "Check");
  Widget.GetObjectByName("check (unselected)").visible = (style == "Check Unselected");

}

switch (Widget.opCode)
{
	case 1: setDefaultValues();   break;
	case 2: applyCurrentValues(); break;
}