Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Adds the given handler to the list of handlers that have been defined to trigger when the field’s value is updated by the user. This method is a convenience method, and is identical to calling onUpdate().add(B25.FormEventHandler handler).

Parameters:

Name

Type

Description

handler

B25.FormEventHandler

The handler to trigger when the field is updated.

...

updateValue

Code Block
void updateValue(Object newValue)

Calling this method allows you to directly set the value of the field. Unlike the value being updated by the user on the form, this action will not trigger any event handlers. Use this method inside your own handlers.

Parameters:

Name

Type

Description

newValue

Object

The value that you want to set the field to.

...

updateValue

Code Block
void updateValue(Object newValue, Boolean triggerChangeHandlers)

...

Note

Be careful about using this method with triggerChangeHandlers=true, because it can cause infinite recursion.

Parameters:

Name

Type

Description

newValue

Object

The value that you want to set the field to.

triggerChangeHandlers

Boolean

Whether this update should trigger other event handlers.

...

hide

Code Block
void hide()

...

Can be called after the hide method to let a field appear on the reservation form.

...

disable

Code Block
void disableddisable()

Disables a field on the reservation form, which will block any input in the field.

...