Class SelectionRebindValue

java.lang.Object
ch.tocco.nice2.netui.spi.bind.AbstractRebindValue
ch.tocco.nice2.netui.spi.bind.SelectionRebindValue
All Implemented Interfaces:
RebindValue, DwrSerializable

public class SelectionRebindValue extends AbstractRebindValue implements DwrSerializable
Represents a value as received back from the client.

This is for values that are a collection, multiple things. Also For zero-or-one type of selections. For example entity relations in the entity system. In the gui they can look like selection fields, multi selection fields etc.

  • Constructor Details

    • SelectionRebindValue

      public SelectionRebindValue()
  • Method Details

    • hasValue

      public boolean hasValue()
      Description copied from interface: RebindValue
      Tells if there is a value.
      • For a simple value that means: something not null.
      • For a selection value that means: at least one selection.

      Note: this has absolutely nothing to do with RebindValue.isDirty()! This instance may be dirty and have "no value" (something was removed), or be clean and have a value (an initial default value for example).

      Specified by:
      hasValue in interface RebindValue
      See Also:
    • hasNonEmptyValue

      public boolean hasNonEmptyValue()
      Having *any* value qualifies as having a non-empty value. Thus this behaves the same as hasValue() in this impl.
      Specified by:
      hasNonEmptyValue in interface RebindValue
      See Also:
    • getAdded

      public String[] getAdded()
    • setAdded

      public void setAdded(String[] added)
    • getRemoved

      public String[] getRemoved()
    • setRemoved

      public void setRemoved(String[] removed)
    • getTotal

      public String[] getTotal()
    • setTotal

      public void setTotal(String[] total)
    • isMultiple

      public boolean isMultiple()
    • setMultiple

      public void setMultiple(boolean multiple)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • serializeProperties

      public Map<String,?> serializeProperties()
      Specified by:
      serializeProperties in interface DwrSerializable