|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Canvas org.w3c.tools.widgets.TreeBrowser org.w3c.jigadm.editors.FrameBrowser
public class FrameBrowser
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Canvas |
---|
java.awt.Canvas.AccessibleAWTCanvas |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static boolean |
debug
|
Fields inherited from class org.w3c.tools.widgets.TreeBrowser |
---|
fontHeight, items, MULTIPLE, SCROLLBARS_ALWAYS, SCROLLBARS_ASNEEDED, selection, selectionPolicy, SINGLE, topItem, visibleItemCount |
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 | |
---|---|
FrameBrowser(FrameTreeListener tl,
RemoteResourceWrapper rrw)
|
Method Summary | |
---|---|
protected void |
errorPopup(java.lang.String name,
java.lang.Exception ex)
|
java.lang.String |
getFrameName(RemoteResource frame)
Get the pretty ResourceFrame name |
java.lang.String |
getFrameName(RemoteResource frame,
java.lang.String name)
Get the pretty ResourceFrame name |
protected boolean |
getLock()
gets a lock to avoid adding node while removing other nodes it sets also the Cursor to WAIT_CURSOR |
java.awt.Dimension |
getPreferredSize()
|
protected RemoteResourceWrapper |
getResources(RemoteResourceWrapper rw,
java.lang.String name)
|
RemoteResourceWrapper |
getRootWrapper()
give the Root Resource of the browser |
void |
insertNode(RemoteResourceWrapper father,
RemoteResourceWrapper son)
|
void |
insertNode(RemoteResourceWrapper father,
RemoteResourceWrapper son,
java.lang.String name)
|
boolean |
isDirectory(TreeBrowser browser,
TreeNode nd)
Checks if the node is a directory. |
void |
notifyCollapse(TreeBrowser browser,
TreeNode node)
Handles Collapse notifications we simply collapse the given node and repaint the browser. |
void |
notifyExecute(TreeBrowser browser,
TreeNode node)
Handles Select notifications. |
void |
notifyExpand(TreeBrowser browser,
TreeNode nd)
Notifies that a node has to be expanded. |
void |
notifyExpander(TreeBrowser browser,
TreeNode nd)
Handles Expand notifications if the node is a directory, we list its content and insert the directories and files in the browser. |
void |
notifySelect(TreeBrowser browser,
TreeNode nd)
Notifies that a node has to be selected. |
void |
removeNode(RemoteResourceWrapper rw)
|
void |
renameNode(RemoteResourceWrapper rw,
java.lang.String label)
|
void |
setCursor(int cursor)
|
protected void |
unlock()
release the lock and sets the Cursor to the default |
Methods inherited from class org.w3c.tools.widgets.TreeBrowser |
---|
adjustmentValueChanged, collapse, getNode, getParent, getSelectionPolicy, initialize, insert, itemAt, paint, remove, removeBranch, select, selection, setHorizontalScrollbar, setScrollbarDisplayPolicy, setSelectionBackgroudColor, setSelectionFontColor, setSelectionPolicy, setVerticalScrollbar, unselect, unselectAll, update |
Methods inherited from class java.awt.Canvas |
---|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean debug
Constructor Detail |
---|
public FrameBrowser(FrameTreeListener tl, RemoteResourceWrapper rrw)
Method Detail |
---|
protected void errorPopup(java.lang.String name, java.lang.Exception ex)
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class TreeBrowser
public void setCursor(int cursor)
protected boolean getLock()
protected void unlock()
public RemoteResourceWrapper getRootWrapper()
public void renameNode(RemoteResourceWrapper rw, java.lang.String label)
public void removeNode(RemoteResourceWrapper rw)
public void insertNode(RemoteResourceWrapper father, RemoteResourceWrapper son)
public void insertNode(RemoteResourceWrapper father, RemoteResourceWrapper son, java.lang.String name)
protected RemoteResourceWrapper getResources(RemoteResourceWrapper rw, java.lang.String name)
public void notifySelect(TreeBrowser browser, TreeNode nd)
NodeHandler
notifySelect
in interface NodeHandler
browser
- the TreeBrowser sending the notification.public void notifyExecute(TreeBrowser browser, TreeNode node)
notifyExecute
in interface NodeHandler
browser
- the TreeBrowser sending the notification.public void notifyExpand(TreeBrowser browser, TreeNode nd)
NodeHandler
notifyExpand
in interface NodeHandler
browser
- the TreeBrowser sending the notification.public boolean isDirectory(TreeBrowser browser, TreeNode nd)
NodeHandler
isDirectory
in interface NodeHandler
browser
- the TreeBrowser sending the notification.public java.lang.String getFrameName(RemoteResource frame, java.lang.String name) throws RemoteAccessException
frame
- The ResourceFramename
- The ResourceFrame name
RemoteAccessException
- if a remote access error occurs.public java.lang.String getFrameName(RemoteResource frame) throws RemoteAccessException
frame
- The ResourceFrame
RemoteAccessException
- if a remote access error occurs.public void notifyExpander(TreeBrowser browser, TreeNode nd)
public void notifyCollapse(TreeBrowser browser, TreeNode node)
notifyCollapse
in interface NodeHandler
browser
- the TreeBrowser sending the notification.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |