org.rococoa.cocoa.appkit
Class NSRuleEditor
java.lang.Object
org.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.appkit.NSResponder
org.rococoa.cocoa.appkit.NSView
org.rococoa.cocoa.appkit.NSControl
org.rococoa.cocoa.appkit.NSRuleEditor
- All Implemented Interfaces:
- NSClipViewSuperview, NSControlAttributedStringMethods, NSErrorPresentation, NSInterfaceStyle, NSKeyboardUI, NSRulerMarkerClientViewDelegation, NSStandardKeyBindingMethods, NSUndoSupport, NSViewEnclosingMenuItem, NSAnimatablePropertyContainer, ABActionDelegate, AMWorkflowControllerDelegate, IMVideoDataSource, NSAccessibility, NSAccessibilityAdditions, NSAnimationDelegate, NSApplicationScriptingDelegation, NSArchiverCallback, NSBrowserDelegate, NSClassDescriptionPrimitives, NSCoderMethods, NSColorPanelResponderMethod, NSComboBoxCellDataSource, NSComboBoxDataSource, NSComboBoxNotifications, NSComparisonMethods, NSConnectionDelegateMethods, NSControlSubclassDelegate, NSControlSubclassNotifications, NSCopyLinkMoveHandler, NSDatePickerCellDelegate, NSDelayedPerforming, NSDeprecatedKeyValueCoding, NSDeprecatedKeyValueObservingCustomization, NSDeprecatedMethods, NSDictionaryControllerKeyValuePair, NSDistantObjectRequestMethods, NSDistributedObjects, NSDraggingDestination, NSDraggingSource, NSDrawerDelegate, NSDrawerNotifications, NSEditor, NSEditorRegistration, NSErrorRecoveryAttempting, NSExceptionHandlerDelegate, NSFileManagerFileOperationAdditions, NSFontManagerDelegate, NSFontManagerResponderMethod, NSFontPanelValidationAdditions, NSImageDelegate, NSKeyedArchiverDelegate, NSKeyedArchiverObjectSubstitution, NSKeyedUnarchiverDelegate, NSKeyedUnarchiverObjectSubstitution, NSKeyValueBindingCreation, NSKeyValueCoding, NSKeyValueObserverNotification, NSKeyValueObserverRegistration, NSKeyValueObserving, NSKeyValueObservingCustomization, NSLayoutManagerDelegate, NSMenuDelegate, NSMenuValidation, NSMetadataQueryDelegate, NSNetServiceBrowserDelegateMethods, NSNetServiceDelegateMethods, NSNibAwaking, NSOutlineViewDataSource, NSOutlineViewDelegate, NSOutlineViewNotifications, NSPasteboardOwner, NSPlaceholders, NSPortDelegateMethods, NSRuleEditorDelegateMethods, NSSavePanelDelegate, NSScriptClassDescription, NSScripting, NSScriptingComparisonMethods, NSScriptKeyValueCoding, NSScriptObjectSpecifiers, NSSoundDelegateMethods, NSSpeechRecognizerDelegate, NSSpeechSynthesizerDelegate, NSSpellServerDelegate, NSSplitViewDelegate, NSStreamDelegateEventExtensions, NSTabViewDelegate, NSTextDelegate, NSTextViewDelegate, NSThreadPerformAdditions, NSTokenFieldCellDelegate, NSTokenFieldDelegate, NSToolbarDelegate, NSToolbarNotifications, NSURLClient, NSURLConnectionDelegate, NSURLDownloadDelegate, NSWindowDelegate, NSWindowNotifications, NSXMLParserDelegateEventAdditions, QTCaptureDecompressedVideoOutputDelegate, QTCaptureFileOutputDelegate, QTCaptureVideoPreviewOutputDelegate, QTCaptureViewDelegate, QTMovieDelegate, QTMovieViewDelegate, SFAuthorizationViewDelegate, SFCertificatePanelDelegate, SFChooseIdentityPanelDelegate, WebDownloadDelegate, WebFrameLoadDelegate, WebJavaPlugIn, WebPlugIn, WebPlugInContainer, WebPolicyDelegate, WebResourceLoadDelegate, WebScripting, WebUIDelegate, WebViewEditingDelegate, NSCoding, NSObject
- Direct Known Subclasses:
- NSPredicateEditor
public abstract class NSRuleEditor
- extends NSControl
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.
Method Summary |
abstract void |
addRow(org.rococoa.ID sender)
Adds "initial" rows, or a row to the end - useful as the target for the outside + button
Original signature : -(void)addRow:(id) |
static NSRuleEditor |
alloc()
|
abstract boolean |
canRemoveAllRows()
|
abstract NSArray |
criteriaForRow(int row)
Clients call this to obtain all of the currently chosen items for the given row. |
abstract NSString |
criteriaKeyPath()
|
abstract NSObject |
delegate()
|
abstract NSArray |
displayValuesForRow(int row)
Clients call this to obtain all of the chosen values (strings, views, or menu items) for row. |
abstract NSString |
displayValuesKeyPath()
|
abstract NSDictionary |
formattingDictionary()
|
abstract NSString |
formattingStringsFilename()
|
abstract void |
insertRowAtIndex_withType_asSubrowOfRow_animate(int rowIndex,
int rowType,
int parentRow,
boolean shouldAnimate)
Clients call this to add a new row at the given index with the given type as a subrow of the parent row. |
abstract boolean |
isEditable()
|
abstract int |
nestingMode()
|
abstract int |
numberOfRows()
Clients can call this to determine the number of rows
Original signature : -(NSInteger)numberOfRows |
abstract int |
parentRowForRow(int rowIndex)
Clients call this to determine the parent row of rowIndex. |
abstract NSPredicate |
predicate()
Clients can call this to obtain the predicate for the view if the delegate implements - ruleEditor: predicatePartsForItem: withValue: inRow:row: . |
abstract NSPredicate |
predicateForRow(int row)
This method returns the predicate for a given row. |
abstract void |
reloadCriteria()
Clients can call this to indicate that the available criteria may have changed and should be refetched from the delegate, and the popups recalculated. |
abstract void |
reloadPredicate()
Clients can call this to indicates that the predicate should be generated again from the delegate (by invoking the corresponding delegate method), typically because something has changed (for example, a view's value). |
abstract void |
removeRowAtIndex(int rowIndex)
Clients call this to remove the row at the given index. |
abstract void |
removeRowsAtIndexes_includeSubrows(NSIndexSet rowIndexes,
boolean includeSubrows)
Clients call this to delete rows at the given indexes. |
abstract Pointer |
rowClass()
|
abstract int |
rowForDisplayValue(org.rococoa.ID displayValue)
Clients call this to map from a display value (string, view, or menu item) back to a row. |
abstract float |
rowHeight()
|
abstract int |
rowTypeForRow(int rowIndex)
Clients call this to determine the type of the row. |
abstract NSString |
rowTypeKeyPath()
|
abstract NSIndexSet |
selectedRowIndexes()
Clients call this to determine the indexes of the selected rows. |
abstract void |
selectRowIndexes_byExtendingSelection(NSIndexSet indexes,
boolean extend)
Clients call this to modify the selected row indexes. |
abstract void |
setCanRemoveAllRows(boolean val)
Rule editors that have the canRemoveAllRows property set to NO prevent the user from emptying the rule editor by deleting all the rows. |
abstract void |
setCriteria_andDisplayValues_forRowAtIndex(NSArray criteria,
NSArray values,
int rowIndex)
Clients call this to modify the row at a given index to contain the passed-in items and values. |
abstract void |
setCriteriaKeyPath(NSString keyPath)
Set and get the criteria key path, which determines the criteria for a row in the "rows" binding. |
abstract void |
setDisplayValuesKeyPath(NSString keyPath)
Set and get the display values key path, which determines the display values for a row (the display values are what the delegate returns from - ruleEditor: displayValueForCriterion: inRow:). |
abstract void |
setEditable(boolean editable)
Clients call this to set the editable property of the control. |
abstract void |
setFormattingDictionary(NSDictionary dictionary)
Clients can call this to set (and get) a formatting dictionary on the NSRuleEditor. |
abstract void |
setFormattingStringsFilename(NSString stringsFilename)
Clients can call this to automatically set a formatting dictionary based on the strings file with the given name. |
abstract void |
setNestingMode(int mode)
Clients call this to set and get the nesting mode for the NSRuleEditor. |
abstract void |
setRowClass(Pointer rowClass)
Sets the class used when creating a new row in the "rows" binding; this class should be KVC and KVO compliant for the key paths listed below. |
abstract void |
setRowHeight(float height)
Clients call this to set and get the height of each row. |
abstract void |
setRowTypeKeyPath(NSString keyPath)
Set and get the key path for the row type, which is used to get the row type in the "rows" binding. |
abstract void |
setSubrowsKeyPath(NSString keyPath)
Set and get the key path for the subrows, which is used to determined nested rows in the "rows" binding. |
abstract NSIndexSet |
subrowIndexesForRow(int rowIndex)
Clients can call this to determine the immediate subrows of the given row. |
abstract NSString |
subrowsKeyPath()
|
Methods inherited from class org.rococoa.cocoa.appkit.NSControl |
abortEditing, action, alignment, baseWritingDirection, calcSize, cell, currentEditor, doubleValue, drawCell, drawCellInside, floatValue, font, formatter, ignoresMultiClick, integerValue, intValue, isContinuous, isEnabled, mouseDown, objectValue, selectCell, selectedCell, selectedTag, sendAction_to, sendActionOn, setAction, setCell, setContinuous, setDoubleValue, setEnabled, setFloatingPointFormat_left_right, setFloatValue, setFont, setFormatter, setIgnoresMultiClick, setIntegerValue, setIntValue, setNeedsDisplay, setObjectValue, setObjectValue, setStringValue, setTag, setTarget, sizeToFit, stringValue, tag, takeDoubleValueFrom, takeFloatValueFrom, takeIntegerValueFrom, takeIntValueFrom, takeObjectValueFrom, takeStringValueFrom, target, updateCell, updateCellInside, validateEditing |
Methods inherited from class org.rococoa.cocoa.appkit.NSView |
addSubview, ancestorSharedWithView, createWithFrame, getRectsBeingDrawn_count, getRectsBeingDrawn_count, initWithFrame, isDescendantOf, isHidden, isHiddenOrHasHiddenAncestor, needsToDrawRect, opaqueAncestor, setHidden, setSubviews, subviews, superview, viewDidHide, viewDidUnhide, wantsDefaultClipping, window |
Methods inherited from class org.rococoa.cocoa.appkit.NSResponder |
acceptsFirstResponder, becomeFirstResponder, cursorUpdate, flagsChanged, flushBufferedKeyEvents, helpRequested, interpretKeyEvents, keyDown, keyUp, menu, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseUp, nextResponder, noResponderFor, otherMouseDown, otherMouseDragged, otherMouseUp, performKeyEquivalent, resignFirstResponder, rightMouseDown, rightMouseDragged, rightMouseUp, scrollWheel, setMenu, setNextResponder, shouldBeTreatedAsInkEvent, showContextHelp, tabletPoint, tabletProximity, tryToPerform_with, validRequestorForSendType_returnType |
Methods inherited from class org.rococoa.cocoa.foundation.NSObject |
copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardInvocation, id, init, isKindOfClass, isKindOfClass, methodSignatureForSelector, mutableCopy, release, retain, retainCount |
Methods inherited from interface org.rococoa.cocoa.appkit.categories.NSStandardKeyBindingMethods |
cancelOperation, capitalizeWord, centerSelectionInVisibleArea, changeCaseOfLetter, complete, deleteBackward, deleteBackwardByDecomposingPreviousCharacter, deleteForward, deleteToBeginningOfLine, deleteToBeginningOfParagraph, deleteToEndOfLine, deleteToEndOfParagraph, deleteToMark, deleteWordBackward, deleteWordForward, doCommandBySelector, indent, insertBacktab, insertContainerBreak, insertLineBreak, insertNewline, insertNewlineIgnoringFieldEditor, insertParagraphSeparator, insertTab, insertTabIgnoringFieldEditor, insertText, lowercaseWord, moveBackward, moveBackwardAndModifySelection, moveDown, moveDownAndModifySelection, moveForward, moveForwardAndModifySelection, moveLeft, moveLeftAndModifySelection, moveRight, moveRightAndModifySelection, moveToBeginningOfDocument, moveToBeginningOfLine, moveToBeginningOfParagraph, moveToEndOfDocument, moveToEndOfLine, moveToEndOfParagraph, moveUp, moveUpAndModifySelection, moveWordBackward, moveWordBackwardAndModifySelection, moveWordForward, moveWordForwardAndModifySelection, moveWordLeft, moveWordLeftAndModifySelection, moveWordRight, moveWordRightAndModifySelection, pageDown, pageUp, scrollLineDown, scrollLineUp, scrollPageDown, scrollPageUp, selectAll, selectLine, selectParagraph, selectToMark, selectWord, setMark, swapWithMark, transpose, transposeWords, uppercaseWord, yank |
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
autorelease, class_, conformsToProtocol, hash, isEqual, isKindOfClass, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebUIDelegate |
webView_contextMenuItemsForElement_defaultMenuItems, webView_createWebViewModalDialogWithRequest, webView_createWebViewWithRequest, webView_dragDestinationActionMaskForDraggingInfo, webView_dragDestinationActionMaskForDraggingInfo, webView_makeFirstResponder, webView_mouseDidMoveOverElement_modifierFlags, webView_printFrameView, webView_runBeforeUnloadConfirmPanelWithMessage_initiatedByFrame, webView_runJavaScriptAlertPanelWithMessage_initiatedByFrame, webView_runJavaScriptAlertPanelWithMessage, webView_runJavaScriptConfirmPanelWithMessage_initiatedByFrame, webView_runJavaScriptConfirmPanelWithMessage, webView_runJavaScriptTextInputPanelWithPrompt_defaultText_initiatedByFrame, webView_runJavaScriptTextInputPanelWithPrompt_defaultText, webView_runOpenPanelForFileButtonWithResultListener, webView_runOpenPanelForFileButtonWithResultListener, webView_setResizable, webView_setStatusBarVisible, webView_setStatusText, webView_setToolbarsVisible, webView_shouldPerformAction_fromSender, webView_validateUserInterfaceItem_defaultValidation, webView_validateUserInterfaceItem_defaultValidation, webView_willPerformDragDestinationAction_forDraggingInfo, webView_willPerformDragDestinationAction_forDraggingInfo, webViewAreToolbarsVisible, webViewClose, webViewContentRect, webViewFirstResponder, webViewFocus, webViewFooterHeight, webViewFrame, webViewHeaderHeight, webViewIsResizable, webViewIsStatusBarVisible, webViewRunModal, webViewShow, webViewStatusText, webViewUnfocus |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSBrowserDelegate |
browser_acceptDrop_atRow_column_dropOperation, browser_acceptDrop_atRow_column_dropOperation, browser_canDragRowsWithIndexes_inColumn_withEvent, browser_createRowsForColumn_inMatrix, browser_isColumnValid, browser_namesOfPromisedFilesDroppedAtDestination_forDraggedRowsWithIndexes_inColumn, browser_nextTypeSelectMatchFromRow_toRow_inColumn_forString, browser_numberOfRowsInColumn, browser_selectCellWithString_inColumn, browser_selectRow_inColumn, browser_shouldShowCellExpansionForRow_column, browser_shouldSizeColumn_forUserResize_toWidth, browser_shouldTypeSelectForEvent_withCurrentSearchString, browser_sizeToFitWidthOfColumn, browser_titleOfColumn, browser_typeSelectStringForRow_inColumn, browser_validateDrop_proposedRow_column_dropOperation, browser_validateDrop_proposedRow_column_dropOperation, browser_willDisplayCell_atRow_column, browser_writeRowsWithIndexes_inColumn_toPasteboard, browserColumnConfigurationDidChange, browserDidScroll, browserWillScroll |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSKeyValueCoding |
dictionaryWithValuesForKeys, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, setNilValueForKey, setValue_forKey, setValue_forKeyPath, setValue_forUndefinedKey, setValuesForKeysWithDictionary, validateValue_forKey_error, validateValue_forKeyPath_error, valueForKey, valueForKeyPath, valueForUndefinedKey |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSOutlineViewDelegate |
outlineView_dataCellForTableColumn_item, outlineView_didClickTableColumn, outlineView_didDragTableColumn, outlineView_heightOfRowByItem, outlineView_isGroupItem, outlineView_mouseDownInHeaderOfTableColumn, outlineView_nextTypeSelectMatchFromItem_toItem_forString, outlineView_selectionIndexesForProposedSelection, outlineView_shouldCollapseItem, outlineView_shouldEditTableColumn_item, outlineView_shouldExpandItem, outlineView_shouldSelectItem, outlineView_shouldSelectTableColumn, outlineView_shouldShowCellExpansionForTableColumn_item, outlineView_shouldTrackCell_forTableColumn_item, outlineView_shouldTypeSelectForEvent_withCurrentSearchString, outlineView_typeSelectStringForTableColumn_item, outlineView_willDisplayCell_forTableColumn_item, outlineView_willDisplayOutlineCell_forTableColumn_item, selectionShouldChangeInOutlineView |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebViewEditingDelegate |
undoManagerForWebView, webView_doCommandBySelector, webView_shouldApplyStyle_toElementsInDOMRange, webView_shouldBeginEditingInDOMRange, webView_shouldChangeTypingStyle_toStyle, webView_shouldDeleteDOMRange, webView_shouldEndEditingInDOMRange, webView_shouldInsertNode_replacingDOMRange_givenAction, webView_shouldInsertText_replacingDOMRange_givenAction, webViewDidBeginEditing, webViewDidChange, webViewDidChangeSelection, webViewDidChangeTypingStyle, webViewDidEndEditing |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebFrameLoadDelegate |
webView_didCancelClientRedirectForFrame, webView_didChangeLocationWithinPageForFrame, webView_didClearWindowObject_forFrame, webView_didCommitLoadForFrame, webView_didFailLoadWithError_forFrame, webView_didFailProvisionalLoadWithError_forFrame, webView_didFinishLoadForFrame, webView_didReceiveIcon_forFrame, webView_didReceiveServerRedirectForProvisionalLoadForFrame, webView_didReceiveTitle_forFrame, webView_didStartProvisionalLoadForFrame, webView_willCloseFrame, webView_windowScriptObjectAvailable |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTokenFieldDelegate |
tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenField_displayStringForRepresentedObject, tokenField_editingStringForRepresentedObject, tokenField_hasMenuForRepresentedObject, tokenField_menuForRepresentedObject, tokenField_readFromPasteboard, tokenField_representedObjectForEditingString, tokenField_shouldAddObjects_atIndex, tokenField_styleForRepresentedObject, tokenField_writeRepresentedObjects_toPasteboard |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSXMLParserDelegateEventAdditions |
parser_didEndElement_namespaceURI_qualifiedName, parser_didEndMappingPrefix, parser_didStartElement_namespaceURI_qualifiedName_attributes, parser_didStartMappingPrefix_toURI, parser_foundAttributeDeclarationWithName_forElement_type_defaultValue, parser_foundCDATA, parser_foundCharacters, parser_foundComment, parser_foundElementDeclarationWithName_model, parser_foundExternalEntityDeclarationWithName_publicID_systemID, parser_foundIgnorableWhitespace, parser_foundInternalEntityDeclarationWithName_value, parser_foundNotationDeclarationWithName_publicID_systemID, parser_foundProcessingInstructionWithTarget_data, parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName, parser_parseErrorOccurred, parser_resolveExternalEntityName_systemID, parser_validationErrorOccurred, parserDidEndDocument, parserDidStartDocument |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSDraggingDestination |
concludeDragOperation, concludeDragOperation, draggingEnded, draggingEnded, draggingEntered, draggingEntered, draggingExited, draggingExited, draggingUpdated, draggingUpdated, performDragOperation, performDragOperation, prepareForDragOperation, prepareForDragOperation, wantsPeriodicDraggingUpdates |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSOutlineViewDataSource |
outlineView_acceptDrop_item_childIndex, outlineView_acceptDrop_item_childIndex, outlineView_child_ofItem, outlineView_isItemExpandable, outlineView_itemForPersistentObject, outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems, outlineView_numberOfChildrenOfItem, outlineView_objectValueForTableColumn_byItem, outlineView_persistentObjectForItem, outlineView_setObjectValue_forTableColumn_byItem, outlineView_sortDescriptorsDidChange, outlineView_validateDrop_proposedItem_proposedChildIndex, outlineView_validateDrop_proposedItem_proposedChildIndex, outlineView_writeItems_toPasteboard |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSURLDownloadDelegate |
download_decideDestinationWithSuggestedFilename, download_didCancelAuthenticationChallenge, download_didCreateDestination, download_didFailWithError, download_didReceiveAuthenticationChallenge, download_didReceiveDataOfLength, download_didReceiveResponse, download_shouldDecodeSourceDataOfMIMEType, download_willResumeWithResponse_fromByte, download_willSendRequest_redirectResponse, downloadDidBegin, downloadDidFinish |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSAccessibility |
accessibilityActionDescription, accessibilityActionNames, accessibilityAttributeNames, accessibilityAttributeValue_forParameter, accessibilityAttributeValue, accessibilityFocusedUIElement, accessibilityIsAttributeSettable, accessibilityIsIgnored, accessibilityParameterizedAttributeNames, accessibilityPerformAction, accessibilitySetValue_forAttribute |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTextViewDelegate |
textView_clickedOnLink_atIndex, textView_clickedOnLink, textView_doCommandBySelector, textView_menu_forEvent_atIndex, textView_shouldChangeTextInRanges_replacementStrings, textView_shouldChangeTypingAttributes_toAttributes, textView_willChangeSelectionFromCharacterRanges_toCharacterRanges, textView_willDisplayToolTip_forCharacterAtIndex, textView_writablePasteboardTypesForCell_atIndex, textView_writablePasteboardTypesForCell_atIndex, textView_writeCell_atIndex_toPasteboard_type, textView_writeCell_atIndex_toPasteboard_type, textViewDidChangeSelection, textViewDidChangeTypingAttributes, undoManagerForTextView |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTokenFieldCellDelegate |
tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenFieldCell_displayStringForRepresentedObject, tokenFieldCell_editingStringForRepresentedObject, tokenFieldCell_hasMenuForRepresentedObject, tokenFieldCell_menuForRepresentedObject, tokenFieldCell_readFromPasteboard, tokenFieldCell_representedObjectForEditingString, tokenFieldCell_shouldAddObjects_atIndex, tokenFieldCell_styleForRepresentedObject, tokenFieldCell_writeRepresentedObjects_toPasteboard |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSWindowNotifications |
windowDidBecomeKey, windowDidBecomeMain, windowDidChangeScreen, windowDidChangeScreenProfile, windowDidDeminiaturize, windowDidEndSheet, windowDidExpose, windowDidMiniaturize, windowDidMove, windowDidResignKey, windowDidResignMain, windowDidResize, windowDidUpdate, windowWillBeginSheet, windowWillClose, windowWillMiniaturize, windowWillMove |
NSRuleEditor
public NSRuleEditor()
delegate
public abstract NSObject delegate()
setFormattingStringsFilename
public abstract void setFormattingStringsFilename(NSString stringsFilename)
- Clients can call this to automatically set a formatting dictionary based on the strings file with the given name. Setting a formatting strings file searches the main bundle, and the bundle containing this nib, for a (possibly localized) strings file resource with the given name, loads it, and sets it as the formatting dictionary. The resulting dictionary can be obtained with -[NSRuleEditor formattingDictionary]. If you set the formatting dictionary explicitly with -[NSRuleEditor setFormattingDictionary:], then it sets the current formattingStringsFilename to nil
Original signature : -(void)setFormattingStringsFilename:(NSString*)
formattingStringsFilename
public abstract NSString formattingStringsFilename()
setFormattingDictionary
public abstract void setFormattingDictionary(NSDictionary dictionary)
- Clients can call this to set (and get) a formatting dictionary on the NSRuleEditor. The formatting dictionary should have NSString keys and NSString values. The syntax of the keys and values is the same as the syntax for strings files.
Original signature : -(void)setFormattingDictionary:(NSDictionary*)
formattingDictionary
public abstract NSDictionary formattingDictionary()
reloadCriteria
public abstract void reloadCriteria()
- Clients can call this to indicate that the available criteria may have changed and should be refetched from the delegate, and the popups recalculated. If any item in a given row is "orphaned" (no longer reported as a child of its previous parent), those rows have their critieria and display values set to valid choices.
Original signature : -(void)reloadCriteria
setNestingMode
public abstract void setNestingMode(int mode)
- Clients call this to set and get the nesting mode for the NSRuleEditor. This is generally set at view creation time and not modified after. The default is NSRuleEditorNestingModeCompound.
Original signature : -(void)setNestingMode:(NSRuleEditorNestingMode)
nestingMode
public abstract int nestingMode()
setRowHeight
public abstract void setRowHeight(float height)
- Clients call this to set and get the height of each row. This method changes the receiver's frame and marks it for redisplay.
Original signature : -(void)setRowHeight:(CGFloat)
rowHeight
public abstract float rowHeight()
setEditable
public abstract void setEditable(boolean editable)
- Clients call this to set the editable property of the control. Users can only interact with editable NSRuleEditors. The default is YES.
Original signature : -(void)setEditable:(BOOL)
isEditable
public abstract boolean isEditable()
setCanRemoveAllRows
public abstract void setCanRemoveAllRows(boolean val)
- Rule editors that have the canRemoveAllRows property set to NO prevent the user from emptying the rule editor by deleting all the rows. The rule editor can still be emptied programatically. The default is YES.
Original signature : -(void)setCanRemoveAllRows:(BOOL)
canRemoveAllRows
public abstract boolean canRemoveAllRows()
predicate
public abstract NSPredicate predicate()
- Clients can call this to obtain the predicate for the view if the delegate implements - ruleEditor: predicatePartsForItem: withValue: inRow:row: . If the delegate does not, or if the delegate does not return enough parts to construct a full predicate, this method returns nil.
Original signature : -(NSPredicate*)predicate
reloadPredicate
public abstract void reloadPredicate()
- Clients can call this to indicates that the predicate should be generated again from the delegate (by invoking the corresponding delegate method), typically because something has changed (for example, a view's value).
Original signature : -(void)reloadPredicate
predicateForRow
public abstract NSPredicate predicateForRow(int row)
- This method returns the predicate for a given row. Clients should rarely have a need to call this directly, but it can be overridden to perform specialized predicate handling for certain criteria or display values.
Original signature : -(NSPredicate*)predicateForRow:(NSInteger)
numberOfRows
public abstract int numberOfRows()
- Clients can call this to determine the number of rows
Original signature : -(NSInteger)numberOfRows
subrowIndexesForRow
public abstract NSIndexSet subrowIndexesForRow(int rowIndex)
- Clients can call this to determine the immediate subrows of the given row. Pass -1 to get the top-level rows. Rows are numbered starting at 0. If rowIndex is less than -1 or greater than or equal to the number of rows, this raises an NSRangeException.
Original signature : -(NSIndexSet*)subrowIndexesForRow:(NSInteger)
criteriaForRow
public abstract NSArray criteriaForRow(int row)
- Clients call this to obtain all of the currently chosen items for the given row. These are the same items that are returned from the delegate method - ruleEditor: child: forCriterion: withRowType:
Original signature : -(NSArray*)criteriaForRow:(NSInteger)
displayValuesForRow
public abstract NSArray displayValuesForRow(int row)
- Clients call this to obtain all of the chosen values (strings, views, or menu items) for row. These are the same values that are returned from the delegate method - ruleEditor: valueForItem: inRow:
Original signature : -(NSArray*)displayValuesForRow:(NSInteger)
rowForDisplayValue
public abstract int rowForDisplayValue(org.rococoa.ID displayValue)
- Clients call this to map from a display value (string, view, or menu item) back to a row. This method searches each row via pointer equality for the given display value, which may be present as an alternative in a popup menu for that row. It returns the index of the row containing the given value, or NSNotFound. Raises NSInvalidArgumentException if displayValue is nil.
Original signature : -(NSInteger)rowForDisplayValue:(id)
rowTypeForRow
public abstract int rowTypeForRow(int rowIndex)
- Clients call this to determine the type of the row. If rowIndex is less than 0 or greater than or equal to the number of rows, this raises an NSRangeException
Original signature : -(NSRuleEditorRowType)rowTypeForRow:(NSInteger)
parentRowForRow
public abstract int parentRowForRow(int rowIndex)
- Clients call this to determine the parent row of rowIndex. If rowIndex is a root row, this returns -1. If rowIndex is less than 0 or greater than or equal to the number of rows, this raises an NSRangeException
Original signature : -(NSInteger)parentRowForRow:(NSInteger)
addRow
public abstract void addRow(org.rococoa.ID sender)
- Adds "initial" rows, or a row to the end - useful as the target for the outside + button
Original signature : -(void)addRow:(id)
insertRowAtIndex_withType_asSubrowOfRow_animate
public abstract void insertRowAtIndex_withType_asSubrowOfRow_animate(int rowIndex,
int rowType,
int parentRow,
boolean shouldAnimate)
- Clients call this to add a new row at the given index with the given type as a subrow of the parent row. Pass -1 to indicate that it should be a root row. If parentRow >= rowIndex, or if rowIndex would fall amongst the children of some other parent, or if the nesting mode forbids this configuration, an NSInvalidArgumentException is raised.
Original signature : -(void)insertRowAtIndex:(NSInteger) withType:(NSRuleEditorRowType) asSubrowOfRow:(NSInteger) animate:(BOOL)
setCriteria_andDisplayValues_forRowAtIndex
public abstract void setCriteria_andDisplayValues_forRowAtIndex(NSArray criteria,
NSArray values,
int rowIndex)
- Clients call this to modify the row at a given index to contain the passed-in items and values. It is your responsibility to ensure that each item in the array is a child of the previous item, and that the first item is a root item for the row type. If the last item has child items, then the items array will be extended by querying the delegate for child items until a childless item is reached. If the values array contains fewer objects than the (possibly extended) criteria array, then the delegate will be queried to construct the remaining display values. If you want the delegate to be queried for all the criteria or all the display values, pass empty arrays; do not pass nil. Raises NSRangeException if rowIndex is equal to or larger than the number of rows, or less than 0. Raises an NSInvalidArgumentException if criteria or values is nil.
Original signature : -(void)setCriteria:(NSArray*) andDisplayValues:(NSArray*) forRowAtIndex:(NSInteger)
removeRowAtIndex
public abstract void removeRowAtIndex(int rowIndex)
- Clients call this to remove the row at the given index. Any subrows of the deleted row are adopted by the parent of the deleted row, or are made root rows. Raises NSRangeException if rowIndex is equal to or larger than the number of rows, or less than 0.
Original signature : -(void)removeRowAtIndex:(NSInteger)
removeRowsAtIndexes_includeSubrows
public abstract void removeRowsAtIndexes_includeSubrows(NSIndexSet rowIndexes,
boolean includeSubrows)
- Clients call this to delete rows at the given indexes. If includeSubrows is YES, then the subrows of the deleted rows will be deleted as well; if includeSubrows is NO, then each subrow will be adopted by its first non-deleted ancestor, or will become a root row. Raises NSRangeException if any index in rowIndexes is equal to or larger than the number of rows, or less than 0.
Original signature : -(void)removeRowsAtIndexes:(NSIndexSet*) includeSubrows:(BOOL)
selectedRowIndexes
public abstract NSIndexSet selectedRowIndexes()
- Clients call this to determine the indexes of the selected rows.
Original signature : -(NSIndexSet*)selectedRowIndexes
selectRowIndexes_byExtendingSelection
public abstract void selectRowIndexes_byExtendingSelection(NSIndexSet indexes,
boolean extend)
- Clients call this to modify the selected row indexes. Raises NSRangeException if any index in rowIndexes is equal to or larger than the number of rows, or less than 0.
Original signature : -(void)selectRowIndexes:(NSIndexSet*) byExtendingSelection:(BOOL)
setRowClass
public abstract void setRowClass(Pointer rowClass)
- Sets the class used when creating a new row in the "rows" binding; this class should be KVC and KVO compliant for the key paths listed below. By default this is NSMutableDictionary
Original signature : -(void)setRowClass:(Class)
rowClass
public abstract Pointer rowClass()
setRowTypeKeyPath
public abstract void setRowTypeKeyPath(NSString keyPath)
- Set and get the key path for the row type, which is used to get the row type in the "rows" binding. The row type is a value property of type NSRuleEditorRowType. The default is @"rowType".
Original signature : -(void)setRowTypeKeyPath:(NSString*)
rowTypeKeyPath
public abstract NSString rowTypeKeyPath()
setSubrowsKeyPath
public abstract void setSubrowsKeyPath(NSString keyPath)
- Set and get the key path for the subrows, which is used to determined nested rows in the "rows" binding. The subrows property is an ordered to-many relationship containing additional bound row objects. The default is @"subrows".
Original signature : -(void)setSubrowsKeyPath:(NSString*)
subrowsKeyPath
public abstract NSString subrowsKeyPath()
setCriteriaKeyPath
public abstract void setCriteriaKeyPath(NSString keyPath)
- Set and get the criteria key path, which determines the criteria for a row in the "rows" binding. (The criteria objects are what the delegate returns from - ruleEditor: child: forCriterion: withRowType:). The criteria property is an ordered to-many relationship. The default is @"criteria".
Original signature : -(void)setCriteriaKeyPath:(NSString*)
criteriaKeyPath
public abstract NSString criteriaKeyPath()
setDisplayValuesKeyPath
public abstract void setDisplayValuesKeyPath(NSString keyPath)
- Set and get the display values key path, which determines the display values for a row (the display values are what the delegate returns from - ruleEditor: displayValueForCriterion: inRow:). The criteria property is an ordered to-many relationship. The default is @"displayValues".
Original signature : -(void)setDisplayValuesKeyPath:(NSString*)
displayValuesKeyPath
public abstract NSString displayValuesKeyPath()
alloc
public static NSRuleEditor alloc()