public class DrawDBHTMLHelper
extends java.lang.Object
| Constructor and Description |
|---|
DrawDBHTMLHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addLinksAndButtonsToExecContext(IExecContext execContext,
BaseFormAction baseAction,
Theme theme,
java.lang.String align)
add the links and buttons to the execContext.
|
static void |
addLinksAndButtonsToExecContext(IExecContext execContext,
BaseFormAction baseAction,
Theme theme,
java.lang.String align,
HtmlInput formSubmit)
add the links and buttons to the execContext.
|
static HtmlTr[] |
buildDisplay(Theme theme,
java.lang.String position,
HtmlTd header,
HtmlTd field) |
static HtmlTr[] |
buildDisplay(Theme theme,
java.lang.String position,
HtmlTh header,
Html field) |
static HtmlTr |
buildLinksAndButtons(IExecContext execContext,
BaseFormAction baseAction,
Theme theme,
java.lang.String align)
Builds the links and buttons for display at the bottom of a form.
|
static HtmlTr |
buildLinksAndButtons(IExecContext execContext,
BaseFormAction baseAction,
Theme theme,
java.lang.String align,
HtmlInput formSubmit)
Builds the links and buttons for display at the bottom of a form.
|
static java.lang.String |
buildName(CommonStorageField child)
Builds an identifier name for the parent and child so it matches the
table and field.
|
static java.lang.String |
buildName(CommonStorageField child,
java.lang.String uniqueId)
Builds a unique identifier name for the parent and child so it matches
the table and field with a unique Id.
|
static java.lang.String |
getFieldName(java.lang.String tableAndFieldName)
Returns the field name part of the string which is the part after the '.'
|
static boolean |
isDirectionAcross(java.lang.String direction)
Check if the direction is 'across' as opposed to 'down'
|
static boolean |
isDirectionDown(java.lang.String direction)
Check if the direction is 'down' as opposed to 'across'.
|
static boolean |
isPositionAbove(java.lang.String position)
Check if the position is 'above' the field
|
static boolean |
isPositionLeft(java.lang.String position)
Check if the position is 'left' of the field
|
static java.lang.String |
removeUniqueId(java.lang.String key,
java.lang.String uniqueId)
Builds a unique identifier name for the parent and child so it matches
the table and field with a unique Id.
|
public static java.lang.String buildName(CommonStorageField child)
child - public static java.lang.String buildName(CommonStorageField child, java.lang.String uniqueId)
The purpose of the unique Id is to allow for the same field to be used more than once on the same page.
child - uniqueId - public static java.lang.String removeUniqueId(java.lang.String key,
java.lang.String uniqueId)
The purpose of the unique Id is to allow for the same field to be used more than once on the same page.
key - uniqueId - public static java.lang.String getFieldName(java.lang.String tableAndFieldName)
tableAndFieldName - the table and field name separated with the '.'public static HtmlTr[] buildDisplay(Theme theme, java.lang.String position, HtmlTd header, HtmlTd field)
public static HtmlTr[] buildDisplay(Theme theme, java.lang.String position, HtmlTh header, Html field)
public static boolean isPositionAbove(java.lang.String position)
position - public static boolean isPositionLeft(java.lang.String position)
position - public static boolean isDirectionDown(java.lang.String direction)
Used when drawing a presentation of checkboxes or radio boxes.
direction - public static boolean isDirectionAcross(java.lang.String direction)
Used when drawing a presentation of checkboxes or radio boxes.
direction - public static HtmlTr buildLinksAndButtons(IExecContext execContext, BaseFormAction baseAction, Theme theme, java.lang.String align)
execContext - baseAction - theme - align - public static HtmlTr buildLinksAndButtons(IExecContext execContext, BaseFormAction baseAction, Theme theme, java.lang.String align, HtmlInput formSubmit)
execContext - baseAction - theme - align - formSubmit - public static void addLinksAndButtonsToExecContext(IExecContext execContext, BaseFormAction baseAction, Theme theme, java.lang.String align)
execContext - baseAction - theme - align - public static void addLinksAndButtonsToExecContext(IExecContext execContext, BaseFormAction baseAction, Theme theme, java.lang.String align, HtmlInput formSubmit)
execContext - baseAction - theme - align - formSubmit -