CollectionFieldInterface

public interface CollectionFieldInterface<T, E> extends FieldInterface<T, E>

Field that manipulates multiple views together.

Its important to note that the specific fields don’t loose there individuality and the values return will be values for each single view.

Setting will be attempted on each single view if its value is found in the map of values passed in.

Methods

addField

void addField(String name, View view)

Add view to the collection.

Parameters:
  • name – identify the view uniquely
  • view – the view instance

addField

void addField(String name, View view, boolean editable)

Add view to the collection.

Parameters:
  • name – identify the view uniquely
  • view – the view instance
  • editable – indicate if view allows having its values being set, true if view is editable, else false.

addField

void addField(FieldInterface field)

Add field to the collection.

Parameters:
  • field – field to be added to the collection

getFields

Map<String, FieldInterface> getFields()

The fields that make up the collection

Returns:map of fields. that are the in the collection field.

getValue

E getValue()

getView

T getView()

setValue

void setValue(E o)