Sets the icon to be used when the item is expanded.
        
        :param      column | <int>
                    icon   | <QtGui.QIcon> || None
775947
def setExpandedIcon( self, column, icon ):
        
        self._expandedIcon[column] = QtGui.QIcon(icon)
1229201
public void setIcon(Icon icon) {

        if (icon == null) {
            m_iconContainer.clear();
            this.m_icon = null;
        } else {
            m_iconContainer.getElement().appendChild(icon.getElement());
            this.m_icon = icon;
        }
    }
296513
def setColumnHidden( self, column, state ):
        
        super(XTreeWidget, self).setColumnHidden(column, state)
        
        if ( not self.signalsBlocked() ):
            self.columnHiddenChanged.emit(column, state)
            self.executeDelayedItemsLayout()
507389
def updateItemIcon(self, item):
        
        # update the column width
        self.setUpdatesEnabled(False)
        colwidth = self.columnWidth(0)
        self.resizeColumnToContents(0)
        new_colwidth = self.columnWidth(0)
        
        if new_colwidth < colwidth:
            self.setColumnWidth(0, colwidth)
        self.setUpdatesEnabled(True)
1297745
def setExpanded(self, state):
        
        if state == self._expanded:
            return
        
        self._expanded = state
        
        # update the button
        btn = self.widget()
        if btn:
            if state:
                ico = 'img/treeview/triangle_down.png'
            else:
                ico = 'img/treeview/triangle_right.png'
            btn.setIcon(QtGui.QIcon(resources.find(ico)))
        
        # update the children
        for child in self.children():
            child.setHidden(not state)
1021039
def setExpanded( self, state ):
        
        self._expanded = state
        self._widget.setVisible(state)
        
        if ( state ):
            ico = projexui.resources.find('img/treeview/triangle_down.png')
        else:
            ico = projexui.resources.find('img/treeview/triangle_right.png')
        
        self._titleButton.setIcon(QIcon(ico))
        
        # emit the signals for this widget
        rollout = self.rolloutWidget()
        if ( not rollout.signalsBlocked() ):
            index = rollout.widget().layout().indexOf(self)
            
            rollout.itemCollapsed.emit(index)
            rollout.itemExpanded.emit(index)
872686
def set_value(self, treeiter, column, value):
        

        value = self._convert_value(column, value)
        Gtk.ListStore.set_value(self, treeiter, column, value)
517684
def setSizeHint(self, column, hint):
        
        self._fixedHeight = max(hint.height(), self._fixedHeight)
        super(XTreeWidgetItem, self).setSizeHint(column, hint)
276272
def set_column_gap(self, value):
        
        value = str(value) + 'px'
        value = value.replace('pxpx', 'px')
        self.style['grid-column-gap'] = value
619336
public void setWidget (int row, int column, Widget widget, int colSpan, String... styles)
    {
        setWidget(row, column, widget);
        if (colSpan > 0) {
            getFlexCellFormatter().setColSpan(row, column, colSpan);
        }
        setStyleNames(row, column, styles);
    }
370364
def initUi(self):
        
        self.gridLayout = QtGui.QGridLayout(self)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)

        self.buttonFrame = QtGui.QFrame(self)
        #self.buttonFrame.setMinimumSize(QtCore.QSize(250, 50))
        #self.buttonFrame.setMaximumSize(QtCore.QSize(250, 50))
        self.buttonFrame.setFrameShape(QtGui.QFrame.NoFrame)
        spacerItemButton = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)

        self.buttonFrameLayout = QtGui.QGridLayout(self.buttonFrame)
        self.buttonFrameLayout.setContentsMargins(0, 0, 0, 0)

        self.editButton = QtGui.QToolButton(self.buttonFrame)
        self.editButton.setObjectName('editbutton')
        self.editButton.setText(self.tr('edit'))
        self.editButton.setToolTip(self.tr('toggle editing mode'))
        icon = QtGui.QIcon(QtGui.QPixmap(_fromUtf8(':/icons/document-edit.png')))

        self.editButton.setIcon(icon)

        self.addColumnButton = QtGui.QToolButton(self.buttonFrame)
        self.addColumnButton.setObjectName('addcolumnbutton')
        self.addColumnButton.setText(self.tr('+col'))
        self.addColumnButton.setToolTip(self.tr('add new column'))
        icon = QtGui.QIcon(QtGui.QPixmap(_fromUtf8(':/icons/edit-table-insert-column-right.png')))

        self.addColumnButton.setIcon(icon)

        self.addRowButton = QtGui.QToolButton(self.buttonFrame)
        self.addRowButton.setObjectName('addrowbutton')
        self.addRowButton.setText(self.tr('+row'))
        self.addRowButton.setToolTip(self.tr('add new row'))
        icon = QtGui.QIcon(QtGui.QPixmap(_fromUtf8(':/icons/edit-table-insert-row-below.png')))

        self.addRowButton.setIcon(icon)

        self.removeColumnButton = QtGui.QToolButton(self.buttonFrame)
        self.removeColumnButton.setObjectName('removecolumnbutton')
        self.removeColumnButton.setText(self.tr('-col'))
        self.removeColumnButton.setToolTip(self.tr('remove a column'))
        icon = QtGui.QIcon(QtGui.QPixmap(_fromUtf8(':/icons/edit-table-delete-column.png')))

        self.removeColumnButton.setIcon(icon)

        self.removeRowButton = QtGui.QToolButton(self.buttonFrame)
        self.removeRowButton.setObjectName('removerowbutton')
        self.removeRowButton.setText(self.tr('-row'))
        self.removeRowButton.setToolTip(self.tr('remove selected rows'))
        icon = QtGui.QIcon(QtGui.QPixmap(_fromUtf8(':/icons/edit-table-delete-row.png')))

        self.removeRowButton.setIcon(icon)

        self.buttons = [self.editButton, self.addColumnButton, self.addRowButton, self.removeColumnButton, self.removeRowButton]

        for index, button in enumerate(self.buttons):
            button.setMinimumSize(self._iconSize)
            button.setMaximumSize(self._iconSize)
            button.setIconSize(self._iconSize)
            button.setCheckable(True)
            self.buttonFrameLayout.addWidget(button, 0, index, 1, 1)
        self.buttonFrameLayout.addItem(spacerItemButton, 0, index+1, 1, 1)

        for button in self.buttons[1:]:
            button.setEnabled(False)

        #self.tableView = QtGui.QTableView(self)
        self.tableView = DragTable(self)
        self.tableView.setAlternatingRowColors(True)
        self.tableView.setSortingEnabled(True)
        
        self.gridLayout.addWidget(self.buttonFrame, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.tableView, 1, 0, 1, 1)

        self.editButton.toggled.connect(self.enableEditing)
        self.addColumnButton.toggled.connect(self.showAddColumnDialog)
        self.addRowButton.toggled.connect(self.addRow)
        self.removeRowButton.toggled.connect(self.removeRow)
        self.removeColumnButton.toggled.connect(self.showRemoveColumnDialog)
1014626
def setColumn( self, column ):
        
        if ( not column ):
            return
        
        self._columnName = column.name()
        
        if ( column.columnType() != ColumnType.ForeignKey ):
            return
        
        if ( self._editor ):
            self._editor.setTableType(column.referenceModel())
            self._editor.setRequired(column.required())
94395
def setHoverIcon(self, icon):
        
        icon = QIcon(icon)
        if not icon.isNull():
            self._hoverIcon = QIcon(icon)
        else:
            self._hoverIcon = None
1129829
def SetValue(self, row, col, value):
        
        self.dataframe.iloc[row, col] = value
714693
public void setIcon(String icon) {

        m_icon = icon;
        if (LOG.isDebugEnabled()) {
            LOG.debug(Messages.get().getBundle().key(Messages.LOG_SET_ICON_1, icon));
        }
    }
722848
public void setIcon(Icon icon) {
        Icon old = null;
        if (iconInfo == CommandButtonIconInfo.BLANK_ICON_INFO) {
            if (icon != null) {
                // New IconInfo fires event
                setIconInfo(new CommandButtonIconInfo(icon));
            }
        }
        else {
            old = iconInfo.getIcon();
            this.iconInfo.setIcon(icon);
        }
        firePropertyChange(ICON_PROPERTY, old, icon);
    }
1228462
def go_to_column(self, column):
        

        cursor = self.textCursor()
        cursor.setPosition(cursor.block().position() + column)
        self.setTextCursor(cursor)
        return True