|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--de.pannenleiter.client.TreeWidget
TreeWidget -- a tree widget
| Field Summary | |
protected java.awt.event.ActionListener |
actionListener
|
static int |
CLOSED
|
protected java.awt.FontMetrics |
fm
|
protected boolean |
hasFocus
|
protected java.awt.Scrollbar |
horizontal
|
protected int |
indentWidth
|
protected java.awt.event.ItemListener |
itemListener
|
protected long |
lastClick
|
protected TreeNode |
lastClickNode
|
protected int |
lineHight
|
protected de.pannenleiter.client.TreeWidget.InnerPanel |
myPanel
|
static int |
OPENED
|
protected java.util.Hashtable |
selectedNodes
|
protected TreeNode |
tree
|
protected java.awt.Scrollbar |
vertical
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
| Constructor Summary | |
TreeWidget()
|
|
TreeWidget(int policy)
|
|
| Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
|
void |
addItemListener(java.awt.event.ItemListener l)
|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
void |
assertVisible(int line)
|
protected void |
calcFont()
|
protected int |
calcHeight()
|
protected int |
calcWidth()
|
java.awt.Dimension |
getMaximumSize()
|
java.awt.Dimension |
getMinimumSize()
|
java.awt.Dimension |
getPreferredSize()
|
java.lang.Object[] |
getSelectedObjects()
|
void |
layoutContainer(java.awt.Container parent)
|
static void |
main(java.lang.String[] args)
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
|
void |
paint(java.awt.Graphics g)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
|
protected void |
processFocusEvent(java.awt.event.FocusEvent e)
|
void |
removeActionListener(java.awt.event.ActionListener l)
|
void |
removeItemListener(java.awt.event.ItemListener l)
|
void |
removeLayoutComponent(java.awt.Component comp)
|
protected void |
setScrollbars(int ho,
int ve)
|
void |
setTree(TreeNode tree)
|
| Methods inherited from class java.awt.Panel |
addNotify |
| Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
paramString,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setCursor,
setFont,
setLayout,
update,
validate,
validateTree |
| Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int OPENED
public static final int CLOSED
protected java.awt.FontMetrics fm
protected int lineHight
protected int indentWidth
protected de.pannenleiter.client.TreeWidget.InnerPanel myPanel
protected java.awt.Scrollbar horizontal
protected java.awt.Scrollbar vertical
protected long lastClick
protected TreeNode lastClickNode
protected boolean hasFocus
protected TreeNode tree
protected java.util.Hashtable selectedNodes
protected java.awt.event.ItemListener itemListener
protected java.awt.event.ActionListener actionListener
| Constructor Detail |
public TreeWidget(int policy)
public TreeWidget()
| Method Detail |
protected void calcFont()
protected int calcHeight()
protected int calcWidth()
public java.awt.Dimension getPreferredSize()
public java.awt.Dimension getMinimumSize()
public java.awt.Dimension getMaximumSize()
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
public void removeLayoutComponent(java.awt.Component comp)
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
public void layoutContainer(java.awt.Container parent)
protected void setScrollbars(int ho,
int ve)
public void paint(java.awt.Graphics g)
protected void processFocusEvent(java.awt.event.FocusEvent e)
public void assertVisible(int line)
public void setTree(TreeNode tree)
public void addItemListener(java.awt.event.ItemListener l)
public void addActionListener(java.awt.event.ActionListener l)
public void removeItemListener(java.awt.event.ItemListener l)
public void removeActionListener(java.awt.event.ActionListener l)
public java.lang.Object[] getSelectedObjects()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||