dcsimg

How do I define an indexed JavaBeans property?

John Zukowski

Indexed properties support indexed, multi-valued collection. The index must be an integer, and the following accessor naming pattern defines an indexed property:

public void setXXX(int index, TYPE value)
public TYPE getXXX(int index)
public void setXXX(TYPE values[])
public TYPE[] getXXX();