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 Modifier and Type Field Description protected List<ChildProxy<?>>childrenFields inherited from class VASSAL.tools.menu.AbstractProxy
parent, peers, queue -
Constructor Summary
Constructors Constructor Description AbstractParent() -
Method Summary
Modifier and Type Method Description voidadd(ChildProxy<?> child)ChildProxy<?>getChild(int pos)intgetChildCount()ChildProxy<?>[]getChildren()intgetIndex(ChildProxy<?> child)voidinsert(ChildProxy<?> child, int pos)protected intproxyIndexToRealIndex(int pos)voidremove(int pos)voidremove(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:
removein interfaceParentProxy
-
getChildCount
public int getChildCount()- Specified by:
getChildCountin interfaceParentProxy
-
getChildren
- Specified by:
getChildrenin interfaceParentProxy
-
getChild
- Specified by:
getChildin interfaceParentProxy