Class WEnumModel<E extends Enum<E>>


public class WEnumModel<E extends Enum<E>> extends WAbstractTableModel
A model that lists the different values of an Enum. This model is often used in conjunction with a WSelectionBox or WComboBox to allow a user to make a choice of a possible value of an enumerated type. The model has one column, and as many rows as the enum has values. As ItemDataRole.Display, the Enum.toString() function is returned while as ItemDataRole.User, the actual Enum value is returned.