src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java
protected Type getType()
        throws EFapsException
    {
        init();
        final Type ret;
        if (getValues().isEmpty()) {
            final List<EventDefinition> events =  getCommand().getEvents(EventType.UI_TABLE_EVALUATE);
            String typeName = null;
            if (events.size() > 1) {
                throw new EFapsException(this.getClass(), "execute4NoInstance.moreThanOneEvaluate");
            } else {
                final EventDefinition event = events.get(0);
                // test for basic or abstract types
                if (event.getProperty("Type") != null) {
                    typeName = event.getProperty("Type");
                }
                // no type yet search alternatives
                if (typeName == null) {
                    for (int i = 1; i < 100; i++) {
                        final String nameTmp = "Type" + String.format("%02d", i);
                        if (event.getProperty(nameTmp) != null) {
                            typeName = event.getProperty(nameTmp);
                        } else {
                            break;
                        }
                    }
                }
            }
            ret = typeName == null ? null : Type.get(typeName);
        } else {
            ret = getValues().get(0).getInstance().getType();
        }
        return ret;
    }
protected Type getType()
        throws EFapsException
    {
        init();
        final Type ret;
        if (getValues().isEmpty()) {
            final List<EventDefinition> events =  getCommand().getEvents(EventType.UI_TABLE_EVALUATE);
            String typeName = null;
            if (events.size() > 1) {
                throw new EFapsException(this.getClass(), "execute4NoInstance.moreThanOneEvaluate");
            } else {
                final EventDefinition event = events.get(0);
                // test for basic or abstract types
                if (event.getProperty("Type") != null) {
                    typeName = event.getProperty("Type");
                }
                // no type yet search alternatives
                if (typeName == null) {
                    for (int i = 1; i < 100; i++) {
                        final String nameTmp = "Type" + String.format("%02d", i);
                        if (event.getProperty(nameTmp) != null) {
                            typeName = event.getProperty(nameTmp);
                        } else {
                            break;
                        }
                    }
                }
            }
            ret = typeName == null ? null : Type.get(typeName);
        } else {
            ret = getValues().get(0).getInstance().getType();
        }
        return ret;
    }
Method used to evaluate the type for this table from the connected
events.

@return type if found
@throws EFapsException on error