DhSection | +--DhPanelpublic class DhPanel
Represents a container for elements that uses tradition graphical user interface two-dimensional positioning for layout. Elements that are added into this kind of container are positioned in x-y coordinates as opposed to HTML one-dimentional flow layout. Elements can (and do) sit on top of each other in a z-order (or layered) manner. For a version of this container that is not based on x-y positioning, see DhSection.
Constructors
Name | Description |
---|---|
DhPanel() | Creates the DhPanel container. |
DhPanel( Point size ) | Creates the DhPanel container. |
DhPanel( int width, int height ) | Creates the DhPanel container. |
DhPanel( Rectangle bounds ) | Creates the DhPanel container. |
Methods
Name | Description |
---|---|
add(DhElement element, DhElement relativeTo, int insertFlag) | Adds an element into this container in a specific place in the z-order. |
getAllElements() | Recursively returns all child elements and their children. |
getElements() | Retrieves the child elements of this element. |
Creates the DhPanel container.
Creates the DhPanel container. This constructor creates a panel container of a specified size based on a Point object.
Creates the DhPanel container. This constructor creates a panel container of a specified size based on height and width.
Creates the DhPanel container. This constructor creates a panel container of a specified size and location.
Adds an element into this container in a specific place in the z-order. The order depends on the insertFlag parameter.
You can also call add and then move setZIndex.
Elements are added with a default size and position. Therefore, you should always call element.setBounds to perform a visual cleanup.
Returns an array of all child elements.
Recursively returns all child elements and their children.
Returns an array of direct child elements.
Retrieves the child elements of this element.