All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robovm.ibxcode.pbxproj.PrintStreamTab Maven / Gradle / Ivy

Go to download

The RoboVM doesn't provide any functionality to edit xib/storyboards at iOS side. All changes to be done in Interface Builder. To simplify it simple xcode project is generated that contains all classes that are exported by Custom class. These classes expose IBOutlet/IBOutletCollection/IBAction/IBObservable to easy attach outlet to corresponding field/setter in class

The newest version!
package org.robovm.ibxcode.pbxproj;

import java.io.PrintStream;

/**
 * Wrapper that adds intend
 */
public class PrintStreamTab {
    public final String TAB = "\t";
    private final PrintStream ps;
    private final String intend;

    public PrintStreamTab(PrintStream ps) {
        this.ps = ps;
        this.intend = "";
    }

    public PrintStreamTab(PrintStreamTab parent) {
        this.ps = parent.ps;
        this.intend = parent.intend + TAB;
    }

    public void println(String s) {
        this.ps.println(this.intend + s);
    }

    public void println() {
        this.ps.println();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy