@Deprecated public abstract class AbstractParentWidget extends MapWidget2
Modifier and Type | Class and Description |
---|---|
static class |
AbstractParentWidget.Factory
Deprecated.
|
static interface |
AbstractParentWidget.OnWidgetListChangedListener
Deprecated.
|
MapWidget2.OnWidgetSizeChangedListener
MapWidget.OnClickListener, MapWidget.OnLongPressListener, MapWidget.OnMoveListener, MapWidget.OnPressListener, MapWidget.OnUnpressListener, MapWidget.OnVisibleChangedListener, MapWidget.OnWidgetPointChangedListener
Constructor and Description |
---|
AbstractParentWidget()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildWidget(IMapWidget widget)
Deprecated.
|
void |
addChildWidgetAt(int index,
IMapWidget widget)
Deprecated.
|
void |
addOnWidgetListChangedListener(IParentWidget.OnWidgetListChangedListener l)
Deprecated.
|
void |
addWidget(MapWidget widget)
Deprecated.
|
void |
addWidgetAt(int index,
MapWidget widget)
Deprecated.
|
MapWidget |
findWidget(java.lang.String name,
boolean deep)
Deprecated.
Find a widget by name within either:
- this parent's immediate children list
- this entire parent widget's hierarchy
|
MapWidget |
getChildAt(int index)
Deprecated.
|
int |
getChildCount()
Deprecated.
|
java.util.List<IMapWidget> |
getChildren()
Deprecated.
|
IMapWidget |
getChildWidgetAt(int index)
Deprecated.
|
int |
getChildWidgetCount()
Deprecated.
|
java.util.List<MapWidget> |
getChildWidgets()
Deprecated.
|
AbstractParentWidget |
getParent()
Deprecated.
|
java.util.List<IMapWidget> |
getSortedChildrenWidgets()
Deprecated.
|
java.util.List<MapWidget> |
getSortedWidgets()
Deprecated.
Get the list of child widgets sorted by their draw order
Sort priority: z-order -> list order
|
void |
onActionBarToggled(boolean showing)
Deprecated.
Note individual MapWidgets do not need to register for action bar events.
|
boolean |
onChildWidgetCanBeAdded(int index,
IMapWidget widget)
Deprecated.
|
protected void |
onWidgetAdded(int index,
IMapWidget widget)
Deprecated.
|
protected void |
onWidgetAdded(int index,
MapWidget widget)
Deprecated.
|
boolean |
onWidgetCanBeAdded(int index,
MapWidget widget)
Deprecated.
|
protected void |
onWidgetRemoved(int index,
IMapWidget widget)
Deprecated.
|
protected void |
onWidgetRemoved(int index,
MapWidget widget)
Deprecated.
|
void |
orientationChanged()
Deprecated.
Subclass to allow for a new x,y,height,width to be computed when the orientation
has changed.
|
boolean |
removeChildWidget(IMapWidget widget)
Deprecated.
|
IMapWidget |
removeChildWidgetAt(int index)
Deprecated.
|
void |
removeOnWidgetListChangedListener(IParentWidget.OnWidgetListChangedListener l)
Deprecated.
|
boolean |
removeWidget(MapWidget widget)
Deprecated.
|
MapWidget |
removeWidgetAt(int index)
Deprecated.
|
MapWidget |
seekHit(float x,
float y)
Deprecated.
|
IMapWidget |
seekWidgetHit(gov.tak.platform.ui.MotionEvent event,
float x,
float y)
Deprecated.
Uses the touch bounds and zOrder to determine the top most item within the MapWidget
list to determine what item is hit.
|
void |
setZOrder(double zOrder)
Deprecated.
Set the ascending order of the MapItem.
|
addOnWidgetSizeChangedListener, getSize, onSizeChanged, removeOnWidgetSizeChangedListener, seekHit, testHit
addOnClickListener, addOnHoverListener, addOnLongPressListener, addOnMoveListener, addOnPressListener, addOnUnpressListener, addOnVisibleChangedListener, addOnWidgetPointChangedListener, equals, getAbsolutePath, getAbsolutePosition, getAbsoluteWidgetPosition, getHeight, getMargins, getName, getPadding, getPointX, getPointY, getPropertyValue, getSize, getWidth, getZOrder, hashCode, isEnterable, isTouchable, isVisible, onClick, onClick, onHover, onLongPress, onMove, onMove, onPointChanged, onPress, onPress, onUnpress, onUnpress, onVisibleChanged, registerForwardedListener, removeOnClickListener, removeOnHoverListener, removeOnLongPressListener, removeOnMoveListener, removeOnPressListener, removeOnUnpressListener, removeOnVisibleChangedListener, removeOnWidgetPointChangedListener, setHeight, setMargins, setName, setPadding, setPadding, setParent, setPoint, setSize, setTouchable, setVisible, setWidth, unregisterForwardedListener, visitPropertyInfos
public int getChildCount()
public MapWidget getChildAt(int index)
public AbstractParentWidget getParent()
public java.util.List<MapWidget> getSortedWidgets()
public java.util.List<IMapWidget> getChildren()
public void addChildWidget(IMapWidget widget)
public void addWidget(MapWidget widget)
public void addChildWidgetAt(int index, IMapWidget widget)
public void addWidgetAt(int index, MapWidget widget)
public IMapWidget removeChildWidgetAt(int index)
public MapWidget removeWidgetAt(int index)
public boolean removeChildWidget(IMapWidget widget)
public boolean removeWidget(MapWidget widget)
public MapWidget findWidget(java.lang.String name, boolean deep)
name
- Widget unique namedeep
- True to perform a deep find, false to perform a shallow findpublic void setZOrder(double zOrder)
MapWidget
public java.util.List<MapWidget> getChildWidgets()
public void addOnWidgetListChangedListener(IParentWidget.OnWidgetListChangedListener l)
public void removeOnWidgetListChangedListener(IParentWidget.OnWidgetListChangedListener l)
public IMapWidget seekWidgetHit(gov.tak.platform.ui.MotionEvent event, float x, float y)
seekWidgetHit
in class MapWidget2
@Deprecated public MapWidget seekHit(float x, float y)
MapWidget2.seekWidgetHit(MotionEvent, float, float)
seekHit
in class MapWidget2
x
- y
- public boolean onChildWidgetCanBeAdded(int index, IMapWidget widget)
public boolean onWidgetCanBeAdded(int index, MapWidget widget)
protected void onWidgetAdded(int index, MapWidget widget)
protected void onWidgetRemoved(int index, MapWidget widget)
protected void onWidgetAdded(int index, IMapWidget widget)
protected void onWidgetRemoved(int index, IMapWidget widget)
public void orientationChanged()
MapWidget
orientationChanged
in class MapWidget
public void onActionBarToggled(boolean showing)
showing
- true if the action bar is showingpublic int getChildWidgetCount()
public IMapWidget getChildWidgetAt(int index)
public java.util.List<IMapWidget> getSortedChildrenWidgets()