Example usage for com.jgoodies.forms.layout FormSpec toString

List of usage examples for com.jgoodies.forms.layout FormSpec toString

Introduction

In this page you can find the example usage for com.jgoodies.forms.layout FormSpec toString.

Prototype

@Override
public final String toString() 

Source Link

Document

Returns a string representation of this form specification.

Usage

From source file:com.intellij.uiDesigner.compiler.FormLayoutUtils.java

License:Apache License

public static String getEncodedSpec(final FormSpec formSpec) {
    String result = formSpec.toString();
    while (true) {
        int pos = result.indexOf("dluX");
        if (pos < 0) {
            pos = result.indexOf("dluY");
        }/*from ww  w . j a  va  2  s  .  c o  m*/
        if (pos < 0) {
            break;
        }
        result = result.substring(0, pos + 3) + result.substring(pos + 4);
    }

    return result;
}