Sets whether or not this item is hidden due to isolation.
        
        :param      state | <bool>
161013
def setIsolateHidden(self, state):
        
        self._isolatedHidden = state
        
        super(XNode, self).setVisible(self.isVisible())
566244
def setCollapsed( self, state ):
        
        self.setCollapsible(True)
        if not self._inverted:
            self.setChecked(not state)
        else:
            self.setChecked(state)
830095
def setSingleShot(self, state):
        
        with QtCore.QWriteLocker(self.__lock):
            self.__singleShot = state
            self._singleShotChanged.emit(state)
1343487
def __set_true_state(self):
        

        LOGGER.debug("> Setting variable QPushButton() to 'True' state.")
        self.__state = True

        palette = QPalette()
        palette.setColor(QPalette.Button, foundations.common.get_first_item(self.__colors))
        self.setPalette(palette)

        self.setChecked(True)
        self.setText(foundations.common.get_first_item(self.__labels))
391749
def on_state_changed(self, state):
        
        if state:
            self.editor.painted.connect(self._paint_margin)
            self.editor.repaint()
        else:
            self.editor.painted.disconnect(self._paint_margin)
            self.editor.repaint()
958225
def hide_selected():    
    ''''''
    ss = current_representation().selection_state
    hs = current_representation().hidden_state
    res = {}
    
    for k in ss:
        res[k] = hs[k].add(ss[k])
    
    current_representation().hide(res)
337898
public boolean set(State state) {
    while (true) {
      InternalState internalState = currentInternalState.get();
      checkState(!internalState.isRead, "State was already read, cannot set state.");
      if (state == internalState.state) {
        return false;
      } else {
        if (!currentInternalState.compareAndSet(
            internalState,
            state == State.ENABLED
                ? InternalState.ENABLED_NOT_READ
                : InternalState.DISABLED_NOT_READ)) {
          // The state was changed between the moment the internalState was read and this point.
          // Some conditions may be not correct, reset at the beginning and recheck all conditions.
          continue;
        }
        return true;
      }
    }
  }
33602
function isHidden(collection, pattern, patternKey) {
  return (
    (collection.hidden && collection.hidden.indexOf(patternKey) !== -1) ||
    (pattern.data && pattern.data.hidden)
  );
}
319557
def hide(self):
        
        if not self.isHidden():
            QWidget.hide(self)
            self._qpart.updateViewport()
764132
def show_active_only(self, state):
        
        query = self._copy()
        query.active_only = state
        return query
1210068
def is_hidden(self, service):
        
        uid = api.get_uid(service)
        hidden_ans = self.request.form.get("Hidden", {})
        return hidden_ans.get(uid, "") == "on"
783242
def _state(self, variable, num):
        

        value = getattr(self, variable)

        if value is None:
            return False

        if value is True:
            return True

        if random.randint(1, num) == num:
            setattr(self, variable, True)
            return True

        return False
77102
def setHidden(self, state):
        
        super(XListGroupItem, self).setHidden(state)
        
        for child in self.children():
            child.setHidden(state or not self.isExpanded())
940364
def setLocked(self, state, force=False):
        
        if not force and state == self._locked:
            return
        
        self._locked = state
        tabbar = self.tabBar()
        tabbar.setLocked(state)
        if self.hideTabsWhenLocked():
            tabbar.setVisible(self.count() > 1 or not state)
        else:
            tabbar.setVisible(True)

        if tabbar.isVisible():
            self.setContentsMargins(6, tabbar.height(), 6, 6)
        else:
            self.setContentsMargins(1, 1, 1, 1)

        self.adjustSizeConstraint()
1081619
def hide(self):
        
        self.visible = False
        if self.proxy_is_active:
            self.proxy.ensure_hidden()
1077995
private boolean setState(State newState) {
        switch (newState) {
            case DEPLOYED:
                return changeState(State.DEPLOYING, State.DEPLOYED);
            case DEPLOYING:
                //can move from either UNDEPLOYED or FAILED into DEPLOYING state
                return (changeState(State.UNDEPLOYED, State.DEPLOYING) || changeState(State.FAILED, State.DEPLOYING));
            case UNDEPLOYING:
                return changeState(State.DEPLOYED, State.UNDEPLOYING);
            case UNDEPLOYED:
                return changeState(State.UNDEPLOYING, State.UNDEPLOYED);
            case FAILED:
                return changeState(State.DEPLOYING, State.FAILED);
            default:
                return false;
        }
    }
147058
def toggleSelectedItemState(self, state):
        
        items = self.selectedItems()
        for item in items:
            if ( item.hasRecordState(state) ):
                item.removeRecordState(state)
            else:
                item.addRecordState(state)