|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
qat.components.Notepad
Modified to fit needs of the QAT tool by webhiker. Added syntax highlighting, etc....
Nested Class Summary | |
protected static class |
Notepad.AppCloser
To shutdown when run as an application. |
Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
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 |
Field Summary | |
static java.lang.String |
actionSuffix
Suffix applied to the key used in resource file lookups for an action. |
static java.lang.String |
exitAction
|
java.io.File |
file
|
protected java.awt.FileDialog |
fileDialog
|
static java.lang.String |
imageSuffix
Suffix applied to the key used in resource file lookups for an image. |
static java.lang.String |
labelSuffix
Suffix applied to the key used in resource file lookups for a label. |
static java.lang.String |
newAction
|
static java.lang.String |
openAction
|
static java.lang.String |
saveAction
|
static java.lang.String |
saveAsAction
|
static java.lang.String |
tipSuffix
Suffix applied to the key used in resource file lookups for tooltip text. |
protected javax.swing.undo.UndoManager |
undo
UndoManager that we add edits to. |
protected javax.swing.event.UndoableEditListener |
undoHandler
Listener for the edits on the current document. |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Notepad(ParserInterface parser,
boolean syntaxHighlighting)
|
|
Notepad(java.lang.String fileName,
ParserInterface parser,
boolean syntaxHighlighting)
|
Method Summary | |
void |
closeWindow()
|
protected java.beans.PropertyChangeListener |
createActionChangeListener(javax.swing.JMenuItem b)
|
protected javax.swing.JTextPane |
createEditor()
Create an editor to represent the given document. |
protected javax.swing.JMenu |
createMenu(java.lang.String key)
Create a menu for the app. |
protected javax.swing.JMenuBar |
createMenubar()
Create the menubar for the app. |
protected javax.swing.JMenuItem |
createMenuItem(java.lang.String cmd)
This is the hook through which all menu items are created. |
protected qat.components.Notepad.StatusBar |
createStatusbar()
Create a status bar |
protected java.awt.Component |
createTool(java.lang.String key)
Hook through which every toolbar item is created. |
protected javax.swing.JButton |
createToolbarButton(java.lang.String key)
Create a button to go inside of the toolbar. |
protected javax.swing.Action |
getAction(java.lang.String cmd)
|
javax.swing.Action[] |
getActions()
Fetch the list of actions supported by this editor. |
protected javax.swing.JTextPane |
getEditor()
Fetch the editor contained in this panel |
protected java.awt.Frame |
getFrame()
Find the hosting frame, for the file-chooser dialog. |
protected javax.swing.JMenuBar |
getMenubar()
|
protected javax.swing.JMenuItem |
getMenuItem(java.lang.String cmd)
Fetch the menu item that was created for the given command. |
protected java.net.URL |
getResource(java.lang.String resourceStr)
|
protected java.lang.String |
getResourceString(java.lang.String nm)
|
protected java.awt.Container |
getToolbar()
|
protected java.lang.String[] |
tokenize(java.lang.String input)
Take the given string and chop it up into a series of strings on whitespace boundries. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.io.File file
protected java.awt.FileDialog fileDialog
protected javax.swing.event.UndoableEditListener undoHandler
protected javax.swing.undo.UndoManager undo
public static final java.lang.String imageSuffix
public static final java.lang.String labelSuffix
public static final java.lang.String actionSuffix
public static final java.lang.String tipSuffix
public static final java.lang.String openAction
public static final java.lang.String newAction
public static final java.lang.String saveAction
public static final java.lang.String saveAsAction
public static final java.lang.String exitAction
Constructor Detail |
public Notepad(java.lang.String fileName, ParserInterface parser, boolean syntaxHighlighting)
public Notepad(ParserInterface parser, boolean syntaxHighlighting)
Method Detail |
public javax.swing.Action[] getActions()
protected javax.swing.JTextPane createEditor()
protected javax.swing.JTextPane getEditor()
protected java.awt.Frame getFrame()
protected javax.swing.JMenuItem createMenuItem(java.lang.String cmd)
getMenuItem(java.lang.String)
protected javax.swing.JMenuItem getMenuItem(java.lang.String cmd)
cmd
- Name of the action.protected javax.swing.Action getAction(java.lang.String cmd)
protected java.lang.String getResourceString(java.lang.String nm)
protected java.net.URL getResource(java.lang.String resourceStr)
protected java.awt.Container getToolbar()
protected javax.swing.JMenuBar getMenubar()
protected qat.components.Notepad.StatusBar createStatusbar()
protected java.awt.Component createTool(java.lang.String key)
protected javax.swing.JButton createToolbarButton(java.lang.String key)
key
- The key in the resource file to serve as the basis
of lookups.protected java.lang.String[] tokenize(java.lang.String input)
protected javax.swing.JMenuBar createMenubar()
protected javax.swing.JMenu createMenu(java.lang.String key)
protected java.beans.PropertyChangeListener createActionChangeListener(javax.swing.JMenuItem b)
public void closeWindow()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |