|
|||||||||
| 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.rosuda.JGR.toolkit.iFrame
org.rosuda.JGR.toolkit.Editor
public class Editor
Editor - simple implementation of an editor with syntaxhighlighting.
| Nested Class Summary | |
|---|---|
protected class |
Editor.CaretListenerLabel
|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
JMenu |
recentMenu
Menuitem for the recent-list |
static RecentList |
recentOpen
Recent documents which where opened the last times with the editor. |
| Fields inherited from class org.rosuda.JGR.toolkit.iFrame |
|---|
clsAbout, clsEditor, clsHelp, clsJavaGD, clsMain, clsObjBrowser, clsPackageUtil, clsPlot, clsPrefs, clsSplash, clsTable, clsUser, MYEntry |
| 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 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 | |
|---|---|
Editor()
|
|
Editor(String file)
Create a new editor with supplied file opening immediatly. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
actionPerformed: handle action event: menus and buttons |
boolean |
exit()
Exit editor but ask the user if he wants to save current content. |
void |
keyPressed(KeyEvent ke)
keyPressed: handle key event: send command to console. |
void |
keyReleased(KeyEvent ke)
keyReleased: handle key event. |
void |
keyTyped(KeyEvent ke)
keyTyped: handle key event. |
void |
loadFile()
Load file into textarea. |
void |
open()
Open a file and load it into editor. |
void |
print()
Print current content. |
boolean |
saveFile()
Save current content to file. |
boolean |
saveFileAs()
Save current content to a choosen filename. |
void |
setText(StringBuffer sb)
Set text into area, while doing this show spinwheel. |
void |
setTitle(String title)
Set title of the editor, which will be the shortend filename. |
| Methods inherited from class org.rosuda.JGR.toolkit.iFrame |
|---|
cursorDefault, cursorWait, finalize, getMYEntry, initPlacement, setMinimumSize, setWorking, show |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static RecentList recentOpen
public JMenu recentMenu
| Constructor Detail |
|---|
public Editor()
public Editor(String file)
file - file to open| Method Detail |
|---|
public void setTitle(String title)
setTitle in class Framepublic boolean exit()
public void open()
public void loadFile()
public void setText(StringBuffer sb)
sb - public void print()
public boolean saveFile()
public boolean saveFileAs()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void keyTyped(KeyEvent ke)
keyTyped in interface KeyListenerpublic void keyPressed(KeyEvent ke)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent ke)
keyReleased in interface KeyListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||