org.rococoa.cocoa.appkit.protocols
Interface NSTextInput

All Known Implementing Classes:
NSInputManager, NSTextView, QTMovieView

public interface NSTextInput

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.


Nested Class Summary
static class NSTextInput._class_
           
static interface NSTextInput._static_
           
 
Field Summary
static NSTextInput._class_ _CLASS_
           
 
Method Summary
 int conversationIdentifier()
           
 void doCommandBySelector(org.rococoa.Selector aSelector)
           
 boolean hasMarkedText()
           
 void insertText(org.rococoa.ID aString)
          Original signature : -(void)insertText:(id)
instead of keyDown: aString can be NSString or NSAttributedString
 NSObject markedRange()
          This method returns the range for marked region.
 NSObject selectedRange()
          This method returns the range for selected region.
 void unmarkText()
           
 NSArray validAttributesForMarkedText()
          This method is the key to attribute extension.
 

Field Detail

_CLASS_

static final NSTextInput._class_ _CLASS_
Method Detail

insertText

void insertText(org.rococoa.ID aString)
Original signature : -(void)insertText:(id)
instead of keyDown: aString can be NSString or NSAttributedString


doCommandBySelector

void doCommandBySelector(org.rococoa.Selector aSelector)

unmarkText

void unmarkText()

hasMarkedText

boolean hasMarkedText()

conversationIdentifier

int conversationIdentifier()

markedRange

NSObject markedRange()
This method returns the range for marked region. If hasMarkedText == false, it'll return NSNotFound location & 0 length range.
Original signature : -(id)markedRange


selectedRange

NSObject selectedRange()
This method returns the range for selected region. Just like markedRange method, its location field contains char index from the text beginning.
Original signature : -(id)selectedRange


validAttributesForMarkedText

NSArray validAttributesForMarkedText()
This method is the key to attribute extension. We could add new attributes through this method. NSInputServer examines the return value of this method & constructs appropriate attributed string.
Original signature : -(NSArray*)validAttributesForMarkedText