public String getComponent(Elem component) {
        switch(component) {
            case NAME: return tName.getText();
            case EXT: return ext;
            case DATE: return tDate.getText();
            case COOR: {
                if(coor==null) return "";
                else return coor.getDecimal();
            }
            case DESC: return tDesc.getText();
            case CATS: return tCategories.getText();
            default: return null;
        }
    }