public abstract class ContainerComponent extends ComponentBase implements AddChild
emptyRectangle| Modifier | Constructor and Description |
|---|---|
protected |
ContainerComponent()
Initializes a new instance of the ContainerComponent class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ComponentVisitor visitor)
ComponentBase.accept override.
|
void |
addChild(java.lang.Object child)
Implements AddChild.addChild.
|
void |
arrangeComponents(android.graphics.RectF availableSpace,
android.graphics.Canvas g2d)
ComponentBase.arrangeComponents override.
|
void |
draw(android.graphics.Canvas g2d,
RenderOptions ro)
ComponentBase.draw override.
|
int |
getChildCount()
Gets the number of child components of this component.
|
java.util.List<ComponentBase> |
getComponents()
Gets the child components of this container.
|
void |
loadComponents(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
For internal use.
|
protected void |
loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
ComponentBase.loadFromXml override.
|
void |
readExternal(java.io.ObjectInput in)
ComponentBase.readExternal override.
|
void |
saveComponents(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
For internal use.
|
protected void |
saveToXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
ComponentBase.saveToXml override.
|
void |
writeExternal(java.io.ObjectOutput out)
ComponentBase.writeExternal override.
|
contains, createOutlinePath, find, getBounds, getCursor, getDesiredSize, getDocumentBounds, getFocusable, getGridColumn, getGridRow, getHeight, getHorizontalAlignment, getIsEnabled, getIsFocused, getIsHitTestVisible, getIsInteractive, getName, getParent, getParentHost, getVerticalAlignment, getVisible, getWidth, invalidate, invalidateLayout, onAddedToParent, onContextChanged, onGotFocus, onKeyPress, onLostFocus, onMouseDown, onMouseMove, onMouseUp, onRemovedFromParent, onUnitChanged, onZoomChanged, serializeSubcomponents, setBounds, setFocusable, setGridColumn, setGridRow, setHeight, setHorizontalAlignment, setIsEnabled, setIsFocused, setIsHitTestVisible, setIsInteractive, setName, setParent, setVerticalAlignment, setVisible, setWidth, toDocument, toLocal, toParentprotected ContainerComponent()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class ComponentBasejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class ComponentBasejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void addChild(java.lang.Object child)
protected void saveToXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
saveToXml in class ComponentBasexmlElement - An Element the component's data should be stored into.context - An XmlPersistContext object providing contextual information about the serialization process and some helper serialization methods.protected void loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
loadFromXml in class ComponentBasexmlElement - An Element containing the component's data.context - An XmlPersistContext object providing contextual information about the serialization process and some helper serialization methods.public void saveComponents(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
public void loadComponents(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
public void draw(android.graphics.Canvas g2d,
RenderOptions ro)
draw in class ComponentBaseg2d - The drawing target.ro - A RenderOptions object specifying the drawing context.public void arrangeComponents(android.graphics.RectF availableSpace,
android.graphics.Canvas g2d)
arrangeComponents in class ComponentBaseavailableSpace - The space available for arrangement.g2d - A relevant Canvas object.public void accept(ComponentVisitor visitor)
public java.util.List<ComponentBase> getComponents()
public int getChildCount()
getChildCount in class ComponentBase