Examples of InputAttributes


Examples of com.volantis.mcs.protocols.widgets.attributes.InputAttributes

public class InputElement extends WidgetElement {
   
    public InputElement(XDIMEContextInternal context){
        super(WidgetElements.INPUT, context);
        protocolAttributes = new InputAttributes();
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.InputAttributes

        }
        super.callCloseOnProtocol(context);
    }
   
    protected void initialiseElementSpecificAttributes(XDIMEContextInternal context, XDIMEAttributes attributes) throws XDIMEException {
        InputAttributes inputAttributes = (InputAttributes) protocolAttributes;
       
        // Get value and type attributes
        inputAttributes.setValue(attributes.getValue("", "value"));
        inputAttributes.setType(attributes.getValue("", "type"));
       
        // Get optional property attribute
        String propertyAttributeValue = attributes.getValue("", "property");

        if (propertyAttributeValue != null) {
            inputAttributes.setPropertyReference(new PropertyReferenceImpl(propertyAttributeValue));
        }
    }   
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.InputAttributes

            return;
        }       

        require(WidgetScriptModules.BASE_BB_CONTROLS_INPUT, protocol, attributes);
       
        InputAttributes inputAttributes = (InputAttributes)attributes;
       
        // Render input element.
        DOMOutputBuffer buffer = getCurrentBuffer(protocol);
       
        inputElement = buffer.openStyledElement("input", attributes.getStyles());
       
        if (inputAttributes.getName() != null) {
            inputElement.setAttribute("name", inputAttributes.getName());
        }

        if (inputAttributes.getValue() != null) {
            inputElement.setAttribute("value", inputAttributes.getValue());
        }       

        if (inputAttributes.getType() != null) {
            inputElement.setAttribute("type", inputAttributes.getType());
        }               
       
        if (inputAttributes.getId() != null) {
            inputElement.setAttribute("id", inputAttributes.getId());
        } else {
            inputElement.setAttribute("id", protocol.getMarinerPageContext().generateUniqueFCID());           
        }          
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.widgets.attributes.InputAttributes

       
        DOMOutputBuffer currentBuffer = getCurrentBuffer(protocol);
        currentBuffer.closeElement("input");
       
        // Get widget attributes.
        InputAttributes inputAttributes = (InputAttributes) attributes;
       
        PropertyReference propertyReference = inputAttributes.getPropertyReference();
       
        // Finally, render the JavaScript part.
        StringBuffer scriptBuffer = new StringBuffer();
       
        if (attributes.getId() != null) {
View Full Code Here

Examples of org.netbeans.api.lexer.InputAttributes

  @Override
  public List<Embedding> getEmbeddings(Snapshot snapshot) {
    // for sending atributes for LatteLexer (dynamic variables)
    // may be not necessary
    Document doc = snapshot.getSource().getDocument(true);
    InputAttributes inputAttributes = new InputAttributes();
    doc.putProperty(InputAttributes.class, inputAttributes);

    TemplateEmbedder embedder = new TemplateEmbedder(snapshot);

    List<Embedding> embeds = embedder.getEmbeddings();
View Full Code Here

Examples of org.netbeans.api.lexer.InputAttributes

  public static TokenSequence<LatteTokenId> getSequence(Token<LatteTopTokenId> t) {
    if(tokenCache.has(t)) {
      return tokenCache.get(t);
    }

    InputAttributes attrs = new InputAttributes();

    Syntax syntax = (Syntax) t.getProperty("syntax");

    Language<LatteTokenId> language = LatteTokenId.language(syntax);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.