Examples of ContainerInstance


Examples of com.volantis.mcs.protocols.layouts.ContainerInstance

     *
     * @return The Container instance which is on the top of the stack.
     */
    public ContainerInstance getCurrentContainerInstance() {

        ContainerInstance instance;
        if (containerInstanceStack == null || containerInstanceStack.isEmpty()) {
            instance = null;
        } else {
            instance = (ContainerInstance) containerInstanceStack.peek();
        }
View Full Code Here

Examples of com.volantis.mcs.protocols.layouts.ContainerInstance

    // JavaDoc inherited
    public void doBooleanInput(XFBooleanAttributes attributes)
            throws ProtocolException {

        DOMOutputBuffer dom;
        ContainerInstance entryContainerInstance =
                attributes.getEntryContainerInstance();

        // Add the caption to the caption containerInstance.
        addFormCaption(attributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.layouts.ContainerInstance

    // JavaDoc inherited
    public void doSelectInput(XFSelectAttributes attributes)
            throws ProtocolException {

        DOMOutputBuffer dom;
        ContainerInstance entryContainerInstance =
                attributes.getEntryContainerInstance();

        // Add the caption to the caption container.
        if (!attributes.isMultiple()) {
            addFormCaption(attributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.layouts.ContainerInstance

    // JavaDoc inherited
    public void doTextInput(XFTextInputAttributes attributes)
            throws ProtocolException {

        DOMOutputBuffer dom;
        ContainerInstance entryContainerInstance =
                attributes.getEntryContainerInstance();

        // Add the caption to the caption container.
        addFormCaption(attributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.layouts.ContainerInstance

     * Add any caption value to the caption container.
     *
     * @param attributes the form field attributes with the caption value.
     */
    private void addFormCaption(XFFormFieldAttributes attributes) {
        ContainerInstance captionContainerInstance =
                attributes.getCaptionContainerInstance();
        String captionValue;

        // Add the caption to the caption container.
        if (captionContainerInstance != null
View Full Code Here

Examples of com.volantis.mcs.protocols.layouts.ContainerInstance

                // the Sun 1.2 jdk compiler
                String title = getPlainText(
                        option.getPrompt());
                option.setTitle(title);

                ContainerInstance entryContainerInstance =
                        option.getEntryContainerInstance();
                if (entryContainerInstance == null) {
                    entryContainerInstance =
                            attributes.getEntryContainerInstance();
                }

                // Get the appropriate buffer based on the entry-containerInstance
                DOMOutputBuffer dom = getCurrentBuffer(entryContainerInstance);

                String value = option.getValue();

                // Try using the caption from the option, otherwise use value

                // Need to fully qualify access to outer class due to bug in
                // the Sun 1.2 jdk compiler.
                String caption = getPlainText(
                        option.getCaption());
                if (caption == null) {
                    caption = value;
                }

                if (attributes.isMultiple()) {
                    // open the option element
                    Element optionElement =
                            dom.openElement(VDXMLConstants.INPUT_FIELD_ELEMENT);

                    optionElement.setAttribute(VDXMLConstants.NAME_ATTRIBUTE,
                                               attributes.getName());
                    optionElement.setAttribute(VDXMLConstants.LIBREVAL_ATTRIBUTE,
                                               VDXMLConstants.NO_VALUE);
                    addStandardColours(attributes, optionElement,
                                       VDXMLConstants.INPUT_FIELD_ELEMENT);

                    // Set a suitable initial value
                    if (option.isSelected()) {
                        optionElement.setAttribute(
                                VDXMLConstants.INIT_ATTRIBUTE,
                                VDXMLConstants.CHOICE_CAPITAL);
                    } else {
                        optionElement.setAttribute(
                                VDXMLConstants.INIT_ATTRIBUTE,
                                VDXMLConstants.CHOICE_EMPTY);
                    }


                    // Add selected ALIASes
                    VDXMLVersion2_0.this.addAliasElement(
                            dom,
                            VDXMLConstants.CHOICE_CAPITAL,
                            VDXMLConstants.ENCODED_FIELD_VALUE +
                                    option.getValue());
                    VDXMLVersion2_0.this.addAliasElement(
                            dom,
                            VDXMLConstants.CHOICE_LOWERCASE,
                            VDXMLConstants.ENCODED_FIELD_VALUE +
                                    option.getValue());

                    // Add not selected alias
                    addAliasElement(dom,
                                    VDXMLConstants.CHOICE_EMPTY,
                                    VDXMLConstants.CHOICE_EMPTY);

                    // Add any helpful prompt set for this node
                    addPrompt(dom, option.getPrompt());

                    // Add the caption for this option
                    ContainerInstance captionContainerInstance =
                            option.getCaptionContainerInstance();
                    if (captionContainerInstance == null) {
                        captionContainerInstance =
                                attributes.getCaptionContainerInstance();
                    }
View Full Code Here

Examples of com.volantis.mcs.protocols.layouts.ContainerInstance

            // Make sure that we make sure that we close any iterator pane
            // buffers.

            // If the caption container instance was specified then end the
            // buffer.
            ContainerInstance captionContainerInstance =
                    fieldAttributes.getCaptionContainerInstance();
            if (captionContainerInstance != null) {
                endCurrentBuffer(captionContainerInstance);
            }

            // If the entry container is not the same container as the caption
            // container then end the buffer.
            ContainerInstance entryContainerInstance =
                    fieldAttributes.getEntryContainerInstance();
            if (entryContainerInstance != null &&
                    entryContainerInstance != captionContainerInstance) {
                endCurrentBuffer(entryContainerInstance);
            }
View Full Code Here

Examples of com.volantis.mcs.protocols.layouts.ContainerInstance

    public void doTextInput(XFTextInputAttributes attributes)
            throws ProtocolException {

        String value;
        int ivalue;
        ContainerInstance entryContainerInstance =
                attributes.getEntryContainerInstance();

        // Write out the caption.
        writeCaption(attributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.layouts.ContainerInstance

    public void doBooleanInput(XFBooleanAttributes attributes)
            throws ProtocolException {

        String value;
        String[] values;
        ContainerInstance entryContainerInstance =
                attributes.getEntryContainerInstance();       

        // Output the caption.
        writeCaption(attributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.layouts.ContainerInstance


    public void doSelectInput(XFSelectAttributes attributes)
        throws ProtocolException {

        ContainerInstance captionContainerInstance;
        ContainerInstance entryContainerInstance;
        String value;

        // Add the caption to the caption container.
        if ((captionContainerInstance =
                attributes.getCaptionContainerInstance()) != null &&
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.