Toggles showing more time items. If enabled, a noon and a late night time item are shown.
@param enable True to enable, false to disable more time items.
355477
public void setShowMoreTimeItems(boolean enable) {
        if(enable && !showMoreTimeItems) {
            // create the noon and late night item:
            final Resources res = getResources();
            // switch the afternoon item to 2pm:
            insertAdapterItem(new TimeItem(res.getString(R.string.time_afternoon_2), formatTime(14, 0), 14, 0, R.id.time_afternoon_2), 2);
            removeAdapterItemById(R.id.time_afternoon);
            // noon item:
            insertAdapterItem(new TimeItem(res.getString(R.string.time_noon), formatTime(12, 0), 12, 0, R.id.time_noon), 1);
            // late night item:
            addAdapterItem(new TimeItem(res.getString(R.string.time_late_night), formatTime(23, 0), 23, 0, R.id.time_late_night));
        }
        else if(!enable && showMoreTimeItems) {
            // switch back the afternoon item:
            insertAdapterItem(new TimeItem(getResources().getString(R.string.time_afternoon), formatTime(13, 0), 13, 0, R.id.time_afternoon), 3);
            removeAdapterItemById(R.id.time_afternoon_2);
            removeAdapterItemById(R.id.time_noon);
            removeAdapterItemById(R.id.time_late_night);
        }
        showMoreTimeItems = enable;
    }
825853
public void enableUniformSize(final boolean enable) {
        if (mUniformSize != enable) {
            mUniformSize = enable;
            if (mContainer != null) {
                mContainer.onLayoutChanged(this);
            }
        }
    }
88433
def setShowHours(self, state=True):
        
        self._showHours = state
        if state:
            self._hourSeparator.show()
            self._hourCombo.show()
        else:
            self._hourSeparator.hide()
            self._hourCombo.hide()
392970
public void setBoardEnabled(boolean enable) {
        if (enable && mBoard == null) {
            mBoard = makeBoard();
        }
        if (mBoard != null) {
            mBoard.setBoardEnabled(enable);
        }
    }
165443
public void setEnabled(boolean enable) {
        if (enable && !mEnabled) {
            if (DBG) Log.d(TAG, "Notification handler=" + ID + " is now enabled.");
            mEnabled = true;
        } else if (!enable && mEnabled) {
            if (DBG) Log.d(TAG, "Notification handler=" + ID + " is now disabled.");
            mEnabled = false;
            cancelAll();
        }
    }
1141663
public Segment enableMultithreading(boolean enable)
    {
        if (enable) config.threadNumber = Runtime.getRuntime().availableProcessors();
        else config.threadNumber = 1;
        return this;
    }
1341283
public void setEnabled(String layerName, boolean enabled) {
        synchronized (this) {
            if (enabled)
                layers.add(layerName);
            else
                layers.remove(layerName);
        }
    }
898543
public void setOverlayEnabled(boolean enabled) {
    if (enabled != this.enabled) {
      if (Build.VERSION.SDK_INT >= HONEYCOMB) {
        layerize(enabled);
      }
      this.enabled = enabled;

      if (!enabled) {
        canvasDelegate.clearCache();
      }

      invalidate(); // Trigger a re-draw so we see the grid.
    }
  }
582364
public void setEnabledWeekday(int dayOfWeek, boolean enable){
        if(mRepeatMode != REPEAT_WEEKLY)
            return;

        if(enable)
            mRepeatSetting = mRepeatSetting | WEEKDAY_MASK[dayOfWeek - 1];
        else
            mRepeatSetting = mRepeatSetting & (~WEEKDAY_MASK[dayOfWeek - 1]);
    }
839775
public final void setItemEnabled(final int index, final boolean enabled) {
        AbstractItem item = items.get(index);

        if (item instanceof Item) {
            ((Item) item).setEnabled(enabled);
            rawItems = null;
            notifyOnDataSetChanged();
        }
    }
82115
public void setTimeWarp(String l) {

        long warp = CmsContextInfo.CURRENT_TIME;
        try {
            warp = Long.parseLong(l);
        } catch (NumberFormatException e) {
            // if parsing the time warp fails, it will be set to -1 (i.e. disabled)
        }
        m_settings.setTimeWarp(warp);
    }
308562
@Override
    public void setEnabled(boolean enabled) {
        context.setEnabled(enabled);
        thisTable.setEnabled(enabled);
        localsTable.setEnabled(enabled);
        evaluator.setEnabled(enabled);
        cmdLine.setEnabled(enabled);
    }
335047
function disableControlsTemporarily() {
    viewer.controls().disableMethod('touchView');
    viewer.controls().disableMethod('pinch');
    setTimeout(function() {
      viewer.controls().enableMethod('touchView');
      viewer.controls().enableMethod('pinch');
    }, 200);
  }
1094812
public synchronized void enableAlarm() {
    if (!this.isAlarmEnabled) {
      LOG.log(Level.FINE, "Enabling the alarm and scheduling it to fire in {0} ms.", this.taskStatusCheckPeriod);
      this.isAlarmEnabled = true;
      this.scheduleAlarm();
    } else {
      LOG.log(Level.FINE, "Alarm is already enabled.");
    }
  }
455698
public void setEnabled(boolean enabled) {

        if (enabled) {
            enable();
        } else {
            m_button.setEnabled(enabled);
            getElement().setPropertyBoolean("disabled", true);
        }
    }
1274999
private void setDeliverValueChangeEvents(boolean enable) {
        formObjectHolder.setDeliverValueChangeEvents(enable);
        for (Object o : mediatingValueModels.values()) {
            FormModelMediatingValueModel valueModel = (FormModelMediatingValueModel) o;
            valueModel.setDeliverValueChangeEvents(enable);
        }
    }
1263905
public void setShowMonthItem(boolean enable) {
        if(enable && !showMonthItem) {
            // create the in 1 month item
            final Calendar date = Calendar.getInstance();
            date.add(Calendar.MONTH, 1);
            addAdapterItem(new DateItem(formatDate(date), date, R.id.date_month));
        }
        else if(!enable && showMonthItem) {
            removeAdapterItemById(R.id.date_month);
        }
        showMonthItem = enable;
    }