|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.borland.primetime.editor.EditorManager
The EditorManager class manages all of the editors currently active in the system. It is also used to create new ones. The EditorManager is also responsible for maintaining information that is global to all of the editors (e.g. tabsize, fontsize, margins, colors). There is always only a single EditorManager in the system. It instantiates itself when it is first needed.
Field Summary | |
static java.lang.String |
backgroundColorAttribute
Name of the attribute that specifies the default background color of the managed editors. |
static java.lang.String |
blinkCaretAttribute
|
static java.lang.String |
blockIndentAttribute
Name of the attribute that specifies the block indent size for managed editors. |
static java.lang.String |
createBackupFileAttribute
|
static java.lang.Object |
EDITOR_TOPIC
This is the editor topic, used for PropertyPageFactories. |
static java.lang.String |
fontAttribute
Name of the attribute that specifies the font for managed editors. |
static java.lang.String |
fontSizeAttribute
Name of the attribute that specifies the font size for managed editors. |
static java.lang.String |
foregroundColorAttribute
Name of the attribute that specifies the default foreground color of the managed editors. |
static java.lang.String |
indentAfterBraceAttribute
Name of the attribute that specifies whether or not to add an extra level of indentation for every extra open brace found on the previous non-blank line. |
static java.lang.String |
insertModeAttribute
Name of the attribute that specifies whether or not the managed editors are in insert mode. |
static java.lang.String |
internationalInputMethods
|
static java.lang.String |
keymapAttribute
Name of the attribute that specifies the keymap for the managed editors. |
static java.lang.String |
rightMarginAttribute
Name of the attribute that specifies the right margin line of the managed editors. |
static java.lang.String |
smartEndAttribute
Name of the attribute that specifies whether or not to use SmartEnd for the EndLineAction. |
static java.lang.String |
smartHomeAttribute
Name of the attribute that specifies whether or not to use SmartHome for the BeginLineAction. |
static java.lang.String |
smartIndentAttribute
Name of the attribute that specifies whether or not to use Smart Indent when the user types the |
static java.lang.String |
smartTabsAttribute
Name of the attribute that specifies whether or not to use SmartTabs. |
static java.lang.String |
stripTrailingSpaceAttribute
|
static java.lang.String |
styleContextAttribute
Name of the attribute that specifies the StyleContext for the managed editors. |
static java.lang.String |
tabSizeAttribute
Name of the attribute that specifies the tab size for managed editors. |
static java.lang.String |
useSyntaxHighlightAttribute
Name of the attribute that specifies whether or not to use color syntax highlighting when painting the file. |
static java.lang.String |
useTabCharAttribute
Name of the attribute that specifies whether or not to use the |
static java.lang.String |
visibleMarginAttribute
Name of the attribute that specifies whether or not the right margin line of the managed editors is visible. |
Method Summary | |
static void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
static void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property. |
static EditorPane |
configureEditor(EditorPane editor,
TextEditorKit kit)
|
static EditorPane |
createEditor(TextEditorKit kit)
Create a new EditorPane. |
static javax.swing.text.Keymap |
createKeymap(java.lang.String keymapName,
javax.swing.text.JTextComponent.KeyBinding[] bindings,
javax.swing.Action[] actions)
|
static javax.swing.text.Keymap |
createSubKeymap(java.lang.String keymapName,
javax.swing.text.Keymap masterKeymap,
javax.swing.text.JTextComponent.KeyBinding[] bindings,
javax.swing.Action[] actions)
|
static int |
getBlockIndent()
|
static TextEditorKit |
getEditorKit()
|
static TextEditorKit |
getEditorKit(java.lang.Class keyClass)
Retrieve an editor kit. |
static EditorOption |
getEditorOption(java.lang.String key)
Get a particular editor option based on its key name. |
static EditorOption[] |
getEditorOptions()
|
static java.awt.Font |
getFont()
|
static javax.swing.text.Keymap |
getKeymap()
|
static javax.swing.text.Keymap |
getKeymap(java.lang.String keymapName)
Retrieve a keymap by name. |
static java.lang.String |
getKeymapName()
|
static java.lang.Object |
getProperty(java.lang.Object key)
Look up a property value using the specified key. |
static int |
getRightMargin()
|
static MasterStyleContext |
getStyleContext()
|
static int |
getTabSize()
|
static void |
initOpenTool(byte majorVersion,
byte minorVersion)
|
static boolean |
isBooleanOptionValue(java.lang.String key)
Get the value of a particular boolean editor editor option based on its key name. |
static boolean |
isIndentAfterBrace()
|
static boolean |
isInsertMode()
|
static boolean |
isSmartEnd()
|
static boolean |
isSmartHome()
|
static boolean |
isSmartIndent()
|
static boolean |
isSmartTabs()
|
static boolean |
isUseSyntaxHighlight()
|
static boolean |
isUseTabChar()
|
static boolean |
isVisibleMargin()
|
static void |
putProperty(java.lang.Object key,
java.lang.Object value)
Store a property value using the specified key. |
static void |
registerEditorKit(TextEditorKit kit)
Register an editor kit. |
static void |
registerEditorOption(EditorOption opt)
|
static void |
registerKeymap(javax.swing.text.Keymap keymap)
Register a keymap. |
static void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
static void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property. |
static void |
setBackgroundColor(java.awt.Color c)
|
static void |
setBlockIndent(int newSize)
|
static void |
setFont(java.awt.Font f)
|
static void |
setForegroundColor(java.awt.Color c)
|
static void |
setIndentAfterBrace(boolean b)
|
static void |
setInsertMode(boolean mode)
|
static void |
setKeymap(javax.swing.text.Keymap keymap)
|
static void |
setKeymapName(java.lang.String keymapName)
|
static void |
setOptionValue(BooleanEditorOption opt,
boolean value)
Set a binary editor option value. |
static void |
setRightMargin(int column)
|
static void |
setSmartEnd(boolean b)
|
static void |
setSmartHome(boolean b)
|
static void |
setSmartIndent(boolean b)
|
static void |
setSmartTabs(boolean b)
|
static void |
setStyleContext(MasterStyleContext styleContext)
|
static void |
setTabSize(int newSize)
|
static void |
setUseSyntaxHighlight(boolean b)
|
static void |
setUseTabChar(boolean b)
|
static void |
setVisibleMargin(boolean visible)
|
static void |
showStatusMessage(EditorPane editor,
java.lang.String message,
boolean appendOnly,
boolean temporary)
|
static void |
showStatusMessage(EditorPane editor,
java.lang.String message,
boolean appendOnly,
boolean temporary,
boolean paintImmediately)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String blinkCaretAttribute
public static final java.lang.String createBackupFileAttribute
public static final java.lang.String stripTrailingSpaceAttribute
public static final java.lang.String internationalInputMethods
public static final java.lang.Object EDITOR_TOPIC
public static final java.lang.String blockIndentAttribute
public static final java.lang.String tabSizeAttribute
public static final java.lang.String useTabCharAttribute
public static final java.lang.String smartIndentAttribute
public static final java.lang.String indentAfterBraceAttribute
public static final java.lang.String smartHomeAttribute
public static final java.lang.String smartEndAttribute
public static final java.lang.String smartTabsAttribute
EditorActions#InsertTabAction
public static final java.lang.String useSyntaxHighlightAttribute
public static final java.lang.String fontAttribute
public static final java.lang.String fontSizeAttribute
public static final java.lang.String insertModeAttribute
public static final java.lang.String foregroundColorAttribute
public static final java.lang.String backgroundColorAttribute
public static final java.lang.String visibleMarginAttribute
public static final java.lang.String rightMarginAttribute
public static final java.lang.String keymapAttribute
public static final java.lang.String styleContextAttribute
Method Detail |
public static void initOpenTool(byte majorVersion, byte minorVersion)
public static void registerEditorOption(EditorOption opt)
public static EditorOption[] getEditorOptions()
public static void setOptionValue(BooleanEditorOption opt, boolean value)
public static EditorOption getEditorOption(java.lang.String key)
public static boolean isBooleanOptionValue(java.lang.String key)
public static void registerEditorKit(TextEditorKit kit)
kit
- The TextEditorKit to register.getEditorKit(java.lang.Class)
public static TextEditorKit getEditorKit(java.lang.Class keyClass)
keyClass
- The class of the TextEditorKit being retrieved.registerEditorKit(com.borland.primetime.editor.TextEditorKit)
public static void registerKeymap(javax.swing.text.Keymap keymap)
kit
- The TextEditorKit to register.getEditorKit(java.lang.Class)
public static javax.swing.text.Keymap getKeymap(java.lang.String keymapName)
keymapName
- The name of the Keymap being retrieved.registerKeymap(javax.swing.text.Keymap)
public static void setBlockIndent(int newSize)
public static int getBlockIndent()
public static void setTabSize(int newSize)
public static int getTabSize()
public static void setUseTabChar(boolean b)
public static boolean isUseTabChar()
public static void setSmartIndent(boolean b)
public static boolean isSmartIndent()
public static void setIndentAfterBrace(boolean b)
public static boolean isIndentAfterBrace()
public static void setSmartHome(boolean b)
public static boolean isSmartHome()
public static void setSmartEnd(boolean b)
public static boolean isSmartEnd()
public static void setSmartTabs(boolean b)
public static boolean isSmartTabs()
public static void setUseSyntaxHighlight(boolean b)
public static boolean isUseSyntaxHighlight()
public static void setFont(java.awt.Font f)
public static java.awt.Font getFont()
public static void setInsertMode(boolean mode)
public static boolean isInsertMode()
public static void setForegroundColor(java.awt.Color c)
public static void setBackgroundColor(java.awt.Color c)
public static void setVisibleMargin(boolean visible)
public static boolean isVisibleMargin()
public static void setRightMargin(int column)
public static int getRightMargin()
public static void setKeymapName(java.lang.String keymapName)
public static java.lang.String getKeymapName()
public static void setKeymap(javax.swing.text.Keymap keymap)
public static javax.swing.text.Keymap getKeymap()
public static void setStyleContext(MasterStyleContext styleContext)
public static MasterStyleContext getStyleContext()
public static TextEditorKit getEditorKit()
public static EditorPane createEditor(TextEditorKit kit)
kit
- The TextEditorKit to use.public static EditorPane configureEditor(EditorPane editor, TextEditorKit kit)
public static javax.swing.text.Keymap createKeymap(java.lang.String keymapName, javax.swing.text.JTextComponent.KeyBinding[] bindings, javax.swing.Action[] actions)
public static javax.swing.text.Keymap createSubKeymap(java.lang.String keymapName, javax.swing.text.Keymap masterKeymap, javax.swing.text.JTextComponent.KeyBinding[] bindings, javax.swing.Action[] actions)
public static void showStatusMessage(EditorPane editor, java.lang.String message, boolean appendOnly, boolean temporary)
public static void showStatusMessage(EditorPane editor, java.lang.String message, boolean appendOnly, boolean temporary, boolean paintImmediately)
public static final java.lang.Object getProperty(java.lang.Object key)
key
- the non-null property keypublic static final void putProperty(java.lang.Object key, java.lang.Object value)
key
- the non-null keyvalue
- the valuepublic static void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be addedpublic static void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removedpublic static void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- The name of the property to listen on.listener
- The PropertyChangeListener to be addedpublic static void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- The name of the property that was listened on.listener
- The PropertyChangeListener to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |