public static void selectMe(ItemController other){
		if (item != null) {
			item.deselect ();

			if (item.name != other.name) {
				item = other;
				text = item.getText();
			} else {
				item = null;
				text = "none";
			}

		} else {
			item = other;
			text = item.getText();

		}


	}
示例#2
0
    public static void selectMe(ItemController other)
    {
        if (item != null)
        {
            item.deselect();

            if (item.name != other.name)
            {
                item = other;
                text = item.getText();
            }
            else
            {
                item = null;
                text = "none";
            }
        }
        else
        {
            item = other;
            text = item.getText();
        }
    }