Class ValueDescriptorFormBean

java.lang.Object
de.xima.fc.gui.bean.ValueDescriptorFormBean

@RequestScoped @Named public class ValueDescriptorFormBean extends Object
Backing bean for the <xi:valueDescriptorForm /> component.
Since:
8.5.0
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the default maximum value for the <p:inputNumber max="..."> component.
    Gets the default minimum value for the <p:inputNumber min="..."> component.
    void
    onAddListItem(javax.faces.event.ActionEvent event)
    Invoked when the user presses the "add" button for a list, this callback is invoked.
    void
    onAddMapEntry(javax.faces.event.ActionEvent event)
    Invoked when the user presses the "add" button below a map.
    void
    onAddRecordEntry(javax.faces.event.AjaxBehaviorEvent event)
    Invoked when the user selects a new key to add to a record.
    void
    onAddRoot(javax.faces.event.AjaxBehaviorEvent event)
     
    void
    onDeleteListItem(javax.faces.event.ActionEvent event)
    Invoked when the user presses the "delete" button for a list item.
    void
    onDeleteMapEntry(javax.faces.event.ActionEvent event)
    Invoked when the user presses the "delete" button for a map entry.
    void
    onDeleteRecordEntry(javax.faces.event.ActionEvent event)
    Invoked when the user presses the "delete" button for an optional record entry.
    void
    onDeleteRootItem(javax.faces.event.ActionEvent event)
    Invoked when the user presses the "delete" button for a root item.
    void
    onDiscriminatorChange(javax.faces.event.AjaxBehaviorEvent event)
    Callback invoked when the user changes the discriminator value of a union value.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ValueDescriptorFormBean

      public ValueDescriptorFormBean()
  • Method Details

    • getDoubleMaxValue

      public Double getDoubleMaxValue()
      Gets the default maximum value for the <p:inputNumber max="..."> component.
      Returns:
      The maximum value.
    • getDoubleMinValue

      public Double getDoubleMinValue()
      Gets the default minimum value for the <p:inputNumber min="..."> component.
      Returns:
      The minimum value.
    • onAddListItem

      public void onAddListItem(javax.faces.event.ActionEvent event)
      Invoked when the user presses the "add" button for a list, this callback is invoked. Adds a new item to the list and rebuilds the form.
      Parameters:
      event - The event that triggered the action.
    • onAddMapEntry

      public void onAddMapEntry(javax.faces.event.ActionEvent event)
      Invoked when the user presses the "add" button below a map. Adds a new entry to the map and rebuilds the form.
      Parameters:
      event - The event that triggered the action.
    • onAddRecordEntry

      public void onAddRecordEntry(javax.faces.event.AjaxBehaviorEvent event)
      Invoked when the user selects a new key to add to a record. Adds a new entry to the record and rebuilds the form. Note that only optional keys can be added or removed.
      Parameters:
      event - The event that triggered the action.
    • onAddRoot

      public void onAddRoot(javax.faces.event.AjaxBehaviorEvent event)
    • onDeleteListItem

      public void onDeleteListItem(javax.faces.event.ActionEvent event)
      Invoked when the user presses the "delete" button for a list item. Removes the item from the list and rebuilds the form.
      Parameters:
      event - The event that triggered the action.
    • onDeleteMapEntry

      public void onDeleteMapEntry(javax.faces.event.ActionEvent event)
      Invoked when the user presses the "delete" button for a map entry. Removes the entry from the map and rebuilds the form.
      Parameters:
      event - The event that triggered the action.
    • onDeleteRecordEntry

      public void onDeleteRecordEntry(javax.faces.event.ActionEvent event)
      Invoked when the user presses the "delete" button for an optional record entry. Removes the entry from the record and rebuilds the form.
      Parameters:
      event - The event that triggered the action.
    • onDeleteRootItem

      public void onDeleteRootItem(javax.faces.event.ActionEvent event)
      Invoked when the user presses the "delete" button for a root item. Removes the root item from the form and rebuilds the form.
      Parameters:
      event - The event that triggered the action.
    • onDiscriminatorChange

      public void onDiscriminatorChange(javax.faces.event.AjaxBehaviorEvent event)
      Callback invoked when the user changes the discriminator value of a union value. Updates the value to the new type and rebuilds the form.
      Parameters:
      event - The AJAX event.