@ThreadSafe public class AjaxRegistry extends Object implements IAjaxRegistry
IAjaxRegistry.| Constructor and Description |
|---|
AjaxRegistry() |
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.collection.impl.ICommonsMap<String,IAjaxFunctionDeclaration> |
getAllRegisteredFunctions() |
IAjaxFunctionDeclaration |
getRegisteredFunction(String sFunctionName)
Get the registered AJAX function with the specified name
|
boolean |
isRegisteredFunction(String sFunctionName)
Check whether an AJAX function with the given name is present
|
static boolean |
isValidFunctionName(String sFunctionName) |
void |
registerFunction(IAjaxFunctionDeclaration aFunctionDeclaration)
Add a handler function that is used as a callback.
|
String |
toString() |
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsMap<String,IAjaxFunctionDeclaration> getAllRegisteredFunctions()
getAllRegisteredFunctions in interface IAjaxRegistry@Nullable public IAjaxFunctionDeclaration getRegisteredFunction(@Nullable String sFunctionName)
IAjaxRegistrygetRegisteredFunction in interface IAjaxRegistrysFunctionName - The AJAX function name to search. May be null.null if no such AJAX function is registered.public boolean isRegisteredFunction(@Nullable String sFunctionName)
IAjaxRegistryisRegisteredFunction in interface IAjaxRegistrysFunctionName - The name of the AJAX function to check. May be null.true if an AJAX function with the given name is
contained, false otherwise.public void registerFunction(@Nonnull IAjaxFunctionDeclaration aFunctionDeclaration)
IAjaxRegistryregisterFunction in interface IAjaxRegistryaFunctionDeclaration - The AJAX function declaration to be invoked. May not be
null.Copyright © 2014–2019 Philip Helger. All rights reserved.