Search in sources :

Example 1 with ITagsProperty

use of com.twinsoft.convertigo.beans.core.ITagsProperty in project convertigo by convertigo.

the class StringComboBoxPropertyDescriptor method getTags.

public static String[] getTags(DatabaseObjectTreeObject databaseObjectTreeObject, String propertyName) {
    DatabaseObject bean = (DatabaseObject) databaseObjectTreeObject.getObject();
    ITagsProperty tagsProperty = null;
    if (bean instanceof ITagsProperty) {
        tagsProperty = (ITagsProperty) bean;
    } else {
        return new String[] { "" };
    }
    String[] sResults = tagsProperty.getTagsForProperty(propertyName);
    return sResults;
}
Also used : ITagsProperty(com.twinsoft.convertigo.beans.core.ITagsProperty) DatabaseObject(com.twinsoft.convertigo.beans.core.DatabaseObject)

Example 2 with ITagsProperty

use of com.twinsoft.convertigo.beans.core.ITagsProperty in project convertigo by convertigo.

the class NgxSmartSourcePropertyDescriptor method getTags.

public static String[] getTags(DatabaseObjectTreeObject databaseObjectTreeObject, String propertyName) {
    DatabaseObject bean = (DatabaseObject) databaseObjectTreeObject.getObject();
    ITagsProperty tagsProperty = null;
    if (bean instanceof ITagsProperty) {
        tagsProperty = (ITagsProperty) bean;
    } else {
        return new String[] { "" };
    }
    String[] sResults = tagsProperty.getTagsForProperty(propertyName);
    return sResults;
}
Also used : ITagsProperty(com.twinsoft.convertigo.beans.core.ITagsProperty) DatabaseObject(com.twinsoft.convertigo.beans.core.DatabaseObject)

Example 3 with ITagsProperty

use of com.twinsoft.convertigo.beans.core.ITagsProperty in project convertigo by convertigo.

the class NgxSmartSourceTypeCellEditor method getTags.

private String[] getTags() {
    if (databaseObjectTreeObject != null && propertyDescriptor != null) {
        String propertyName = (String) propertyDescriptor.getId();
        DatabaseObject bean = (DatabaseObject) databaseObjectTreeObject.getObject();
        if (bean instanceof ITagsProperty) {
            return ((ITagsProperty) bean).getTagsForProperty(propertyName);
        }
    }
    return new String[] { "" };
}
Also used : ITagsProperty(com.twinsoft.convertigo.beans.core.ITagsProperty) DatabaseObject(com.twinsoft.convertigo.beans.core.DatabaseObject)

Example 4 with ITagsProperty

use of com.twinsoft.convertigo.beans.core.ITagsProperty in project convertigo by convertigo.

the class PropertyWithTagsEditorAdvance method getTags.

public static String[] getTags(DatabaseObjectTreeObject databaseObjectTreeObject, String propertyName) {
    DatabaseObject bean = (DatabaseObject) databaseObjectTreeObject.getObject();
    ITagsProperty tagsProperty = null;
    if (bean instanceof ITagsProperty) {
        tagsProperty = (ITagsProperty) bean;
    } else {
        return new String[] { "" };
    }
    String[] sResults = tagsProperty.getTagsForProperty(propertyName);
    return sResults;
}
Also used : ITagsProperty(com.twinsoft.convertigo.beans.core.ITagsProperty) DatabaseObject(com.twinsoft.convertigo.beans.core.DatabaseObject)

Example 5 with ITagsProperty

use of com.twinsoft.convertigo.beans.core.ITagsProperty in project convertigo by convertigo.

the class MobileSmartSourcePropertyDescriptor method getTags.

public static String[] getTags(DatabaseObjectTreeObject databaseObjectTreeObject, String propertyName) {
    DatabaseObject bean = (DatabaseObject) databaseObjectTreeObject.getObject();
    ITagsProperty tagsProperty = null;
    if (bean instanceof ITagsProperty) {
        tagsProperty = (ITagsProperty) bean;
    } else {
        return new String[] { "" };
    }
    String[] sResults = tagsProperty.getTagsForProperty(propertyName);
    return sResults;
}
Also used : ITagsProperty(com.twinsoft.convertigo.beans.core.ITagsProperty) DatabaseObject(com.twinsoft.convertigo.beans.core.DatabaseObject)

Aggregations

DatabaseObject (com.twinsoft.convertigo.beans.core.DatabaseObject)6 ITagsProperty (com.twinsoft.convertigo.beans.core.ITagsProperty)6