Package java.util

Examples of java.util.Stack.elementAt()


            if (i > 1) {
                // not before the filesystem root and not after it, since root
                // already contains one
                sb.append(File.separatorChar);
            }
            sb.append(s.elementAt(i));
        }
        return new File(sb.toString());
    }

    /**
 
View Full Code Here


        // Start from the top of the stack.
        int elementIndex = stack.size() - 1;
       
        while (elementIndex >= 0) {
            Object element = stack.elementAt(elementIndex);
          
            if (element instanceof InputContainer) {
                ((InputContainer)element).addInput((InputAttributes)protocolAttributes);
                break;
            }
View Full Code Here

       
        // Start from the top of the stack.
        int elementIndex = stack.size() - 1;
       
        while (elementIndex >= 0) {
            Object element = stack.elementAt(elementIndex);
          
            // Check, if we got launchable element.
            if (element instanceof Launchable) {
                Launchable launchableCandidate = (Launchable)element;
               
View Full Code Here

        Dismissable widgetToDismiss = null;
        Stack stack = ((XDIMEContextImpl)context).getStack();
        // Start from the top of the stack.
        int elementIndex = stack.size() - 1;       
        while (elementIndex >= 0) {
            Object element = stack.elementAt(elementIndex);          
            if (element instanceof Dismissable) {
                widgetToDismiss = (Dismissable)element;
                dismissAttrs.setDismissableId(
                        widgetToDismiss.getDismissableId());
                break;
View Full Code Here

       
        // Start from the top of the stack.
        int elementIndex = stack.size() - 1;
       
        while (elementIndex >= 0) {
            Object element = stack.elementAt(elementIndex);
          
            // Check, if we got launchable element.
            if (element instanceof WizardElement) {
                wizard = (WizardElement)element;
               
View Full Code Here

        // Start from the top of the stack.
        int elementIndex = stack.size() - 1;
       
        while (elementIndex >= 0) {
            Object element = stack.elementAt(elementIndex);
          
            if (element instanceof ItemDisplayElement) {
                ((ItemDisplayElement)element).addItemProperty((ItemPropertyAttributes)protocolAttributes);
                break;
            }
View Full Code Here

        // Transform presentation stack to SVG
        //
        int nPresentations = presentation.size();
       
        for(i = 0; i < nPresentations; i++) {
            transformStackBuffer.append(convertTransform((TransformStackElement) presentation.elementAt(i)));
            transformStackBuffer.append(SPACE);
        }

        String transformValue = transformStackBuffer.toString().trim();
        return transformValue;
View Full Code Here

            if (i > 1) {
                // not before the filesystem root and not after it, since root
                // already contains one
                sb.append(File.separatorChar);
            }
            sb.append(s.elementAt(i));
        }
        return new File(sb.toString());
    }

    /**
 
View Full Code Here

       
        //-- rebuild URL
        StringBuffer buffer = new StringBuffer(absoluteURL.length());
        for (int i = 0; i < tokens.size(); i++) {
            if (i > 0) buffer.append(HREF_PATH_SEP);
            buffer.append(tokens.elementAt(i).toString());
        }
        return buffer.toString();
    } //-- normalize
   
   
View Full Code Here

        }
        final int elementCount = stack.size();
        m_formatSpecification = new PatternRun[elementCount];

        for (int i = 0; i < elementCount; i++) {
            m_formatSpecification[i] = (PatternRun) stack.elementAt(i);
        }
    }

    /**
     * Set the string description that the format is extracted from.
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.