java.lang.Object
de.grogra.pf.ui.awt.ComponentModel
- All Implemented Interfaces:
ComponentWrapper
,Synchronizer.Callback
,Disposable
,MutableTreeModel
,TreeModel
- Direct Known Subclasses:
MappedComponentModel
public abstract class ComponentModel
extends Object
implements MutableTreeModel, Synchronizer.Callback, ComponentWrapper
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
protected static final int
protected Container
protected static final int
protected final AWTSynchronizer
protected static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getChildCount
(Object parent) protected Container
getContentPane
(Object container) int
getIndexOfChild
(Object parent, Object child) protected int
getRoot()
void
boolean
void
void
protected void
setEnabled
(Component c, boolean enabled) void
void
treeChanged
(Object parent) protected abstract void
treeChangedSync
(Container parent) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.grogra.util.Disposable
dispose
Methods inherited from interface javax.swing.tree.TreeModel
valueForPathChanged
-
Field Details
-
root
-
sync
-
INSERT
protected static final int INSERT- See Also:
-
REMOVE
protected static final int REMOVE- See Also:
-
TREE_CHANGED
protected static final int TREE_CHANGED- See Also:
-
SET_ENABLED
protected static final int SET_ENABLED- See Also:
-
ACTION_COUNT
protected static final int ACTION_COUNT- See Also:
-
-
Constructor Details
-
ComponentModel
public ComponentModel()
-
-
Method Details
-
run
- Specified by:
run
in interfaceSynchronizer.Callback
-
getContentPane
-
getPrefixComponentCount
-
isLeaf
-
getChild
-
getChildCount
- Specified by:
getChildCount
in interfaceTreeModel
-
getIndexOfChild
- Specified by:
getIndexOfChild
in interfaceTreeModel
-
getRoot
-
getComponent
- Specified by:
getComponent
in interfaceComponentWrapper
-
setRoot
- Specified by:
setRoot
in interfaceMutableTreeModel
-
insert
- Specified by:
insert
in interfaceMutableTreeModel
-
remove
- Specified by:
remove
in interfaceMutableTreeModel
-
treeChanged
-
setEnabled
-
treeChangedSync
-
addTreeModelListener
- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListener
in interfaceTreeModel
-