public class AjaxOption extends Object
AjaxOptions
,
AjaxValue
Modifier and Type | Class and Description |
---|---|
static class |
AjaxOption.Type
AjaxOption.Type is a simple enumeration of the types that AjaxValue can interpret.
|
Modifier and Type | Field and Description |
---|---|
static AjaxOption.Type |
ARRAY |
static AjaxOption.Type |
BOOLEAN |
static AjaxOption.Type |
DEFAULT |
static AjaxOption.Type |
DICTIONARY |
static AjaxOption.Type |
FUNCTION |
static AjaxOption.Type |
FUNCTION_1 |
static AjaxOption.Type |
FUNCTION_2 |
static AjaxOption.Type |
NUMBER |
static AjaxOption.Type |
SCRIPT |
static AjaxOption.Type |
STRING |
static AjaxOption.Type |
STRING_ARRAY |
static AjaxOption.Type |
STRING_OR_ARRAY |
Constructor and Description |
---|
AjaxOption(String name) |
AjaxOption(String name,
AjaxOption.Type type) |
AjaxOption(String name,
Object defaultValue,
AjaxOption.Type type) |
AjaxOption(String name,
String bindingName,
Object defaultValue,
AjaxOption.Type type) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToDictionary(WOComponent component,
NSDictionary<String,? extends WOAssociation> associations,
NSMutableDictionary<String,String> dictionary)
Evaluates this AjaxOption on a WODynamicElement and adds the name and JavaScript formatted value to dictionary.
|
void |
addToDictionary(WOComponent component,
NSMutableDictionary<String,String> dictionary)
Evaluates this AjaxOption on a WOComponent and adds the name and JavaScript formatted value to dictionary.
|
static NSMutableDictionary<String,String> |
createAjaxOptionsDictionary(NSArray<AjaxOption> ajaxOptions,
WOComponent component) |
static NSMutableDictionary<String,String> |
createAjaxOptionsDictionary(NSArray<AjaxOption> ajaxOptions,
WOComponent component,
NSDictionary<String,? extends WOAssociation> associations) |
Object |
defaultValue() |
String |
name() |
AjaxOption.Type |
type() |
AjaxValue |
valueForObject(Object obj) |
protected Object |
valueInComponent(WOComponent component) |
protected Object |
valueInComponent(WOComponent component,
NSDictionary<String,? extends WOAssociation> associations) |
public static final AjaxOption.Type DEFAULT
public static final AjaxOption.Type STRING
public static final AjaxOption.Type SCRIPT
public static final AjaxOption.Type NUMBER
public static final AjaxOption.Type ARRAY
public static final AjaxOption.Type STRING_ARRAY
public static final AjaxOption.Type BOOLEAN
public static final AjaxOption.Type STRING_OR_ARRAY
public static final AjaxOption.Type DICTIONARY
public static final AjaxOption.Type FUNCTION
public static final AjaxOption.Type FUNCTION_1
public static final AjaxOption.Type FUNCTION_2
public AjaxOption(String name)
public AjaxOption(String name, AjaxOption.Type type)
public AjaxOption(String name, Object defaultValue, AjaxOption.Type type)
public AjaxOption(String name, String bindingName, Object defaultValue, AjaxOption.Type type)
public String name()
public AjaxOption.Type type()
public AjaxValue valueForObject(Object obj)
obj
- the Object to return an AjaxValue forpublic Object defaultValue()
protected Object valueInComponent(WOComponent component)
protected Object valueInComponent(WOComponent component, NSDictionary<String,? extends WOAssociation> associations)
public void addToDictionary(WOComponent component, NSMutableDictionary<String,String> dictionary)
component
- WOComponent to get binding value fromdictionary
- mutable dictionary to add key-value pair toprotected void addToDictionary(WOComponent component, NSDictionary<String,? extends WOAssociation> associations, NSMutableDictionary<String,String> dictionary)
component
- WOComponent to get binding value fromassociations
- dictionary of associations to get WOAssocation providing value fromdictionary
- mutable dictionary to add key-value pair topublic static NSMutableDictionary<String,String> createAjaxOptionsDictionary(NSArray<AjaxOption> ajaxOptions, WOComponent component)
ajaxOptions
- list of AjaxOption to evaluate on componentcomponent
- WOComponent to get binding value frompublic static NSMutableDictionary<String,String> createAjaxOptionsDictionary(NSArray<AjaxOption> ajaxOptions, WOComponent component, NSDictionary<String,? extends WOAssociation> associations)
ajaxOptions
- list of AjaxOption to evaluate on componentcomponent
- WOComponent to get binding value fromassociations
- dictionary of associations to get WOAssocation providing value fromCopyright © 2002 – 2024 Project Wonder.