|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JTree org.w3c.jigadmin.editors.ResourceTreeBrowser
public class ResourceTreeBrowser
A JTree used to manage RemoteResource.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JTree |
---|
javax.swing.JTree.AccessibleJTree, javax.swing.JTree.DynamicUtilTreeNode, javax.swing.JTree.EmptySelectionModel, javax.swing.JTree.TreeModelHandler, javax.swing.JTree.TreeSelectionRedirector |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static java.lang.String |
DELETE_RESOURCE_AC
|
protected javax.swing.JDialog |
popup
|
protected java.lang.String |
resClassname
|
protected java.lang.String |
resIdentifier
|
protected RemoteResourceWrapperNode |
rootNode
|
Fields inherited from class javax.swing.JTree |
---|
ANCHOR_SELECTION_PATH_PROPERTY, CELL_EDITOR_PROPERTY, CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, editable, EDITABLE_PROPERTY, EXPANDS_SELECTED_PATHS_PROPERTY, INVOKES_STOP_CELL_EDITING_PROPERTY, invokesStopCellEditing, LARGE_MODEL_PROPERTY, largeModel, LEAD_SELECTION_PATH_PROPERTY, ROOT_VISIBLE_PROPERTY, rootVisible, ROW_HEIGHT_PROPERTY, rowHeight, SCROLLS_ON_EXPAND_PROPERTY, scrollsOnExpand, SELECTION_MODEL_PROPERTY, selectionModel, selectionRedirector, SHOWS_ROOT_HANDLES_PROPERTY, showsRootHandles, TOGGLE_CLICK_COUNT_PROPERTY, toggleClickCount, TREE_MODEL_PROPERTY, treeModel, treeModelListener, VISIBLE_ROW_COUNT_PROPERTY, visibleRowCount |
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 | |
---|---|
protected |
ResourceTreeBrowser(RemoteResourceWrapperNode root)
Constructor |
Method Summary | |
---|---|
protected void |
addResource(java.lang.String identifier,
java.lang.String classname,
RemoteResourceWrapper rrwf,
javax.swing.tree.TreePath fpath)
Add a resource to the resource wrapped. |
protected void |
addResourceToSelectedContainer()
Add a (new) resource to the container associated to the selected node. |
protected void |
addResourceToSelectedContainer(java.lang.String classname,
java.lang.String identifier)
Add a resource to the selected container. |
protected void |
deleteResource(RemoteResourceWrapper rrw)
Delete the resource wrapped by the given wrapper |
protected void |
deleteSelectedResources()
Delete the resources associated to the selected nodes. |
protected void |
disposeAddResourcePopup()
Dispose the "add resource" popup |
protected void |
doubleClick(javax.swing.tree.TreePath path)
A double click occured on the node with the given path. |
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
a Drag operation has encountered the DropTarget |
void |
dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent)
The Drag operation has departed the DropTarget without dropping. |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
a Drag operation is ongoing on the DropTarget |
void |
drop(java.awt.dnd.DropTargetDropEvent dropTargetDropEvent)
The Drag operation has terminated with a Drop on this DropTarget |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
The user as modified the current drop gesture |
protected boolean |
dropResource(ResourceCell cell)
Drop a resource. |
protected AddResourcePanel |
getAddResourcePanel(java.lang.String title,
RemoteResourceWrapper rrw)
Get the Panel used to add a new resource |
protected java.lang.String |
getIdentifier(ResourceCell cell,
RemoteResourceWrapper rrw)
Get (compute) the resource identifier of the dropped resource. |
protected javax.swing.JPopupMenu |
getPopupMenu(RemoteResourceWrapper rrw)
Get the popup menu relative to the selected resource. |
static ResourceTreeBrowser |
getResourceTreeBrowser(RemoteResourceWrapper rrw,
java.lang.String rootName)
Get a ResourceTreeBrowser. |
protected RemoteResourceWrapper |
getSelectedResourceWrapper()
Get the RemoteResourceWrapper associated to the selected node. |
protected RemoteResourceWrapper |
getSelectedResourceWrapper(javax.swing.tree.TreePath path)
Get the RemoteResourceWrapper associated to the selected node. |
boolean |
isDragging()
Is the mouse dragging something on the resource tree? |
protected void |
popupAddResourceDialog(java.lang.String title,
RemoteResourceWrapper rrw)
Popup a "add resource" Dialog |
protected void |
popupResource(RemoteResourceWrapper rrw)
Popup a dialog where the user can edit the resource properties. |
protected void |
reindexResource(RemoteResourceWrapper rrw,
boolean rec)
Reindex the container wrapped by the given wrapper. |
protected void |
reindexSelectedResources(boolean rec)
Reindex the containers associated to the selected nodes. |
protected javax.swing.tree.TreePath[] |
removeDescendants(javax.swing.tree.TreePath[] paths)
Filter the TreePath array. |
void |
resourceActionPerformed(ResourceActionEvent e)
A resource action occured. |
protected void |
setCursor(int cursor)
Set the cursor. |
protected void |
setResourceToAdd(java.lang.String classname,
java.lang.String identifier)
Specify some properties of the resource to add |
protected void |
showReferenceDocumentation()
Display (in another frame) the reference documentation relative to the resource associated to the selected node. |
protected void |
simpleClick(javax.swing.tree.TreePath path)
A simle click occured on the node with the given path. |
Methods inherited from class javax.swing.JTree |
---|
addSelectionInterval, addSelectionPath, addSelectionPaths, addSelectionRow, addSelectionRows, addTreeExpansionListener, addTreeSelectionListener, addTreeWillExpandListener, cancelEditing, clearSelection, clearToggledPaths, collapsePath, collapseRow, convertValueToText, createTreeModel, createTreeModelListener, expandPath, expandRow, fireTreeCollapsed, fireTreeExpanded, fireTreeWillCollapse, fireTreeWillExpand, fireValueChanged, getAccessibleContext, getAnchorSelectionPath, getCellEditor, getCellRenderer, getClosestPathForLocation, getClosestRowForLocation, getDefaultTreeModel, getDescendantToggledPaths, getDragEnabled, getEditingPath, getExpandedDescendants, getExpandsSelectedPaths, getInvokesStopCellEditing, getLastSelectedPathComponent, getLeadSelectionPath, getLeadSelectionRow, getMaxSelectionRow, getMinSelectionRow, getModel, getNextMatch, getPathBetweenRows, getPathBounds, getPathForLocation, getPathForRow, getPreferredScrollableViewportSize, getRowBounds, getRowCount, getRowForLocation, getRowForPath, getRowHeight, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollsOnExpand, getSelectionCount, getSelectionModel, getSelectionPath, getSelectionPaths, getSelectionRows, getShowsRootHandles, getToggleClickCount, getToolTipText, getTreeExpansionListeners, getTreeSelectionListeners, getTreeWillExpandListeners, getUI, getUIClassID, getVisibleRowCount, hasBeenExpanded, isCollapsed, isCollapsed, isEditable, isEditing, isExpanded, isExpanded, isFixedRowHeight, isLargeModel, isPathEditable, isPathSelected, isRootVisible, isRowSelected, isSelectionEmpty, isVisible, makeVisible, paramString, removeDescendantSelectedPaths, removeDescendantToggledPaths, removeSelectionInterval, removeSelectionPath, removeSelectionPaths, removeSelectionRow, removeSelectionRows, removeTreeExpansionListener, removeTreeSelectionListener, removeTreeWillExpandListener, scrollPathToVisible, scrollRowToVisible, setAnchorSelectionPath, setCellEditor, setCellRenderer, setDragEnabled, setEditable, setExpandedState, setExpandsSelectedPaths, setInvokesStopCellEditing, setLargeModel, setLeadSelectionPath, setModel, setRootVisible, setRowHeight, setScrollsOnExpand, setSelectionInterval, setSelectionModel, setSelectionPath, setSelectionPaths, setSelectionRow, setSelectionRows, setShowsRootHandles, setToggleClickCount, setUI, setVisibleRowCount, startEditingAtPath, stopEditing, treeDidChange, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, 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 static final java.lang.String DELETE_RESOURCE_AC
protected RemoteResourceWrapperNode rootNode
protected java.lang.String resIdentifier
protected java.lang.String resClassname
protected javax.swing.JDialog popup
Constructor Detail |
---|
protected ResourceTreeBrowser(RemoteResourceWrapperNode root)
root
- The root nodeMethod Detail |
---|
public boolean isDragging()
public void dragEnter(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
dragEnter
in interface java.awt.dnd.DropTargetListener
public void dragExit(java.awt.dnd.DropTargetEvent dropTargetEvent)
dragExit
in interface java.awt.dnd.DropTargetListener
public void dragOver(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
dragOver
in interface java.awt.dnd.DropTargetListener
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dropTargetDragEvent)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
public void drop(java.awt.dnd.DropTargetDropEvent dropTargetDropEvent)
drop
in interface java.awt.dnd.DropTargetListener
protected boolean dropResource(ResourceCell cell)
cell
- The resource cellResourceCell
public void resourceActionPerformed(ResourceActionEvent e)
resourceActionPerformed
in interface ResourceActionListener
e
- the ResourceActionEventprotected void addResource(java.lang.String identifier, java.lang.String classname, RemoteResourceWrapper rrwf, javax.swing.tree.TreePath fpath) throws RemoteAccessException
identifier
- The new resource identifierclassname
- The new resource class namerrwf
- the Wrapper of the father resourcefpath
- The path of the father node
RemoteAccessException
protected void addResourceToSelectedContainer(java.lang.String classname, java.lang.String identifier) throws RemoteAccessException
classname
- the resource class nameidentifier
- the resource identifier
RemoteAccessException
protected java.lang.String getIdentifier(ResourceCell cell, RemoteResourceWrapper rrw) throws RemoteAccessException
cell
- the ResourceCell droppedrrw
- the RemoteResourceWrapper of the father
RemoteAccessException
ResourceCell
protected RemoteResourceWrapper getSelectedResourceWrapper()
protected RemoteResourceWrapper getSelectedResourceWrapper(javax.swing.tree.TreePath path)
path
- the selected path
protected AddResourcePanel getAddResourcePanel(java.lang.String title, RemoteResourceWrapper rrw) throws RemoteAccessException
title
- The titlerrw
- The wrapper of the father RemoteResource
RemoteAccessException
AddResourcePanel
protected void popupAddResourceDialog(java.lang.String title, RemoteResourceWrapper rrw)
title
- the popup titlerrw
- The wrapper of the father RemoteResourceprotected void disposeAddResourcePopup()
protected void setResourceToAdd(java.lang.String classname, java.lang.String identifier)
classnema
- the new resource class nameidentifier
- the new resource identifierprotected void addResourceToSelectedContainer()
protected javax.swing.tree.TreePath[] removeDescendants(javax.swing.tree.TreePath[] paths)
paths
- the TreePath array
protected void reindexSelectedResources(boolean rec)
rec
- recursivly?protected void reindexResource(RemoteResourceWrapper rrw, boolean rec) throws RemoteAccessException
rrw
- the RemoteResourceWrapperrec
- recursivly?
RemoteAccessException
- if a Remote Error occursprotected void deleteSelectedResources()
protected void deleteResource(RemoteResourceWrapper rrw) throws RemoteAccessException
rrw
- The RemoteResourceWrapper
RemoteAccessException
protected void showReferenceDocumentation()
protected void simpleClick(javax.swing.tree.TreePath path)
path
- The path where the click occured.protected void doubleClick(javax.swing.tree.TreePath path)
path
- The path where the double click occured.protected void popupResource(RemoteResourceWrapper rrw)
rrw
- the wrapper if the resource to edit.protected void setCursor(int cursor)
a
- cursor typeprotected javax.swing.JPopupMenu getPopupMenu(RemoteResourceWrapper rrw)
rrw
- the wrapper of the resource
public static ResourceTreeBrowser getResourceTreeBrowser(RemoteResourceWrapper rrw, java.lang.String rootName)
rrw
- The root resourcerootName
- The root identifier.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |