|
||||||||||
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
org.merlotxml.merlot.XMLEditorDocUI
XML Document UI L&F code
Nested Class Summary | |
class |
XMLEditorDocUI.EditorNodeListener
Description of the Class |
protected class |
XMLEditorDocUI.EditTableColumnsAction
Description of the Class |
protected class |
XMLEditorDocUI.NodeAddActionListener
Description of the Class |
protected class |
XMLEditorDocUI.NodeAddSpecialCommentActionListener
Description of the Class |
protected class |
XMLEditorDocUI.NodeAddSpecialPIActionListener
Description of the Class |
protected class |
XMLEditorDocUI.ShowNodeActionListener
Description of the Class |
class |
XMLEditorDocUI.StatusCleaner
Description of the Class |
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 | |
protected javax.swing.JPanel |
_currentEditPanel
The current edit panel which is displayed in the right-hand pane |
protected MerlotDOMNode |
_currentNode
The current node this editor is editing in the right-hand pane |
protected XMLEditorDoc |
_doc
Description of the Field |
protected javax.swing.JPanel |
_editPanel
The panel which contains the node editor |
protected javax.swing.JMenuBar |
_menuBar
Description of the Field |
protected javax.swing.JSplitPane |
_splitPane
Description of the Field |
protected javax.swing.JLabel |
_status1
Description of the Field |
protected javax.swing.JLabel |
_status2
Description of the Field |
protected javax.swing.JLabel |
_status3
Description of the Field |
protected javax.swing.JPanel |
_statusPanel
Description of the Field |
protected com.sun.javax.swing.JTreeTable |
_table
Description of the Field |
protected javax.swing.JPanel |
_treePanel
Description of the Field |
protected javax.swing.JMenu |
_treePasteMenu
Description of the Field |
protected DOMTreeTableAdapter |
_XMLmodel
Description of the Field |
protected static long |
STATUS_DISPLAY_TIME
Description of the Field |
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 org.merlotxml.merlot.MerlotConstants |
ACTION_MENU_ACCELERATOR, ACTION_MENU_ICON, ACTION_NAME, ACTION_SHORT_DESCRIPTION, ACTION_SMALL_ICON, AFTER, BEFORE, ERR, INTO, UI, XML |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
XMLEditorDocUI(XMLEditorDoc doc)
Constructor for the XMLEditorDocUI object |
Method Summary | |
protected void |
addItemsToMenu(java.util.List menuItems,
javax.swing.MenuElement menu)
Adds a feature to the ItemsToMenu attribute of the XMLEditorDocUI object |
protected javax.swing.JMenu |
createTreePasteMenu()
Description of the Method |
void |
deleteNode(MerlotDOMNode node)
Description of the Method |
protected void |
doPopup(java.awt.event.MouseEvent e)
Description of the Method |
void |
editNode(MerlotDOMNode node,
boolean brandSpankinNew)
Displays a node for editing in the workspace panel. |
void |
editText(MerlotDOMNode node)
Description of the Method |
protected void |
enablePasteItems(MerlotDOMNode node)
This enables or disables the proper paste items in the paste menu based on the node parameter as the parent or sibling and a peek at the Transferable in the clipboard. |
MerlotDOMNode |
getCurrentNode()
Gets the currentNode attribute of the XMLEditorDocUI object |
protected javax.swing.JMenuBar |
getMenuBar()
Gets the menuBar attribute of the XMLEditorDocUI object |
protected javax.swing.JMenu |
getNodeAddMenu(MerlotDOMNode node,
int where)
Creates the add-> menu popup for right-click actions on a particular node. |
protected javax.swing.JMenu |
getNodeAddSpecialMenu(MerlotDOMNode node,
int context)
Gets the nodeAddSpecialMenu attribute of the XMLEditorDocUI object |
MerlotDOMNode |
getNodeForPath(javax.swing.tree.TreePath tp)
Gets the nodeForPath attribute of the XMLEditorDocUI object |
MerlotDOMNode |
getNodeForRow(int row)
Gets the nodeForRow attribute of the XMLEditorDocUI object |
java.util.Vector |
getNodeHistory()
Gets the nodeHistory attribute of the XMLEditorDocUI object |
protected java.util.List |
getNodeMenuItems(MerlotDOMNode node)
Gets the nodeMenuItems attribute of the XMLEditorDocUI object |
protected java.util.List |
getNodePluginMenuItems(MerlotDOMNode node)
Gets the nodePluginMenuItems attribute of the XMLEditorDocUI object |
protected javax.swing.JPopupMenu |
getNodePopupMenu(MerlotDOMNode node)
Gets the nodePopupMenu attribute of the XMLEditorDocUI object |
MerlotDOMNode |
getSelectedNode()
Gets the Node object that is the current selection in the document tree. |
MerlotDOMNode[] |
getSelectedNodes()
Gets the selectedNodes attribute of the XMLEditorDocUI object |
int |
getSelectedRow()
Gets the selectedRow attribute of the XMLEditorDocUI object |
java.awt.datatransfer.Transferable |
getTransferable()
gets the transfer data for the current selection, or null if no selection exists |
protected int |
getTreeTableColumnWidth(java.lang.String name)
|
java.awt.Dimension |
getWorkspaceSize()
Returns the dimensions of the workspace |
void |
mouseClicked(java.awt.event.MouseEvent e)
Description of the Method |
void |
mouseEntered(java.awt.event.MouseEvent e)
Description of the Method |
void |
mouseExited(java.awt.event.MouseEvent e)
Description of the Method |
void |
mousePressed(java.awt.event.MouseEvent e)
Description of the Method |
void |
mouseReleased(java.awt.event.MouseEvent e)
Description of the Method |
void |
refreshNode(MerlotDOMNode node,
boolean cancelOnly)
Refreshs a panel (accessible via the node). |
boolean |
saveOpenEditors()
Description of the Method |
void |
selectNode(MerlotDOMNode node)
Description of the Method |
void |
setRoot(MerlotDOMNode node)
Set the tree root and highlight the node in the JTree |
protected void |
setSplitPanelSizes(boolean later)
|
void |
setStatus(java.lang.String s)
Sets the status attribute of the XMLEditorDocUI object |
void |
setStatus(java.lang.String s,
int i)
Sets the status attribute of the XMLEditorDocUI object |
protected void |
setTreeTableColumnWidth(java.lang.String name,
int width)
|
protected void |
setupPanel()
This panel looks a little like Windows Explorer. |
protected javax.swing.JPanel |
setupTreeTable()
Description of the Method |
void |
showNode(MerlotDOMNode node)
Highlights the node in the JTree |
void |
stateChanged(javax.swing.event.ChangeEvent evt)
Description of the Method |
void |
statusChanged(StatusEvent evt)
Description of the Method |
void |
updateNodeMenu(javax.swing.JMenu menu)
updates the given node menu for the selected node |
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 |
protected DOMTreeTableAdapter _XMLmodel
protected XMLEditorDoc _doc
protected com.sun.javax.swing.JTreeTable _table
protected javax.swing.JPanel _treePanel
protected javax.swing.JSplitPane _splitPane
protected javax.swing.JPanel _editPanel
protected javax.swing.JPanel _statusPanel
protected javax.swing.JLabel _status1
protected javax.swing.JLabel _status2
protected javax.swing.JLabel _status3
protected javax.swing.JMenuBar _menuBar
protected javax.swing.JMenu _treePasteMenu
protected MerlotDOMNode _currentNode
protected javax.swing.JPanel _currentEditPanel
protected static final long STATUS_DISPLAY_TIME
Constructor Detail |
public XMLEditorDocUI(XMLEditorDoc doc)
doc
- Description of the ParameterMethod Detail |
protected void setupPanel()
protected void setSplitPanelSizes(boolean later)
protected javax.swing.JMenu createTreePasteMenu()
protected javax.swing.JMenuBar getMenuBar()
public java.util.Vector getNodeHistory()
public MerlotDOMNode getCurrentNode()
protected javax.swing.JPanel setupTreeTable()
public void editNode(MerlotDOMNode node, boolean brandSpankinNew)
node
- the node to editbrandSpankinNew
- Description of the Parameterpublic void editText(MerlotDOMNode node)
node
- Description of the Parameterpublic void deleteNode(MerlotDOMNode node)
node
- Description of the Parameterpublic boolean saveOpenEditors()
protected java.util.List getNodeMenuItems(MerlotDOMNode node)
node
- Description of the Parameter
protected java.util.List getNodePluginMenuItems(MerlotDOMNode node)
node
- Description of the Parameter
protected void addItemsToMenu(java.util.List menuItems, javax.swing.MenuElement menu)
menuItems
- The feature to be added to the ItemsToMenu attributemenu
- The feature to be added to the ItemsToMenu attributeprotected javax.swing.JPopupMenu getNodePopupMenu(MerlotDOMNode node)
node
- Description of the Parameter
protected void enablePasteItems(MerlotDOMNode node)
node
- Description of the Parameterprotected javax.swing.JMenu getNodeAddMenu(MerlotDOMNode node, int where)
node
- the node this is acting on.where
- what the add is for.. INTO, BEFORE, AFTER the context node
protected javax.swing.JMenu getNodeAddSpecialMenu(MerlotDOMNode node, int context)
node
- Description of the Parameter
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- Description of the Parameterpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
e
- Description of the Parameterpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
e
- Description of the Parameterpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
e
- Description of the Parameterpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- Description of the Parameterprotected void doPopup(java.awt.event.MouseEvent e)
e
- Description of the Parameterpublic void updateNodeMenu(javax.swing.JMenu menu)
menu
- Description of the Parameterpublic MerlotDOMNode getSelectedNode()
public MerlotDOMNode[] getSelectedNodes()
public int getSelectedRow()
public void selectNode(MerlotDOMNode node)
node
- Description of the Parameterpublic MerlotDOMNode getNodeForPath(javax.swing.tree.TreePath tp)
tp
- Description of the Parameter
public MerlotDOMNode getNodeForRow(int row)
row
- Description of the Parameter
public void refreshNode(MerlotDOMNode node, boolean cancelOnly)
node
- Description of the ParametercancelOnly
- Description of the Parameterpublic void showNode(MerlotDOMNode node)
node
- Description of the Parameterpublic java.awt.Dimension getWorkspaceSize()
public void setRoot(MerlotDOMNode node)
node
- The new root valuepublic java.awt.datatransfer.Transferable getTransferable()
public void setStatus(java.lang.String s)
s
- The new status valuepublic void setStatus(java.lang.String s, int i)
s
- The new status valuei
- The new status valuepublic void statusChanged(StatusEvent evt)
statusChanged
in interface StatusListener
evt
- Description of the Parameterpublic void stateChanged(javax.swing.event.ChangeEvent evt)
stateChanged
in interface javax.swing.event.ChangeListener
evt
- Description of the Parameterprotected int getTreeTableColumnWidth(java.lang.String name)
protected void setTreeTableColumnWidth(java.lang.String name, int width)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |