* @param viewObject the ViewObject.
*/
public TableModelImpl(final ViewObject viewObject) {
this.viewObject = viewObject;
this.collectionModel = new CollectionModelImpl(viewObject);
final LocaleContext locale = viewObject.getApplicationModule().getSession().getLocaleContext();
for (AttributeDef adef : viewObject.getAttributeDefs()) {
if (adef.getUIHelper().getDisplayHint(locale) == AttributeHints.ATTRIBUTE_DISPLAY_HINT_DISPLAY) {
final AttributeDescriptorImpl ad = new AttributeDescriptorImpl(adef, locale);
attributes.add(ad);
columns.add(new AttributeColumnDescriptorImpl(ad));