Package VASSAL.tools.menu
Class AbstractParent<T extends JComponent>
java.lang.Object
VASSAL.tools.menu.AbstractProxy<T>
VASSAL.tools.menu.AbstractParent<T>
- All Implemented Interfaces:
ChildProxy<T>
,ParentProxy
- Direct Known Subclasses:
MenuBarProxy
,MenuProxy
public abstract class AbstractParent<T extends JComponent>
extends AbstractProxy<T>
implements ParentProxy
- Since:
- 3.1.0
- Author:
- Joel Uckelman
-
Field Summary
Fields inherited from class VASSAL.tools.menu.AbstractProxy
parent, peers, queue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ChildProxy<?> child) ChildProxy
<?> getChild
(int pos) int
ChildProxy<?>[]
int
getIndex
(ChildProxy<?> child) void
insert
(ChildProxy<?> child, int pos) protected int
proxyIndexToRealIndex
(int pos) void
remove
(int pos) void
remove
(ChildProxy<?> child) Methods inherited from class VASSAL.tools.menu.AbstractProxy
createPeer, forEachPeer, getParent, processQueue, setParent
-
Field Details
-
children
-
-
Constructor Details
-
AbstractParent
public AbstractParent()
-
-
Method Details
-
proxyIndexToRealIndex
protected int proxyIndexToRealIndex(int pos) -
remove
public void remove(int pos) - Specified by:
remove
in interfaceParentProxy
-
getChildCount
public int getChildCount()- Specified by:
getChildCount
in interfaceParentProxy
-
getChildren
- Specified by:
getChildren
in interfaceParentProxy
-
getChild
- Specified by:
getChild
in interfaceParentProxy