All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.app.Text

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.app.Responder
                   |
                   +----com.apple.alpha.app.View
                           |
                           +----com.apple.alpha.app.Text

public class Text
extends View
implements ChangeSpelling, IgnoreMisspelledWords
This class wraps the Objective-C class NSText.


Variable Index

 o CenterTextAlignment
 o JustifiedTextAlignment
 o LeftTextAlignment
 o NaturalTextAlignment
 o RightTextAlignment
 o TextDidBeginEditingNotification
 o TextDidChangeNotification
 o TextDidEndEditingNotification

Constructor Index

 o Text()
This default constructor is equivalent to Objective-C's [[NSText alloc] init].
 o Text(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o Text(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.
 o Text(Rect)
This constructor has the same effect as calling - initWithFrame: on a newly allocated object.

Method Index

 o alignCenter(Object)
A wrapper for the - alignCenter: Objective-C instance method.
 o alignLeft(Object)
A wrapper for the - alignLeft: Objective-C instance method.
 o alignment()
A wrapper for the - alignment Objective-C instance method.
 o alignRight(Object)
A wrapper for the - alignRight: Objective-C instance method.
 o backgroundColor()
A wrapper for the - backgroundColor Objective-C instance method.
 o changeFont(Object)
A wrapper for the - changeFont: Objective-C instance method.
 o changeSpelling(Object)
A wrapper for the - changeSpelling: Objective-C instance method defined by the ChangeSpelling interface (known as the NSChangeSpelling Objective-C protocol).
 o checkSpelling(Object)
A wrapper for the - checkSpelling: Objective-C instance method.
 o copy(Object)
A wrapper for the - copy: Objective-C instance method.
 o copyFont(Object)
A wrapper for the - copyFont: Objective-C instance method.
 o copyRuler(Object)
A wrapper for the - copyRuler: Objective-C instance method.
 o cut(Object)
A wrapper for the - cut: Objective-C instance method.
 o delegate()
A wrapper for the - delegate Objective-C instance method.
 o delete(Object)
A wrapper for the - delete: Objective-C instance method.
 o drawsBackground()
A wrapper for the - drawsBackground Objective-C instance method.
 o font()
A wrapper for the - font Objective-C instance method.
 o ignoreSpelling(Object)
A wrapper for the - ignoreSpelling: Objective-C instance method defined by the IgnoreMisspelledWords interface (known as the NSIgnoreMisspelledWords Objective-C protocol).
 o importsGraphics()
A wrapper for the - importsGraphics Objective-C instance method.
 o isEditable()
A wrapper for the - isEditable Objective-C instance method.
 o isFieldEditor()
A wrapper for the - isFieldEditor Objective-C instance method.
 o isHorizontallyResizable()
A wrapper for the - isHorizontallyResizable Objective-C instance method.
 o isRichText()
A wrapper for the - isRichText Objective-C instance method.
 o isRulerVisible()
A wrapper for the - isRulerVisible Objective-C instance method.
 o isSelectable()
A wrapper for the - isSelectable Objective-C instance method.
 o isVerticallyResizable()
A wrapper for the - isVerticallyResizable Objective-C instance method.
 o maxSize()
A wrapper for the - maxSize Objective-C instance method.
 o minSize()
A wrapper for the - minSize Objective-C instance method.
 o paste(Object)
A wrapper for the - paste: Objective-C instance method.
 o pasteFont(Object)
A wrapper for the - pasteFont: Objective-C instance method.
 o pasteRuler(Object)
A wrapper for the - pasteRuler: Objective-C instance method.
 o readRTFDFromFile(String)
A wrapper for the - readRTFDFromFile: Objective-C instance method.
 o replaceCharactersInRangeWithRTF(Range, Data)
A wrapper for the - replaceCharactersInRange:withRTF: Objective-C instance method.
 o replaceCharactersInRangeWithRTFD(Range, Data)
A wrapper for the - replaceCharactersInRange:withRTFD: Objective-C instance method.
 o replaceCharactersInRangeWithString(Range, String)
A wrapper for the - replaceCharactersInRange:withString: Objective-C instance method.
 o RTFDFromRange(Range)
A wrapper for the - RTFDFromRange: Objective-C instance method.
 o RTFFromRange(Range)
A wrapper for the - RTFFromRange: Objective-C instance method.
 o scrollRangeToVisible(Range)
A wrapper for the - scrollRangeToVisible: Objective-C instance method.
 o selectAll(Object)
A wrapper for the - selectAll: Objective-C instance method.
 o selectedRange()
A wrapper for the - selectedRange Objective-C instance method.
 o setAlignment(int)
A wrapper for the - setAlignment: Objective-C instance method.
 o setBackgroundColor(Color)
A wrapper for the - setBackgroundColor: Objective-C instance method.
 o setDelegate(Object)
A wrapper for the - setDelegate: Objective-C instance method.
 o setDrawsBackground(boolean)
A wrapper for the - setDrawsBackground: Objective-C instance method.
 o setEditable(boolean)
A wrapper for the - setEditable: Objective-C instance method.
 o setFieldEditor(boolean)
A wrapper for the - setFieldEditor: Objective-C instance method.
 o setFont(Font)
A wrapper for the - setFont: Objective-C instance method.
 o setFontInRange(Font, Range)
A wrapper for the - setFont:range: Objective-C instance method.
 o setHorizontallyResizable(boolean)
A wrapper for the - setHorizontallyResizable: Objective-C instance method.
 o setImportsGraphics(boolean)
A wrapper for the - setImportsGraphics: Objective-C instance method.
 o setMaxSize(Size)
A wrapper for the - setMaxSize: Objective-C instance method.
 o setMinSize(Size)
A wrapper for the - setMinSize: Objective-C instance method.
 o setRichText(boolean)
A wrapper for the - setRichText: Objective-C instance method.
 o setSelectable(boolean)
A wrapper for the - setSelectable: Objective-C instance method.
 o setSelectedRange(Range)
A wrapper for the - setSelectedRange: Objective-C instance method.
 o setString(String)
A wrapper for the - setString: Objective-C instance method.
 o setTextColor(Color)
A wrapper for the - setTextColor: Objective-C instance method.
 o setTextColorInRange(Color, Range)
A wrapper for the - setTextColor:range: Objective-C instance method.
 o setUsesFontPanel(boolean)
A wrapper for the - setUsesFontPanel: Objective-C instance method.
 o setVerticallyResizable(boolean)
A wrapper for the - setVerticallyResizable: Objective-C instance method.
 o showGuessPanel(Object)
A wrapper for the - showGuessPanel: Objective-C instance method.
 o sizeToFit()
A wrapper for the - sizeToFit Objective-C instance method.
 o string()
A wrapper for the - string Objective-C instance method.
 o subscript(Object)
A wrapper for the - subscript: Objective-C instance method.
 o superscript(Object)
A wrapper for the - superscript: Objective-C instance method.
 o textColor()
A wrapper for the - textColor Objective-C instance method.
 o toggleRuler(Object)
A wrapper for the - toggleRuler: Objective-C instance method.
 o underline(Object)
A wrapper for the - underline: Objective-C instance method.
 o unscript(Object)
A wrapper for the - unscript: Objective-C instance method.
 o usesFontPanel()
A wrapper for the - usesFontPanel Objective-C instance method.
 o writeRTFDToFile(String, boolean)
A wrapper for the - writeRTFDToFile:atomically: Objective-C instance method.

Variables

 o TextDidBeginEditingNotification
 public static final String TextDidBeginEditingNotification
 o TextDidEndEditingNotification
 public static final String TextDidEndEditingNotification
 o TextDidChangeNotification
 public static final String TextDidChangeNotification
 o LeftTextAlignment
 public static final int LeftTextAlignment
 o RightTextAlignment
 public static final int RightTextAlignment
 o CenterTextAlignment
 public static final int CenterTextAlignment
 o JustifiedTextAlignment
 public static final int JustifiedTextAlignment
 o NaturalTextAlignment
 public static final int NaturalTextAlignment

Constructors

 o Text
 protected Text(boolean shouldAllocate,
                int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o Text
 public Text()
This default constructor is equivalent to Objective-C's [[NSText alloc] init].

 o Text
 public Text(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

 o Text
 public Text(Rect frameRect)
This constructor has the same effect as calling - initWithFrame: on a newly allocated object.

Methods

 o string
 public native String string()
A wrapper for the - string Objective-C instance method.

 o setString
 public native void setString(String string)
A wrapper for the - setString: Objective-C instance method.

 o replaceCharactersInRangeWithString
 public native void replaceCharactersInRangeWithString(Range range,
                                                       String aString)
A wrapper for the - replaceCharactersInRange:withString: Objective-C instance method.

 o replaceCharactersInRangeWithRTF
 public native void replaceCharactersInRangeWithRTF(Range range,
                                                    Data rtfData)
A wrapper for the - replaceCharactersInRange:withRTF: Objective-C instance method.

 o replaceCharactersInRangeWithRTFD
 public native void replaceCharactersInRangeWithRTFD(Range range,
                                                     Data rtfdData)
A wrapper for the - replaceCharactersInRange:withRTFD: Objective-C instance method.

 o RTFFromRange
 public native Data RTFFromRange(Range range)
A wrapper for the - RTFFromRange: Objective-C instance method.

 o RTFDFromRange
 public native Data RTFDFromRange(Range range)
A wrapper for the - RTFDFromRange: Objective-C instance method.

 o writeRTFDToFile
 public native boolean writeRTFDToFile(String path,
                                       boolean flag)
A wrapper for the - writeRTFDToFile:atomically: Objective-C instance method.

 o readRTFDFromFile
 public native boolean readRTFDFromFile(String path)
A wrapper for the - readRTFDFromFile: Objective-C instance method.

 o delegate
 public native Object delegate()
A wrapper for the - delegate Objective-C instance method.

 o setDelegate
 public native void setDelegate(Object anObject)
A wrapper for the - setDelegate: Objective-C instance method.

 o isEditable
 public native boolean isEditable()
A wrapper for the - isEditable Objective-C instance method.

 o setEditable
 public native void setEditable(boolean flag)
A wrapper for the - setEditable: Objective-C instance method.

 o isSelectable
 public native boolean isSelectable()
A wrapper for the - isSelectable Objective-C instance method.

 o setSelectable
 public native void setSelectable(boolean flag)
A wrapper for the - setSelectable: Objective-C instance method.

 o isRichText
 public native boolean isRichText()
A wrapper for the - isRichText Objective-C instance method.

 o setRichText
 public native void setRichText(boolean flag)
A wrapper for the - setRichText: Objective-C instance method.

 o importsGraphics
 public native boolean importsGraphics()
A wrapper for the - importsGraphics Objective-C instance method.

 o setImportsGraphics
 public native void setImportsGraphics(boolean flag)
A wrapper for the - setImportsGraphics: Objective-C instance method.

 o setBackgroundColor
 public native void setBackgroundColor(Color color)
A wrapper for the - setBackgroundColor: Objective-C instance method.

 o backgroundColor
 public native Color backgroundColor()
A wrapper for the - backgroundColor Objective-C instance method.

 o setDrawsBackground
 public native void setDrawsBackground(boolean flag)
A wrapper for the - setDrawsBackground: Objective-C instance method.

 o drawsBackground
 public native boolean drawsBackground()
A wrapper for the - drawsBackground Objective-C instance method.

 o setFont
 public native void setFont(Font obj)
A wrapper for the - setFont: Objective-C instance method.

 o font
 public native Font font()
A wrapper for the - font Objective-C instance method.

 o setTextColor
 public native void setTextColor(Color color)
A wrapper for the - setTextColor: Objective-C instance method.

 o textColor
 public native Color textColor()
A wrapper for the - textColor Objective-C instance method.

 o alignment
 public native int alignment()
A wrapper for the - alignment Objective-C instance method.

 o setAlignment
 public native void setAlignment(int mode)
A wrapper for the - setAlignment: Objective-C instance method.

 o setFieldEditor
 public native void setFieldEditor(boolean flag)
A wrapper for the - setFieldEditor: Objective-C instance method.

 o isFieldEditor
 public native boolean isFieldEditor()
A wrapper for the - isFieldEditor Objective-C instance method.

 o setTextColorInRange
 public native void setTextColorInRange(Color color,
                                        Range range)
A wrapper for the - setTextColor:range: Objective-C instance method.

 o setFontInRange
 public native void setFontInRange(Font font,
                                   Range range)
A wrapper for the - setFont:range: Objective-C instance method.

 o usesFontPanel
 public native boolean usesFontPanel()
A wrapper for the - usesFontPanel Objective-C instance method.

 o setUsesFontPanel
 public native void setUsesFontPanel(boolean flag)
A wrapper for the - setUsesFontPanel: Objective-C instance method.

 o maxSize
 public native Size maxSize()
A wrapper for the - maxSize Objective-C instance method.

 o setMaxSize
 public native void setMaxSize(Size newMaxSize)
A wrapper for the - setMaxSize: Objective-C instance method.

 o minSize
 public native Size minSize()
A wrapper for the - minSize Objective-C instance method.

 o setMinSize
 public native void setMinSize(Size newMinSize)
A wrapper for the - setMinSize: Objective-C instance method.

 o isHorizontallyResizable
 public native boolean isHorizontallyResizable()
A wrapper for the - isHorizontallyResizable Objective-C instance method.

 o setHorizontallyResizable
 public native void setHorizontallyResizable(boolean flag)
A wrapper for the - setHorizontallyResizable: Objective-C instance method.

 o isVerticallyResizable
 public native boolean isVerticallyResizable()
A wrapper for the - isVerticallyResizable Objective-C instance method.

 o setVerticallyResizable
 public native void setVerticallyResizable(boolean flag)
A wrapper for the - setVerticallyResizable: Objective-C instance method.

 o sizeToFit
 public native void sizeToFit()
A wrapper for the - sizeToFit Objective-C instance method.

 o copy
 public native void copy(Object sender)
A wrapper for the - copy: Objective-C instance method.

 o copyFont
 public native void copyFont(Object sender)
A wrapper for the - copyFont: Objective-C instance method.

 o copyRuler
 public native void copyRuler(Object sender)
A wrapper for the - copyRuler: Objective-C instance method.

 o cut
 public native void cut(Object sender)
A wrapper for the - cut: Objective-C instance method.

 o delete
 public native void delete(Object sender)
A wrapper for the - delete: Objective-C instance method.

 o paste
 public native void paste(Object sender)
A wrapper for the - paste: Objective-C instance method.

 o pasteFont
 public native void pasteFont(Object sender)
A wrapper for the - pasteFont: Objective-C instance method.

 o pasteRuler
 public native void pasteRuler(Object sender)
A wrapper for the - pasteRuler: Objective-C instance method.

 o selectAll
 public native void selectAll(Object sender)
A wrapper for the - selectAll: Objective-C instance method.

Overrides:
selectAll in class Responder
 o changeFont
 public native void changeFont(Object sender)
A wrapper for the - changeFont: Objective-C instance method.

 o alignLeft
 public native void alignLeft(Object sender)
A wrapper for the - alignLeft: Objective-C instance method.

 o alignRight
 public native void alignRight(Object sender)
A wrapper for the - alignRight: Objective-C instance method.

 o alignCenter
 public native void alignCenter(Object sender)
A wrapper for the - alignCenter: Objective-C instance method.

 o subscript
 public native void subscript(Object sender)
A wrapper for the - subscript: Objective-C instance method.

 o superscript
 public native void superscript(Object sender)
A wrapper for the - superscript: Objective-C instance method.

 o underline
 public native void underline(Object sender)
A wrapper for the - underline: Objective-C instance method.

 o unscript
 public native void unscript(Object sender)
A wrapper for the - unscript: Objective-C instance method.

 o showGuessPanel
 public native void showGuessPanel(Object sender)
A wrapper for the - showGuessPanel: Objective-C instance method.

 o checkSpelling
 public native void checkSpelling(Object sender)
A wrapper for the - checkSpelling: Objective-C instance method.

 o toggleRuler
 public native void toggleRuler(Object sender)
A wrapper for the - toggleRuler: Objective-C instance method.

 o isRulerVisible
 public native boolean isRulerVisible()
A wrapper for the - isRulerVisible Objective-C instance method.

 o selectedRange
 public native Range selectedRange()
A wrapper for the - selectedRange Objective-C instance method.

 o setSelectedRange
 public native void setSelectedRange(Range range)
A wrapper for the - setSelectedRange: Objective-C instance method.

 o scrollRangeToVisible
 public native void scrollRangeToVisible(Range range)
A wrapper for the - scrollRangeToVisible: Objective-C instance method.

 o changeSpelling
 public native void changeSpelling(Object sender)
A wrapper for the - changeSpelling: Objective-C instance method defined by the ChangeSpelling interface (known as the NSChangeSpelling Objective-C protocol).

 o ignoreSpelling
 public native void ignoreSpelling(Object sender)
A wrapper for the - ignoreSpelling: Objective-C instance method defined by the IgnoreMisspelledWords interface (known as the NSIgnoreMisspelledWords Objective-C protocol).


All Packages  Class Hierarchy  This Package  Previous  Next  Index