/** * Removes a previously added event from the calendar. * * @param event the event to be removed from the calendar * @see ERCalendarEvent * @see #removeEventsInArray(NSArray) */ public void removeEvent (ERCalendarEvent event) { events.removeObject (event); }
public void _removeInstancePrimitive(MInstance anInstance) { _instanceArray.removeObject(anInstance); boolean uniqueHost = true; for (Enumeration e = _instanceArray.objectEnumerator(); e.hasMoreElements(); ) { MInstance anInst = (MInstance) e.nextElement(); if (anInstance._host == anInst._host) { uniqueHost = false; break; } } if (uniqueHost) { _hostArray.removeObject(anInstance._host); } } /**********/
public void _removeInstancePrimitive(MInstance anInstance) { _instanceArray.removeObject(anInstance); // get the instances's host - check all the other instances that this // application has to see if any other ones have that host // if not, remove it. boolean uniqueApplication = true; for (Enumeration e = _instanceArray.objectEnumerator(); e.hasMoreElements();) { MInstance anInst = (MInstance) e.nextElement(); if (anInstance._application == anInst._application) { uniqueApplication = false; break; } } if (uniqueApplication) { _applicationArray.removeObject(anInstance._application); } }
public void _removeApplication(MApplication anApplication) { _applicationArray.removeObject(anApplication); dataHasChanged(); } public void removeApplication_M(MApplication anApplication) {
public void deleteSubAttribute(DRAttribute subAtt) { _attribute.attributes().removeObject(subAtt); }
public void _removeHost(MHost aHost) { _hostArray.removeObject(aHost); if (aHost == _localHost) { _localHost = null; } dataHasChanged(); } public void removeHost_M(MHost aHost) {
public void removeAttachment(ERMailAttachment attachment) { _attachments().removeObject(attachment); _inlineAttachments().removeObject(attachment); }
public void addToHList(DRGroup drg) { if (!_hList.containsObject(drg)) { _hList.addObject(drg); } if (_vList.containsObject(drg)) { _vList.removeObject(drg); } if (_zList.containsObject(drg)) { _zList.removeObject(drg); } }
public void addToVList(DRGroup drg) { if (!_vList.containsObject(drg)) { _vList.addObject(drg); } if (_hList.containsObject(drg)) { _hList.removeObject(drg); } if (_zList.containsObject(drg)) { _zList.removeObject(drg); } }
public void addToZList(DRGroup drg) { if (!_zList.containsObject(drg)) { _zList.addObject(drg); } if (_vList.containsObject(drg)) { _vList.removeObject(drg); } if (_hList.containsObject(drg)) { _hList.removeObject(drg); } }
/** * Toggles inclusion of row into selectedObjects() (i.e. selects and * de-selects it). */ public void toggleRowSelection() { if (isRowSelected()) { selectedObjects().removeObject(row); } else { selectedObjects().addObject(row); } }
public Object deleteSubMasterCrit() { NSMutableArray smcList = new NSMutableArray(masterCriteria.subCriteriaList()); DRMasterCriteriaEditing prnt = (DRMasterCriteriaEditing)parent(); smcList.removeObject(aSubMasterCriteria); prnt.replaceMCWith(masterCriteria, smcList); return null; }
public void _removeInstance(MInstance anInstance) { //cancel all tasks anInstance.cancelForceQuitTask(); anInstance._host._removeInstancePrimitive(anInstance); anInstance._application._removeInstancePrimitive(anInstance); _instanceArray.removeObject(anInstance); dataHasChanged(); } public void removeInstance_M(MInstance anInstance) {
public void replaceMCWith(DRMasterCriteria oldMC, NSArray smcList) { NSMutableArray arr = new NSMutableArray(masterCriteriaList()); int indx = arr.indexOfObject(oldMC); arr.insertObjectAtIndex(DRMasterCriteria.withSubMasterCriteriaUserInfo(smcList, oldMC.userInfo()), indx); arr.removeObject(oldMC); setMasterCriteriaList(arr); } }
public void setSelection(Object value) { NSMutableArray selections = (selections() != null) ? selections().mutableClone() : new NSMutableArray(); if (value != null) { selections.addObject(item()); } else { selections.removeObject(item()); } setValueForBinding(selections, Bindings.selections); }
public void moveUp(DRAttribute member, boolean up) { int cnt; NSMutableArray arr = _attribute.attributes(); int cur = arr.indexOfObject(member); arr.removeObject(member); cnt = arr.count(); if (up) { int newdex = cur-1; if (newdex < 0) { arr.addObject(member); } else { arr.insertObjectAtIndex(member, newdex); } } else { int newdex = cur+1; if (newdex > cnt) { arr.insertObjectAtIndex(member, 0); } else { arr.insertObjectAtIndex(member, newdex); } } }
public void moveUpDimension(DRGroup vGroup, boolean up, String dim) { int cnt; NSMutableArray dims = (NSMutableArray)dimensionForName(dim); int cur = dims.indexOfObject(vGroup); dims.removeObject(vGroup); cnt = dims.count(); if (up) { int newdex = cur-1; if (newdex < 0) { dims.addObject(vGroup); } else { dims.insertObjectAtIndex(vGroup, newdex); } } else { int newdex = cur+1; if (newdex > cnt) { dims.insertObjectAtIndex(vGroup, 0); } else { dims.insertObjectAtIndex(vGroup, newdex); } } }
public NSArray currentEventDescriptions() { NSMutableArray<String> descs; NSDictionary<String,String> map; map = EOEvent.eventTypeDescriptions(currentClass); descs = new NSMutableArray<>(); descs.setArray(map.allValues()); descs.removeObject(map.objectForKey(EOEvent.EventGroupName)); try { descs.sortUsingComparator(NSComparator.AscendingStringComparator); } catch (NSComparator.ComparisonException e) { throw NSForwardException._runtimeExceptionForThrowable(e); } descs.insertObjectAtIndex(map.objectForKey(EOEvent.EventGroupName), 0); return descs; }
currentValues.removeObject(o);
tagsFetchAttributes.removeObject(attribute);