Sets the alternating row colors state for this widget.
        
        :param      state | <bool>
12893
def setAlternatingRowColors( self, state ):
        
        self._alternatingRowColors = state
        
        self.treeWidget().setAlternatingRowColors(state)
1085548
def setFontItalic(self, state):
        
        font = self.currentFont()
        font.setItalic(state)
        self.setCurrentFont(font)
755521
public void setTotalColorForRow(int row, Color color){
		int map = (colors[0].length-1) - row;
		colors[colors.length-1][map]=color;		
	}
566977
def setInverted(self, state):
        
        collapsed = self.isCollapsed()
        self._inverted = state
        if self.isCollapsible():
            self.setCollapsed(collapsed)
23628
@Override
    protected boolean onStateChange(int[] state) {
        final int color = state == null ? mColorStateList.getDefaultColor() : mColorStateList.getColorForState(state, mColor);
        boolean bFlag = mColor != color;
        if (bFlag) {
            mColor = color;
        }
        return bFlag;
    }
329521
public void setThumbColor(ColorStateList stateList) {
        mThumbStateList = stateList;
        mThumbColor = mThumbStateList.getDefaultColor();

        if (mAlpha < 255) {
            mCurThumbColor = Ui.modulateColorAlpha(mThumbColor, mAlpha);
        } else {
            mCurThumbColor = mThumbColor;
        }
    }
791032
def setVisible(self, state):
        
        super(XLineEdit, self).setVisible(state)
        
        self.adjustStyleSheet()
        self.adjustTextMargins()
1098416
def setShowOptionsButton(self, state):
        
        self._showOptionsButton = state
        self._optionsButton.setVisible(state)
663976
def setInheritVisibility(self, state):
        
        if self._inheritVisibility == state:
            return False
            
        self._inheritVisibility = state
        self.sync()
        return True
818194
public void setColorStateList(ColorStateList tintStateList) {
        if (tintStateList == null)
            tintStateList = ColorStateList.valueOf(Color.BLACK);
        mColorStateList = tintStateList;
        onStateChange(getState());
    }
839906
public int setState(boolean state, boolean bDisplayOption, int iMoveMode)
    {       // Must be overidden
        m_bSetData = true;  // Make sure getNextConverter is called correctly (if it is called).
        int iErrorCode = super.setState(state, bDisplayOption, iMoveMode);
        m_bSetData = false;
        return iErrorCode;
    }
327545
def setRecordState( self, recordState ):
        
        self._recordState = recordState
        
        try:
            is_colored = self.treeWidget().isColored()
        except AttributeError:
            return
        
        if not is_colored:
            return
        
        # determine the color for the item based on the state
        if recordState & XOrbRecordItem.State.Removed:
            clr = self.treeWidget().colorSet().color('RecordRemoved')
        elif recordState & XOrbRecordItem.State.New:
            clr = self.treeWidget().colorSet().color('RecordNew')
        elif recordState & XOrbRecordItem.State.Modified:
            clr = self.treeWidget().colorSet().color('RecordModified')
        else:
            clr = None
        
        # set the color based on the record state
        if clr is not None:
            clr = QColor(clr)
            clr.setAlpha(40)
            brush = QBrush(clr)
        else:
            brush = QBrush()
        
        for c in range(self.treeWidget().columnCount()):
            self.setBackground(c, brush)
165068
public void setScrubberColor(ColorStateList stateList) {
        mScrubberStateList = stateList;
        mScrubberColor = mScrubberStateList.getDefaultColor();

        if (mAlpha < 255) {
            mCurScrubberColor = Ui.modulateColorAlpha(mScrubberColor, mAlpha);
        } else {
            mCurScrubberColor = mScrubberColor;
        }
    }
234123
public void setEditingState(String state) {
		if ("idle".equalsIgnoreCase(state)) {
			delegate.setEditingState(GeometryEditState.IDLE);
		} else if ("dragging".equalsIgnoreCase(state)) {
			delegate.setEditingState(GeometryEditState.DRAGGING);
		} else if ("inserting".equalsIgnoreCase(state)) {
			delegate.setEditingState(GeometryEditState.INSERTING);
		}
	}
929193
def set_state(self, state):
        
        _field = self.binary_state_name()
        values = {"desired_state": {_field: state}}
        response = self.api_interface.local_set_state(self, values, type_override="binary_switche")
        self._update_state_from_response(response)
736220
def setFontBold(self, state):
        
        if state:
            weight = QFont.Bold
        else:
            weight = QFont.Normal
        
        self.setFontWeight(weight)
913815
protected void setState(FieldState state) {
        if (DEBUG)
            LOG.debug("{}:{} --> {}", _state, _field != null ? _field : _headerString != null ? _headerString : _string, state);
        _fieldState = state;
    }