Package de.xima.fc.gui.bean
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:
ValueDescriptorFormComponent
-
-
Constructor Summary
Constructors Constructor Description ValueDescriptorFormBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublegetDoubleMaxValue()Gets the default maximum value for the<p:inputNumber max="...">component.DoublegetDoubleMinValue()Gets the default minimum value for the<p:inputNumber min="...">component.voidonAddListItem(javax.faces.event.ActionEvent event)Invoked when the user presses the "add" button for a list, this callback is invoked.voidonAddMapEntry(javax.faces.event.ActionEvent event)Invoked when the user presses the "add" button below a map.voidonAddRecordEntry(javax.faces.event.AjaxBehaviorEvent event)Invoked when the user selects a new key to add to a record.voidonAddRoot(javax.faces.event.AjaxBehaviorEvent event)voidonDeleteListItem(javax.faces.event.ActionEvent event)Invoked when the user presses the "delete" button for a list item.voidonDeleteMapEntry(javax.faces.event.ActionEvent event)Invoked when the user presses the "delete" button for a map entry.voidonDeleteRecordEntry(javax.faces.event.ActionEvent event)Invoked when the user presses the "delete" button for an optional record entry.voidonDeleteRootItem(javax.faces.event.ActionEvent event)Invoked when the user presses the "delete" button for a root item.voidonDiscriminatorChange(javax.faces.event.AjaxBehaviorEvent event)Callback invoked when the user changes the discriminator value of a union value.
-
-
-
Method Detail
-
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.
-
-