Search in sources :

Example 1 with UIFormCustomValidator

use of com.twinsoft.convertigo.beans.mobile.components.UIFormCustomValidator in project convertigo by convertigo.

the class MobileUIComponentTreeObject method launchEditor.

@Override
public void launchEditor(String editorType) {
    UIComponent uic = getObject();
    if (uic instanceof UICustom) {
        openHtmlFileEditor();
    } else if (uic instanceof UIStyle) {
        openCssFileEditor();
    } else if (uic instanceof UICustomAction) {
        String functionMarker = "function:" + ((UICustomAction) uic).getActionName();
        editFunction(uic, functionMarker, "actionValue");
    } else if (uic instanceof UIFormCustomValidator) {
        String functionMarker = "function:" + ((UIFormCustomValidator) uic).getValidatorName();
        editFunction(uic, functionMarker, "validatorValue");
    } else {
        super.launchEditor(editorType);
    }
}
Also used : UICustom(com.twinsoft.convertigo.beans.mobile.components.UICustom) UIStyle(com.twinsoft.convertigo.beans.mobile.components.UIStyle) UIComponent(com.twinsoft.convertigo.beans.mobile.components.UIComponent) UICustomAction(com.twinsoft.convertigo.beans.mobile.components.UICustomAction) UIFormCustomValidator(com.twinsoft.convertigo.beans.mobile.components.UIFormCustomValidator)

Aggregations

UIComponent (com.twinsoft.convertigo.beans.mobile.components.UIComponent)1 UICustom (com.twinsoft.convertigo.beans.mobile.components.UICustom)1 UICustomAction (com.twinsoft.convertigo.beans.mobile.components.UICustomAction)1 UIFormCustomValidator (com.twinsoft.convertigo.beans.mobile.components.UIFormCustomValidator)1 UIStyle (com.twinsoft.convertigo.beans.mobile.components.UIStyle)1