Class NSTextView
- Direct Known Subclasses:
SWTTextView
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongbooleandragSelectionWithEvent(NSEvent event, NSSize mouseOffset, boolean slideBack) voidvoidsetAllowsUndo(boolean allowsUndo) voidsetBaseWritingDirection(long writingDirection, NSRange range) voidsetDefaultParagraphStyle(NSParagraphStyle defaultParagraphStyle) voidsetDisplaysLinkToolTips(boolean displaysLinkToolTips) voidsetLinkTextAttributes(NSDictionary linkTextAttributes) voidsetRichText(boolean richText) voidsetSelectedTextAttributes(NSDictionary selectedTextAttributes) voidsetUsesFontPanel(boolean usesFontPanel) booleanshouldChangeTextInRange(NSRange affectedCharRange, NSString replacementString) booleanMethods inherited from class NSText
copy, cut, delegate, font, isFieldEditor, paste, replaceCharactersInRange, scrollRangeToVisible, selectAll, selectedRange, setAlignment, setBackgroundColor, setBaseWritingDirection, setDelegate, setDrawsBackground, setEditable, setFont, setHorizontallyResizable, setMaxSize, setMinSize, setSelectable, setSelectedRange, setString, setTextColor, sizeToFit, stringMethods inherited from class NSView
acceptsFirstMouse, addSubview, addSubview, addToolTipRect, beginDocument, beginPageInRect, bitmapImageRepForCachingDisplayInRect, bounds, cacheDisplayInRect, canBecomeKeyView, convertPoint_fromView_, convertPoint_toView_, convertPointFromBase, convertPointToBase, convertRect_fromView_, convertRect_toView_, convertRectFromBase, convertRectToBase, convertSize_fromView_, convertSize_toView_, convertSizeFromBase, convertSizeToBase, discardCursorRects, display, displayIfNeeded, displayRectIgnoringOpacity, dragImage, drawRect, endDocument, endPage, frame, hitTest, initWithFrame, isDescendantOf, isFlipped, isHidden, isHiddenOrHasHiddenAncestor, isOpaque, lockFocus, menuForEvent, mouse, mouseDownCanMoveWindow, needsPanelToBecomeKey, registerForDraggedTypes, removeFromSuperview, removeToolTip, removeTrackingArea, resetCursorRects, scrollClipView, scrollPoint, scrollRect, scrollRectToVisible, setAcceptsTouchEvents, setAutoresizesSubviews, setAutoresizingMask, setBoundsRotation, setFocusRingType, setFrame, setFrameOrigin, setFrameSize, setHidden, setNeedsDisplay, setNeedsDisplayInRect, setToolTip, setWantsRestingTouches, shouldDelayWindowOrderingForEvent, subviews, superview, trackingAreas, unlockFocus, unregisterDraggedTypes, updateTrackingAreas, viewDidMoveToWindow, viewWillMoveToWindow, visibleRect, windowMethods inherited from class NSResponder
acceptsFirstResponder, becomeFirstResponder, beginGestureWithEvent, cancelOperation, cursorUpdate, doCommandBySelector, endGestureWithEvent, flagsChanged, helpRequested, insertText, interpretKeyEvents, keyDown, keyUp, magnifyWithEvent, mouseDown, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseUp, moveToBeginningOfParagraph, moveToEndOfParagraph, moveUp, noResponderFor, otherMouseDown, otherMouseDragged, otherMouseUp, pageDown, pageUp, performKeyEquivalent, resignFirstResponder, rightMouseDown, rightMouseDragged, rightMouseUp, rotateWithEvent, scrollWheel, swipeWithEvent, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesMovedWithEvent, undoManager, validRequestorForSendTypeMethods inherited from class NSObject
accessibilityAttributeValue, accessibilitySetOverrideValue, addEventListener, alloc, autorelease, cancelAuthenticationChallenge, className, conformsToProtocol, copy, description, draggedImage, draggingDestinationWindow, draggingLocation, draggingPasteboard, draggingSourceOperationMask, handleEvent, init, isEqual, isEqualTo, isKindOfClass, mutableCopy, outlineView, outlineView, outlineView, outlineView, performSelector, performSelectorOnMainThread, readSelectionFromPasteboard, release, respondsToSelector, retain, retainCount, setValue, superclass, tableView, tableView, tableView, useCredential, valueForKey, writeSelectionToPasteboardMethods inherited from class id
equals, hashCode, objc_getClass, toString
-
Constructor Details
-
NSTextView
public NSTextView() -
NSTextView
public NSTextView(long id) -
NSTextView
-
-
Method Details
-
characterIndexForInsertionAtPoint
-
defaultParagraphStyle
-
dragSelectionWithEvent
-
drawViewBackgroundInRect
-
layoutManager
-
linkTextAttributes
-
markedTextAttributes
-
selectedTextAttributes
-
setAllowsUndo
public void setAllowsUndo(boolean allowsUndo) -
setBaseWritingDirection
-
setDefaultParagraphStyle
-
setDisplaysLinkToolTips
public void setDisplaysLinkToolTips(boolean displaysLinkToolTips) -
setLinkTextAttributes
-
setRichText
public void setRichText(boolean richText) -
setSelectedTextAttributes
-
setUsesFontPanel
public void setUsesFontPanel(boolean usesFontPanel) -
shouldChangeTextInRange
-
shouldDrawInsertionPoint
public boolean shouldDrawInsertionPoint() -
textContainer
-
textStorage
-