Java Swing Text Format findElementUp(String name, Element start)

Here you can find the source of findElementUp(String name, Element start)

Description

find Element Up

License

Open Source License

Declaration

public static Element findElementUp(String name, Element start) 

Method Source Code

//package com.java2s;
/*/* w  ww  .  j a  va2  s  .  c  o m*/
 * This file is part of the Scriba source distribution. This is free, open-source 
 * software. For full licensing information, please see the LicensingInformation file
 * at the root level of the distribution.
 *
 * Copyright (c) 2006-2007 Kobrix Software, Inc.
 */

import javax.swing.text.Element;

public class Main {
    public static Element findElementUp(String name, Element start) {
        Element elem = start;
        while ((elem != null) && (!elem.getName().equalsIgnoreCase(name))) {
            elem = elem.getParentElement();
        }
        return elem;
    }
}

Related

  1. createFormatter(String s)
  2. createFormatterMask(final String mask)
  3. createIntegerFormatter(int minimum, int maximum)
  4. createMaskFormatter(final String s)
  5. dataFormatada(Calendar cal)
  6. findMatchingBracket(Element el, int offset)
  7. findNext(boolean reverse, int pos)
  8. formartCpf(String cpf)
  9. format(String pattern, Object value)