|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.fife.ui.app.AbstractGUIApplication
org.fife.ui.app.AbstractPluggableGUIApplication
org.fife.rtext.RText
An instance of the RText text editor. RText is a programmer's
text editor with the following features:
RSyntaxTextArea, a fully-featured,
syntax highlighting text component. That's where most of the meat is.
All text areas are contained in a subclass of
AbstractMainView, which keeps the state of all of the
text areas in synch (fonts used, colors, etc.). This class (RText) contains
an instance of a subclass of AbstractMainView (which
contains all of the text areas) as well as the menu, source browser, and
status bar.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
| Nested classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
| Nested classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Nested classes inherited from class org.fife.ui.app.GUIApplication |
GUIApplication.AboutAction, GUIApplication.ExitAction, GUIApplication.HelpAction, GUIApplication.ToggleStatusBarAction, GUIApplication.ToggleToolBarAction |
| Field Summary | |
static java.lang.String |
ICON_STYLE_PROPERTY
|
static java.lang.String |
MAIN_VIEW_STYLE_PROPERTY
|
static int |
MDI_VIEW
|
OptionsDialog |
optionsDialog
|
static java.lang.String |
PROPERTY_PRINT_START_TIMES
System property that, if set, causes RText to print timing information while it is starting up. |
static int |
SPLIT_PANE_VIEW
|
static int |
TABBED_VIEW
|
static java.lang.String |
VERSION_STRING
|
| Fields inherited from class org.fife.ui.app.AbstractGUIApplication |
ABOUT_ACTION_KEY, actualContentPane, EXIT_ACTION_KEY, HELP_ACTION_KEY, mainContentPanel, STATUS_BAR_PROPERTY, STATUS_BAR_VISIBLE_PROPERTY, TOOL_BAR_PROPERTY, TOOL_BAR_VISIBLE_PROPERTY |
| Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface org.fife.ui.app.GUIApplicationConstants |
OS_LINUX, OS_MAC_OSX, OS_OTHER, OS_WINDOWS |
| Fields inherited from interface org.fife.ui.dockablewindows.DockableWindowConstants |
BOTTOM, FLOATING, LEFT, RIGHT, TOP |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
RText(java.lang.String[] filesToOpen)
Creates an instance of the RText editor. |
|
RText(java.lang.String[] filesToOpen,
RTextPreferences preferences)
Creates an instance of the RText editor. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addDockableWindow(DockableWindow wind)
|
boolean |
areTabsEmulated()
Returns whether or not tabs are emulated with spaces (i.e. |
void |
caretUpdate(javax.swing.event.CaretEvent e)
Called when cursor in text editor changes position. |
void |
convertOpenFilesSpacesToTabs()
Converts all instances of a number of spaces equal to a tab in all open documents into tabs. |
void |
convertOpenFilesTabsToSpaces()
Converts all tabs in all open documents into an equivalent number of spaces. |
protected AboutDialog |
createAboutDialog()
Returns the About dialog for this application. |
protected void |
createActions(GUIApplicationPreferences prefs)
Creates the array of actions used by this RText. |
protected javax.swing.JMenuBar |
createMenuBar(GUIApplicationPreferences prefs)
Creates and returns the menu bar used in this application. |
protected SplashScreen |
createSplashScreen()
Returns the splash screen to display while this GUI application is loading. |
protected StatusBar |
createStatusBar(GUIApplicationPreferences prefs)
Returns the status bar to be used by this application. |
protected CustomizableToolBar |
createToolBar(GUIApplicationPreferences prefs)
Creates and returns the toolbar to be used by this application. |
void |
displayException(java.awt.Dialog owner,
java.lang.Throwable t,
java.lang.String desc)
Overridden so we can syntax highlight the Java exception displayed. |
void |
displayException(java.awt.Frame owner,
java.lang.Throwable t,
java.lang.String desc)
Overridden so we can syntax highlight the Java exception displayed. |
void |
doExit()
Called when the user attempts to close the application, whether from an "Exit" menu item, closing the main application window, or any other means. |
RTextFileChooser |
getFileChooser()
Returns the file chooser being used by this RText instance. |
HelpDialog |
getHelpDialog()
Returns the Help dialog for RText. |
java.lang.String |
getHostName()
Returns the name of the local host. |
IconGroup |
getIconGroup()
Returns the icon group being used for icons for actions. |
java.util.Map |
getIconGroupMap()
Returns the icon groups available to RText. |
AbstractMainView |
getMainView()
Returns the actual main view. |
int |
getMainViewStyle()
Returns the main view style. |
java.lang.String |
getNewFileName()
Returns the filename used for newly created, empty text files. |
OptionsDialog |
getOptionsDialog()
Returns this application's Options dialog. |
protected java.lang.String |
getPreferencesClassName()
Returns the name of the preferences class for this application. |
RemoteFileChooser |
getRemoteFileChooser()
Returns the file chooser used to select remote files. |
java.lang.String |
getResourceBundleClassName()
Returns the fully-qualified class name of the resource bundle for this application. |
SearchToolBar |
getSearchToolBar()
Returns the QuickSearch toolbar. |
float |
getSearchWindowOpacity()
Returns the opacity with which to render unfocused child windows, if this option is enabled. |
int |
getSearchWindowOpacityRule()
Returns the rule used for making certain child windows translucent. |
boolean |
getShowHostName()
Returns whether the hostname should be shown in the title of the main RText window. |
SyntaxScheme |
getSyntaxScheme()
Returns the syntax highlighting color scheme being used. |
int |
getTabSize()
Returns the tab size (in spaces) currently being used. |
java.lang.String |
getTitle()
Returns the title of this window, less any "header" information (e.g. without the leading " rtext - "). |
java.lang.String |
getVersionString()
Returns the version string for this application. |
java.lang.String |
getWorkingDirectory()
Returns the "working directory;" that is, the directory that new, empty files are created in. |
protected void |
handleInstallPlugin(Plugin plugin)
Does the dirty work of actually installing a plugin. |
boolean |
isSearchToolBarVisible()
Returns whether or not the QuickSearch toolbar is visible. |
boolean |
isSearchWindowOpacityEnabled()
Returns whether search window opacity is enabled. |
boolean |
isSpellingWindowVisible()
Returns whether the spelling window is visible. |
static void |
main(java.lang.String[] args)
Program entry point. |
void |
menuItemAcceleratorWorkaround()
Thanks to Java Bug ID 5026829, JMenuItems (among other Swing components) don't update their accelerators, etc. when the properties on which they were created update them. |
void |
openFile(java.lang.String filename)
Gets called from the OSXAdapter; this method is needed by the Mac OS X JVM. |
void |
openFiles(java.lang.String[] filesToOpen)
Opens the specified files. |
void |
preDisplayInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
This is called in the GUI application's constructor. |
void |
preferences()
1.5.2004/pwy: The following two functions are called from the OSXAdapter and provide the hooks for the functions from the standard Apple application menu. |
protected void |
preMenuBarInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
This is called in the GUI application's constructor. |
protected void |
preStatusBarInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
This is called in the GUI application's constructor. |
protected void |
preToolBarInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
This is called in the GUI application's constructor. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
Called whenever a property changes for a component we are registered as listening to. |
void |
registerChildWindowListeners(java.awt.Window w)
|
void |
removeDockableWindow(DockableWindow wind)
|
void |
restoreDefaultAccelerators()
Makes all actions use default accelerators. |
void |
saveRTextPreferences()
Attempts to write this RText instance's properties to wherever the OS writes Java Preferences stuff. |
void |
setIconGroupByName(java.lang.String name)
Changes the style of icons used by rtext. |
void |
setMainViewStyle(int viewStyle)
Sets the main view style. |
void |
setMessages(java.lang.String fileFullPath,
java.lang.String statusMessage)
This method changes both the active file name in the title bar, and the status message in the status bar. |
void |
setRowColumnIndicatorVisible(boolean isVisible)
Enables or disables the row/column indicator in the status bar. |
void |
setSearchWindowOpacity(float opacity)
Sets the opacity with which to render unfocused child windows, if this option is enabled. |
void |
setSearchWindowOpacityEnabled(boolean enabled)
Toggles whether search window opacity is enabled. |
void |
setSearchWindowOpacityRule(int rule)
Toggles whether certain child windows should be made translucent. |
void |
setShowHostName(boolean show)
Sets whether the hostname should be shown in the title of the main RText window. |
void |
setSpellingWindowVisible(boolean visible)
Toggles whether the spelling error window is visible. |
void |
setStatusBarReadOnlyIndicatorEnabled(boolean enabled)
Sets whether the read-only indicator in the status bar is enabled. |
void |
setSyntaxScheme(SyntaxScheme colorScheme)
Sets the syntax highlighting color scheme being used. |
void |
setTabsEmulated(boolean areEmulated)
Changes whether or not tabs should be emulated with spaces (i.e., soft tabs). |
void |
setTabSize(int newSize)
Sets the tab size to be used on all documents. |
void |
setTitle(java.lang.String title)
Sets the title of the application window. |
void |
setWorkingDirectory(java.lang.String directory)
Sets the "working directory;" that is, the directory in which new, empty files are placed. |
void |
updateLookAndFeel(javax.swing.LookAndFeel lnf)
Updates the look and feel for all components and windows in this RText instance. |
| Methods inherited from class org.fife.ui.app.AbstractPluggableGUIApplication |
addPlugin, getPlugins, getSplitPaneDividerLocation, isPluginLoadingComplete, removePlugin, setContentPane, setSplitPaneDividerLocation |
| Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setUndecorated |
| Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.fife.ui.app.GUIApplication |
getIconImage, getJMenuBar, pack, setJMenuBar |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
| Field Detail |
public static final int TABBED_VIEW
public static final int SPLIT_PANE_VIEW
public static final int MDI_VIEW
public static final java.lang.String ICON_STYLE_PROPERTY
public static final java.lang.String MAIN_VIEW_STYLE_PROPERTY
public OptionsDialog optionsDialog
public static final java.lang.String PROPERTY_PRINT_START_TIMES
public static final java.lang.String VERSION_STRING
| Constructor Detail |
public RText(java.lang.String[] filesToOpen)
RText editor.
filesToOpen - Array of java.lang.Strings containing
the files we want to open initially. This can be
null if no files are to be opened.
public RText(java.lang.String[] filesToOpen,
RTextPreferences preferences)
RText editor.
filesToOpen - Array of java.lang.Strings containing
the files we want to open initially. This can be
null if no files are to be opened.preferences - The preferences with which to initialize this RText.| Method Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void addDockableWindow(DockableWindow wind)
public boolean areTabsEmulated()
mainView.areTabsEmulated.
true if tabs are emulated with spaces;
false if they aren't.public void caretUpdate(javax.swing.event.CaretEvent e)
caretUpdate in interface javax.swing.event.CaretListenere - The caret event.public void convertOpenFilesSpacesToTabs()
convertOpenFilesTabsToSpaces()public void convertOpenFilesTabsToSpaces()
convertOpenFilesSpacesToTabs()protected AboutDialog createAboutDialog()
createAboutDialog in class AbstractGUIApplicationAbstractGUIApplication.getAboutDialog()protected void createActions(GUIApplicationPreferences prefs)
createActions in class AbstractGUIApplicationprefs - The RText properties for this RText instance.AbstractGUIApplication.addAction(java.lang.String, javax.swing.Action),
AbstractGUIApplication.getAction(java.lang.String)protected javax.swing.JMenuBar createMenuBar(GUIApplicationPreferences prefs)
createMenuBar in class AbstractGUIApplicationprefs - This GUI application's preferences.
protected SplashScreen createSplashScreen()
createSplashScreen in class AbstractGUIApplicationnull is returned, no
splash screen is displayed.protected StatusBar createStatusBar(GUIApplicationPreferences prefs)
createStatusBar in class AbstractGUIApplicationprefs - This GUI application's preferences.
protected CustomizableToolBar createToolBar(GUIApplicationPreferences prefs)
createToolBar in class AbstractGUIApplicationprefs - This GUI application's preferences.
public void displayException(java.awt.Dialog owner,
java.lang.Throwable t,
java.lang.String desc)
displayException in class AbstractGUIApplicationowner - The dialog that threw the Exception.t - The exception/throwable that occurred.desc - A short description of the error. This can be
null.
public void displayException(java.awt.Frame owner,
java.lang.Throwable t,
java.lang.String desc)
displayException in class AbstractGUIApplicationowner - The child frame that threw the Exception.t - The exception/throwable that occurred.desc - A short description of the error. This can be
null.public void doExit()
doExit in interface GUIApplicationdoExit in class AbstractGUIApplicationpublic java.lang.String getNewFileName()
public OptionsDialog getOptionsDialog()
getOptionsDialog in class AbstractGUIApplicationnull if this application
doesn't have one. The default implementation returns
null.public RTextFileChooser getFileChooser()
getFileChooser in interface FileChooserOwnergetRemoteFileChooser()public HelpDialog getHelpDialog()
getHelpDialog in interface GUIApplicationgetHelpDialog in class AbstractGUIApplicationGUIApplication.getHelpDialog()public java.lang.String getHostName()
public IconGroup getIconGroup()
public java.util.Map getIconGroupMap()
public AbstractMainView getMainView()
getMainViewStyle(),
setMainViewStyle(int)public int getMainViewStyle()
TABBED_VIEW,
SPLIT_PANE_VIEW or MDI_VIEW.setMainViewStyle(int),
getMainView()protected java.lang.String getPreferencesClassName()
GUIApplicationPreferences.
getPreferencesClassName in class AbstractGUIApplicationnull if this GUI application
does not save preferences.public RemoteFileChooser getRemoteFileChooser()
getFileChooser()public java.lang.String getResourceBundleClassName()
AbstractGUIApplication.getResourceBundle() to locate
the class.
getResourceBundleClassName in class AbstractGUIApplicationAbstractGUIApplication.getResourceBundle()public SearchToolBar getSearchToolBar()
isSearchToolBarVisible()public float getSearchWindowOpacity()
setSearchWindowOpacity(float)public int getSearchWindowOpacityRule()
setSearchWindowOpacityRule(int),
getSearchWindowOpacity()public boolean getShowHostName()
setShowHostName(boolean)public SyntaxScheme getSyntaxScheme()
public int getTabSize()
setTabSize(int)public java.lang.String getTitle()
rtext - ").
setTitle(String)public java.lang.String getVersionString()
getVersionString in interface GUIApplicationgetVersionString in class AbstractGUIApplicationpublic java.lang.String getWorkingDirectory()
setWorkingDirectory(java.lang.String)protected void handleInstallPlugin(Plugin plugin)
handleInstallPlugin in class AbstractPluggableGUIApplicationplugin - The plugin to install.public boolean isSearchToolBarVisible()
getSearchToolBar().isVisible()
because the latter will allocate the toolbar if it isn't already
created, but this method won't.
getSearchToolBar()public boolean isSearchWindowOpacityEnabled()
setSearchWindowOpacityEnabled(boolean)public boolean isSpellingWindowVisible()
setSpellingWindowVisible(boolean)public void menuItemAcceleratorWorkaround()
public void openFiles(java.lang.String[] filesToOpen)
filesToOpen - The files to open. This can be null.openFile(java.lang.String)
public void preDisplayInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
preDisplayInit in class AbstractPluggableGUIApplicationprefs - The preferences of the application.splashScreen - The "splash screen" for this application. This
value may be null.
protected void preMenuBarInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
preMenuBarInit in class AbstractGUIApplicationprefs - The preferences of the application.splashScreen - The "splash screen" for this application. This
value may be null.
protected void preStatusBarInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
preStatusBarInit in class AbstractGUIApplicationprefs - The preferences of the application.splashScreen - The "splash screen" for this application. This
value may be null.
protected void preToolBarInit(GUIApplicationPreferences prefs,
SplashScreen splashScreen)
preToolBarInit in class AbstractGUIApplicationprefs - The preferences of the application.splashScreen - The "splash screen" for this application. This
value may be null.public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenerpublic void registerChildWindowListeners(java.awt.Window w)
public void removeDockableWindow(DockableWindow wind)
public void restoreDefaultAccelerators()
public void saveRTextPreferences()
public void setIconGroupByName(java.lang.String name)
rtext.
This method fires a property change of type
ICON_STYLE_PROPERTY.
name - The name of the icon group to use. If this name is not
recognized, a default icon set will be used.public void setMainViewStyle(int viewStyle)
MAIN_VIEW_STYLE_PROPERTY.
viewStyle - One of TABBED_VIEW, SPLIT_PANE_VIEW
or MDI_VIEW. If this value is invalid, nothing happens.getMainViewStyle()
public void setMessages(java.lang.String fileFullPath,
java.lang.String statusMessage)
fileFullPath - Full path to the text file currently being edited
(to be displayed in the window's title bar). If
null, the currently displayed message is not
changed.statusMessage - The message to be displayed in the status bar.
If null, the status bar message is not changed.public void setRowColumnIndicatorVisible(boolean isVisible)
isVisible - Whether or not the row/column indicator should be
visible.public void setShowHostName(boolean show)
show - Whether the hostname should be shown.getShowHostName()public void setStatusBarReadOnlyIndicatorEnabled(boolean enabled)
enabled - Whether or not the read-only indicator is enabled.public void setSyntaxScheme(SyntaxScheme colorScheme)
colorScheme - The new color scheme to use. If
null, nothing changes.public void setTabsEmulated(boolean areEmulated)
mainView.setTabsEmulated.
areEmulated - Whether or not tabs should be emulated with spaces.public void setTabSize(int newSize)
newSize - The tab size to use.getTabSize()public void setTitle(java.lang.String title)
title - The new title.getTitle()public void setSearchWindowOpacity(float opacity)
opacity - The opacity. This should be between 0 and
1.getSearchWindowOpacity(),
setSearchWindowOpacityRule(int)public void setSearchWindowOpacityEnabled(boolean enabled)
enabled - Whether search window opacity should be enabled.isSearchWindowOpacityEnabled()public void setSearchWindowOpacityRule(int rule)
rule - The new opacity rule.getSearchWindowOpacityRule(),
setSearchWindowOpacity(float)public void setSpellingWindowVisible(boolean visible)
visible - Whether the spelling error window is visible.isSpellingWindowVisible()public void setWorkingDirectory(java.lang.String directory)
directory - The new working directory. If this directory does
not exist, the Java property "user.dir" is used.getWorkingDirectory()public void updateLookAndFeel(javax.swing.LookAndFeel lnf)
RText instance. This method assumes that
UIManager.setLookAndFeel(lnf) has already been called.
lnf - The new look and feel.public void preferences()
preferences in interface com.apple.osxadapter.NativeMacApppreferences in class AbstractGUIApplicationpublic void openFile(java.lang.String filename)
AbstractGUIApplication
openFile in interface com.apple.osxadapter.NativeMacAppopenFile in class AbstractGUIApplicationpublic static void main(java.lang.String[] args)
args - Command line arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||