public class HTMLContainer extends HTMLComponent
alignment, alt, bgColor, cancelBubble, events, gMutableTheme, hasInitFocus, id, intStyleSheet, items, name, parent, styleId, styleProperty, tabIndex, toolTip, VALID_NAME_REGEX, VALID_STYLE_REGEX
Constructor and Description |
---|
HTMLContainer() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(HTMLComponent component)
Adds a component to this container
|
void |
addComponent(HTMLComponent component,
int index)
Adds a component to this container at a particular position
|
void |
addText(java.lang.String text) |
void |
clear() |
HTMLComponent |
findId(java.lang.String id) |
HTMLComponent |
getComponent(int at) |
int |
getComponentCount()
The count of components contained
|
boolean |
hasComponent(HTMLComponent lookFor)
Have we added this component ?
|
boolean |
removeComponent(HTMLComponent lookFor)
Remove this component ?
|
void |
removeComponent(int at) |
addJavaScript, addJavaScript, addOnLoadScript, appendClassName, checkIsContainer, compile, copyAttributes, doBuildToolTip, fetchStyleProperty, getClassName, getId, getMutableTheme, getParent, getParentPage, getStyleSheet, getTheme, hasTheme, iAddComponent, iAddComponent, iAddedToPage, iAddEvent, iClear, iFindId, iGenerate, iGenerateAttributes, iGenerateAttributesID, iGenerateComponent, iGenerateComponent, iGenerateEvents, iGetComponent, iGetComponentCount, iHasEvent, iRemoveComponent, isCompiled, iSetId, iSetName, iSetStyleId, makeColorID, makeListOfEvents, monitorPage, postCompile, resetParent, setAlignment, setAttribute, setClassName, setHasInitFocus, setParent, setStyleProperty, setTabIndex, touch
public void addComponent(@Nullable HTMLComponent component)
component
- public void addComponent(HTMLComponent component, int index) throws java.lang.ArrayIndexOutOfBoundsException
component
- index
- java.lang.ArrayIndexOutOfBoundsException
public void removeComponent(int at)
at
- public boolean removeComponent(HTMLComponent lookFor)
lookFor
- @CheckReturnValue @Nonnull public HTMLComponent findId(@Nonnull java.lang.String id) throws NotFoundException
id
- NotFoundException
public int getComponentCount()
public void clear()
public boolean hasComponent(HTMLComponent lookFor)
lookFor
- @CheckReturnValue @Nullable public HTMLComponent getComponent(@Nonnegative int at)
at
- public void addText(java.lang.String text)
text
- stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.