Package com.volantis.mcs.protocols.forms

Examples of com.volantis.mcs.protocols.forms.AbstractFormFragment


    protected void doFormLink(OutputBuffer dom, XFFormAttributes attributes,
            Link link) throws ProtocolException {

        AbstractForm form = attributes.getFormData();
        String formName = form.getName();
        AbstractFormFragment fragment = link.getFormFragment();
        String fragmentName = fragment.getName();

        MarinerURL marinerURL = context.getRequestURL(true);
        if (!marinerURL.isRelative()) {
            marinerURL = new MarinerURL(marinerURL.getPath());
        }
View Full Code Here


        AbstractForm form = attributes.getFormData();

        // Check if any fragmentation links need to be written
        if (form.isFragmented()) {
            AbstractFormFragment active = getCurrentFormFragment(form);
            AbstractFormFragment previous = form
                    .getPreviousFormFragment(active);
            AbstractFormFragment next = form.getNextFormFragment(active);

            List links = active.getBeforeFragmentLinks(previous, next);

            for (int i = 0; i < links.size(); i++) {
                Link link = (Link) links.get(i);
View Full Code Here

        AbstractForm form = attributes.getFormData();

        // Check if any fragmentation links need to be written
        if (form.isFragmented()) {
            AbstractFormFragment active = getCurrentFormFragment(form);
            AbstractFormFragment previous = form
                    .getPreviousFormFragment(active);
            AbstractFormFragment next = form.getNextFormFragment(active);

            List links = active.getAfterFragmentLinks(previous, next);

            for (int i = 0; i < links.size(); i++) {
                Link link = (Link) links.get(i);
View Full Code Here

     *            whose currently active fragment to return
     * @return AbstractFormFragment representing the currently active form
     *         fragment in the given form
     */
    private AbstractFormFragment getCurrentFormFragment(AbstractForm form) {
        AbstractFormFragment fragment = null;
        if (form instanceof FormInstance) {
            FormFragment formFragment = context.getCurrentFormFragment();
            FormFragmentInstance formFragmentInstance =
                (FormFragmentInstance) context.getDeviceLayoutContext().
                                  getCurrentFormatInstance(formFragment);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.forms.AbstractFormFragment

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.