| java.lang.Object de.webman.form.eventhandler.CTUtils
Method Summary | |
public static boolean | exists(Integer id, String name, String value) Checks wether the specified form definition exists.
Parameters: id - the excluded id of the form definition (may benull ). Parameters: name - the name of the search parameter. Parameters: value - the value of the search parameter. | public static String | generateFieldName(String description, int length) Generates a field name from the field description.
The field name will be the URL-encoded form of the
description and not exceed th specified length.
Parameters: description - the field description. Parameters: length - the maximum length of the field name. | public static String | getFormTypeDescription(Form form) Returns the form type description of the specified form.
Parameters: form - the form. | public static TKVector | getParameterList(TKHashtable parameters) Returns a parameter list from the specified event parameters.
Parameters: parameters - the event parameters. | public static TKBaseField | getStructure(int type) Creates the top-level field structure based on the given form type.
Parameters: type - the form type. | public static boolean | isAmbiguousFormDescription(Integer id, String description) Checks wether the specified form description is ambiguous.
Parameters: id - the optional form id to be excluded from the check. Parameters: description - the description name to be checked. | public static boolean | isAmbiguousFormName(Integer id, String name) Checks wether the specified form name is ambiguous.
Parameters: id - the optional form id to be excluded from the check. Parameters: name - the form name to be checked. | public static boolean | isSloppyNamingEnabled() Checks wether sloppy naming is enabled. | public static boolean | isUnsafeFormModification(TKEvent event) Checks wether the specified event may cause an unsafe modification.
Parameters: event - the event to be checked. | public static boolean | isUnsafeModificationEnabled() Checks wether unsafe modification is enabled. | public static void | keepCTContext(TKEvent event, TKHTMLTemplate template) Keeps the context by passing all parameters of the event
into the given template. | public static void | switchTest(TKHTMLTemplate template, boolean test) Switches between normal and testing mode by setting the
according parameters in the template. |
LANGUAGE_CONTEXT | final public static String LANGUAGE_CONTEXT(Code) | | The language manager context.
|
PROPERTY_ENABLE_SLOPPY_NAMING | final public static String PROPERTY_ENABLE_SLOPPY_NAMING(Code) | | The enable sloppy naming property.
|
PROPERTY_ENABLE_UNSAFE_MODIFICATION | final public static String PROPERTY_ENABLE_UNSAFE_MODIFICATION(Code) | | The enable unsafe modification property.
|
PROPERTY_GROUP_FORM_PROCESSING | final public static String PROPERTY_GROUP_FORM_PROCESSING(Code) | | The form processing property group.
|
exists | public static boolean exists(Integer id, String name, String value) throws TKException(Code) | | Checks wether the specified form definition exists.
Parameters: id - the excluded id of the form definition (may benull ). Parameters: name - the name of the search parameter. Parameters: value - the value of the search parameter. true if the specified form definition exists,otherwise false . throws: TKException - if an error occurred during the check. |
generateFieldName | public static String generateFieldName(String description, int length)(Code) | | Generates a field name from the field description.
The field name will be the URL-encoded form of the
description and not exceed th specified length.
Parameters: description - the field description. Parameters: length - the maximum length of the field name. a field name. |
getFormTypeDescription | public static String getFormTypeDescription(Form form) throws TKException(Code) | | Returns the form type description of the specified form.
Parameters: form - the form. the form type description of the specified form. throws: TKException - if any error occurred during form typedescription lookup. |
getParameterList | public static TKVector getParameterList(TKHashtable parameters)(Code) | | Returns a parameter list from the specified event parameters.
Parameters: parameters - the event parameters. a parameter list from the specified event parameters. |
getStructure | public static TKBaseField getStructure(int type) throws TKException(Code) | | Creates the top-level field structure based on the given form type.
Parameters: type - the form type. the top-level field structure based on the given form type. throws: TKException - if an error occurred during structure creation. |
isAmbiguousFormDescription | public static boolean isAmbiguousFormDescription(Integer id, String description) throws TKException(Code) | | Checks wether the specified form description is ambiguous.
Parameters: id - the optional form id to be excluded from the check. Parameters: description - the description name to be checked. true if the specified form description is ambiguous,otherwise false . throws: TKException - if an error occurred during the check. |
isAmbiguousFormName | public static boolean isAmbiguousFormName(Integer id, String name) throws TKException(Code) | | Checks wether the specified form name is ambiguous.
Parameters: id - the optional form id to be excluded from the check. Parameters: name - the form name to be checked. true if the specified form name is ambiguous,otherwise false . throws: TKException - if an error occurred during the check. |
isSloppyNamingEnabled | public static boolean isSloppyNamingEnabled()(Code) | | Checks wether sloppy naming is enabled.
true if sloppy naming is enabled,otherwise false . |
isUnsafeFormModification | public static boolean isUnsafeFormModification(TKEvent event)(Code) | | Checks wether the specified event may cause an unsafe modification.
Parameters: event - the event to be checked. true if the specified event may cause an unsafe modification,otherwise false . |
isUnsafeModificationEnabled | public static boolean isUnsafeModificationEnabled()(Code) | | Checks wether unsafe modification is enabled.
true if unsafe modification is enabled,otherwise false . |
keepCTContext | public static void keepCTContext(TKEvent event, TKHTMLTemplate template)(Code) | | Keeps the context by passing all parameters of the event
into the given template.
Parameters: event - the event. Parameters: template - the template. |
switchTest | public static void switchTest(TKHTMLTemplate template, boolean test)(Code) | | Switches between normal and testing mode by setting the
according parameters in the template.
Parameters: template - the template. Parameters: test - specifies the mode. |
|
|