Examples of PAPIElement


Examples of com.volantis.mcs.papi.PAPIElement

            public void writeInitialFocus(String tabindex) {
                writeInitialFocusCalled = true;
            }
        };
        PAPIElement element = createTestablePAPIElement();
        TestMarinerRequestContext requestContext = new TestMarinerRequestContext();
        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        XFTextInputAttributes attributes = new XFTextInputAttributes();
        com.volantis.mcs.protocols.XFTextInputAttributes pattributes =
                new com.volantis.mcs.protocols.XFTextInputAttributes();
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

     * @param command the test command to be executed
     * @todo later this might want to go into the base PAPI test abstract
     */
    protected void doTest(TestCommand command) throws Exception {
        // Set up the element for testing
        PAPIElement element = createTestablePAPIElement();

        // Set up the common test environment
        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        ProtocolBuilder builder = new ProtocolBuilder();
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

     * Test the elementStartImpl method. In particular any state changes
     * performed by this method. Note any changes made by calls to other
     * methods are assumed to be tested already.
     */
    public void testElementStartImpl() throws Exception {
        PAPIElement element = createTestablePAPIElement();
        TestMarinerPageContext pageContext = new TestMarinerPageContext();
        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        VolantisProtocol protocol = new VolantisProtocolStub();
        pageContext.pushRequestContext(requestContext);
        pageContext.setProtocol(protocol);
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

     * Note that the method tested does not use the pageContext parameter and
     * the PAPIAttributes parameter is always assumed to be of the type
     * XFTextInputAttributes.
     */
    public void testGetInitialValue() throws Exception {
        PAPIElement element = createTestablePAPIElement();       
        XFTextInputAttributes attributes = new XFTextInputAttributes();
        assertNull(attributes.getInitial());
        XFTextInputElementImpl xfElement = (XFTextInputElementImpl)element;
        String result = xfElement.getInitialValue(null, attributes);
        assertNull(result);
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

    /**
     * Test the getting of the field type. This is simple test to ensure the
     * result returned is never null and the type is TextInputFieldType.
     */
    public void testGetFieldType() throws Exception {
        PAPIElement element = createTestablePAPIElement();
        FieldType type = null;
        XFTextInputElementImpl xfElement = (XFTextInputElementImpl)element;
        type = xfElement.getFieldType(null);
        assertNotNull(type);
        assertTrue(type instanceof TextInputFieldType);
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

        // Get the page context.
        MarinerPageContext pageContext
                = ContextInternals.getMarinerPageContext(context);

        // Some XFFormField elements do not have to be inside a form.
        PAPIElement enclosingElement = pageContext.getCurrentElement();
        XFFormElementImpl formElement;
        if (enclosingElement instanceof XFFormElementImpl) {
            formElement = (XFFormElementImpl) enclosingElement;
        } else {
            if (allowedInline) {
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

        this.papiImplementationInfo = papiImplementationInfo;
    }

    //Javadoc inherited
    public PAPIElement createPAPIElement() {
        PAPIElement element = null;

        try {
            element = (PAPIElement) papiImplementationInfo.getElementImplClass()
                    .newInstance();
        } catch (InstantiationException e) {
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

        elementStack.push(element);
    }

    // javadoc inherited from superclass
    public void popElement(PAPIElement expectedElement) {
        PAPIElement popped = (PAPIElement) elementStack.pop();
        if (null != expectedElement &&
                !expectedElement.equals(popped)) {
            throw new IllegalStateException("PAPIELEMENT STACK:"
                    + " Expected " + expectedElement
                    + " popped " + popped);
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

    /**
     * MCSI: Pop the PAPIElement from the top of the stack.
     * @return The PAPIElement from the top of the stack
     */
    public PAPIElement popMCSIElement() {
        PAPIElement element = (PAPIElement) mcsiElementStack.pop();
        return element;
    }
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElement

     * MCSI: Return the MCSIElement from the top of the stack without
     * removing it from the stack.
     * @return The MCSI element from the top of the stack
     */
    public PAPIElement peekMCSIElement() {
        PAPIElement element = (PAPIElement) mcsiElementStack.peek();
        return element;
    }
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.