DhElement | +--DhBaseContainer | +--DhSectionpublic class DhSection
Represents an element container that uses traditional HTML one-dimensional flow layout. Elements that are added into this kind of container cannot be positioned in x-y coordinates but rather "flow" around each other. For a version of this container that is based on x-y positioning, see DhPanel.
Constructors
Name | Description |
---|---|
DhSection() | Creates a DhSection section container. |
Methods
Name | Description |
---|---|
add(DhElement element) | Adds an element into this container, following all other elements. |
add(DhElement element, int insertFlag ) | Adds an element either at the beginning or at the end of this container, depending on the DhInsertEnum value in the insertFlag parameter. |
add(DhElement element, DhElement relativeTo, int insertFlag) | Adds an element either at the beginning or end of this container, or before or after another element, depending on the insertFlag parameter. |
addFilter(DhFilter filter) | Adds a filter to this element and applies it immediately. |
addFilter(DhFilter filter, boolean bApply) | Adds a filter to this element. |
addFilter(DhFilter filter, boolean bApply, boolean bFlush) | Adds a filter to this element. |
addOnFormReset( DhEventHandler h ) | Topic under construction. |
addOnHTTPSubmit( DhEventHandler h ) | Topic under construction. |
addText( String text ) | Appends a text string to the current section. |
addTransition(DhFilter trans) | Adds a transition effect to this element. |
applyFilters() | Applies filters that were previously deferred. |
findElement(String id) | Topic under construction. |
findFilter(Class filterClass) | Retrieves the current filter with the specified filter class. |
getAsForm( ) | Retrieves the current FORM/DIV state. |
getMatchingChildElements( String strQuery, boolean fRecursive ) | Topic under construction. |
moveElement( DhElement element, int newOrder ) | Moves an element to a new numeric order in the flow. |
newLine() | Appends a new line to the current section. |
remove(DhElement element) | Removes an element from this container. |
removeAll() | Removes all child elements from this container. |
removeAllFilters() | Removes all filters from this element automatically. |
removeAllFilters(boolean bApply) | Removes all filters from this element. |
removeFilter(DhFilter filter) | Removes the specified filter from this element. |
removeFilter(DhFilter filter, boolean bApply) | Removes the specified filter from this element. |
removeOnFormReset( DhEventHandler h ) | Topic under construction. |
removeOnHTTPSubmit( DhEventHandler h ) | Topic under construction. |
replaceFilter(DhFilter filter1, DhFilter filter2) | Provides an easy way to swap filters. |
replaceFilter(DhFilter filter1, DhFilter filter2, boolean bApply) | Replaces filters currently applied to the document. |
setAsForm( boolean fAsForm ) | Forces this DhSection to produce an HTML FORM or DIV section. |
setHTMLGenerator( DhHTMLGenerator htmlGen ) | Topic under construction. |
Creates a DhSection section container.
Adds an element into this container, following all other elements.
Adds an element either at the beginning or at the end of this container, depending on the DhInsertEnum value in the insertFlag parameter.
Adds an element either at the beginning or end of this container, or before or after another element, depending on the insertFlag parameter.
Adds a filter to this element and applies it immediately. Filters added this way are combined with other filters that were previously added and not explicity flushed or removed.
wfc.html.DhCantAddElementException Thrown if this type of filter already exists on this element.
Adds a filter to this element. You can apply the filter immediately or delay application. Delaying application is useful if you are applying more than one filter to this element. Filters added this way are combined with other filters that were previously added and not explicity flushed or removed.
wfc.html.DhCantAddElementException thrown if this type of filter already exists on this element.
Adds a filter to this element. You can apply the filter immediately or delay application. Delaying application is useful if you are applying more than one filter to this element. You can also specify whether to flush filters that were previously applied to this element or combine this filter with those already present.
wfc.html.DhCantAddElementException thrown if this type of filter already exists on this element.
Topic under construction.
Topic under construction.
Appends a text string to the current section.
Adds a transition effect to this element. You must call this method before you can run the effect. Note that this functionality is provided for extension only (see the sample classes). This package does provide transition effects.
wfc.html.DhCantAddElementException Thrown if this type of transition effect already exists on this element.
Applies filters that were previously deferred. Use this method if you called addFilter(DhFilter,boolean) with false for the second paramater. This function applies every filter that was added to this element.
Topic under construction.
Returns the DhFilter (if found) that is of type filterClass.
Retrieves the current filter with the specified filter class.
Returns true if set to FORM, or returns false if set to DIV.
Retrieves the current FORM/DIV state. The FORM state can be set by using setAsForm or adding a DhSubmitButton into the DhSection.
Topic under construction.
getMatchingChildElements(String,boolean) in DhBaseContainer.
Moves an element to a new numeric order in the flow.
Appends a new line to the current section. All elements added after this call will be on a new line.
Returns topic under construction.
Removes an element from this container. If the element was visible prior to this call, it will not be visible after the call.
Removes all child elements from this container. These elements would no longer be visible if they were added prior to this call.
Removes all filters from this element automatically.
Removes all filters from this element. You can clear all filters on this element or delay removal.
Removes the specified filter from this element. This method automatically reapplies filters that may be left after this method is called.
Removes the specified filter from this element. You can reapply filters that may be left after this method is called, or you can delay reapplying filters if you are removing more than one filter.
Topic under construction.
Topic under construction.
Provides an easy way to swap filters. It automatically applies all the changes immediately.
Replaces filters currently applied to the document. This method provides an easy way to swap filters. You can specify whether to apply all the changes immediately or to delay making changes until later.
Forces this DhSection to produce an HTML FORM or DIV section.
Topic under construction.