def METHOD_NAME(self, index, which = 0, column=0):
    if not column == 0:
        return -1
    curItem = self.workspace
    if not index is None:
        #walk down children
        for i in index:
            curItem = self._getChild(curItem, i)
    nChildren = self._getNumChildren(curItem)
    if nChildren == 0:
        return self.fileidx
    else:
        if which == wx.TreeItemIcon_Normal or which == wx.TreeItemIcon_Selected:
            return self.fldridx
        elif which == wx.TreeItemIcon_Expanded or which == wx.TreeItemIcon_SelectedExpanded:
            return self.fldropenidx
        else:
            return self.fileidx