Package org.auraframework.instance

Examples of org.auraframework.instance.Component


    @AuraEnabled
    public static Component getOutputDateCmp(@Key("inVar") Date inVar) throws DefinitionNotFoundException,
            QuickFixException {
        log.info("api:getOutputDateCmp value received on server:" + inVar);
        Map<String, Object> attributes = Maps.newHashMap();
        Component outputDateCmp = null;

        attributes.put("value", inVar);
        try {
            outputDateCmp = Aura.getInstanceService().getInstance("ui:outputDate", ComponentDef.class, attributes);
        } catch (Exception e) {
View Full Code Here


    public static Component getOutputTimeCmp(@Key("inVar") Date inVar) throws DefinitionNotFoundException,
            QuickFixException {
        log.info("api:getOutputDateTimeCmp value received on server:" + inVar);
        Map<String, Object> attributes = Maps.newHashMap();

        Component outputDateCmp = null;
        long time = inVar.getTime();
        Calendar c = Calendar.getInstance();
        c.setTime(new Date(time));
        attributes.put("value", inVar);
        try {
View Full Code Here

    @AuraEnabled
    public static Component getOutputDateTimeCmp(@Key("inVar") Date inVar) throws DefinitionNotFoundException,
            QuickFixException {
        log.info("api:getOutputDateTimeCmp value received on server:" + inVar);
        Map<String, Object> attributes = Maps.newHashMap();
        Component outputDateCmp = null;

        long time = inVar.getTime();
        Calendar c = Calendar.getInstance();
        c.setTime(new Date(time));
        attributes.put("value", c);
View Full Code Here

    @AuraEnabled
    public static Component getOutputCurrencyCmp(@Key("inVar") BigDecimal inVar) throws DefinitionNotFoundException,
            QuickFixException {
        log.info("api:getOutputCurrencyCmp value received on server:" + inVar);
        Map<String, Object> attributes = Maps.newHashMap();
        Component outputCmp = null;
        try {
            attributes.put("value", inVar);
            outputCmp = Aura.getInstanceService().getInstance("ui:outputCurrency", ComponentDef.class, attributes);
        } catch (Exception nfe) {
            StringWriter errors = new StringWriter();
View Full Code Here

    @AuraEnabled
    public static Component getOutputPercentCmp(@Key("inVar") BigDecimal inVar) throws DefinitionNotFoundException,
            QuickFixException {
        log.info("api:getOutputPercentCmp value received on server:" + inVar);
        Map<String, Object> attributes = Maps.newHashMap();
        Component outputCmp = null;
        try {
            attributes.put("value", inVar);
            outputCmp = Aura.getInstanceService().getInstance("ui:outputPercent", ComponentDef.class, attributes);
        } catch (Exception nfe) {
            StringWriter errors = new StringWriter();
View Full Code Here

            DefinitionService definitionService = Aura.getDefinitionService();
            InstanceService instanceService = Aura.getInstanceService();
            DefDescriptor<ComponentDef> tmplDesc = definitionService
                    .getDefDescriptor("ui:manifest", ComponentDef.class);
            Component tmpl = instanceService.getInstance(tmplDesc, attribs);
            Aura.getRenderingService().render(tmpl, response.getWriter());
        } catch (Exception e) {
            Aura.getExceptionAdapter().handleException(e);
            // Can't throw exception here: to set manifest OBSOLETE
            response.setStatus(HttpServletResponse.SC_NOT_FOUND);
View Full Code Here

TOP

Related Classes of org.auraframework.instance.Component

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.