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

org.robovm.ibxcode.pbxproj.PBXNode 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;

public class PBXNode {
    private static long uuidCounter = 0x10000000000000L;
    protected final String uuid;
    protected final PBXProject project;
    protected final String name;

    public PBXNode(PBXProject project, String name) {
        this.project = project;
        this.name = name;
        this.uuid = String.format("AB%020x", uuidCounter) ;
        uuidCounter += 1;
    }

    public PBXProject getProject() {
        return project;
    }

    public String getUuid() {
        return uuid;
    }

    public String getName() {
        return name;
    }

    public String uuidWithComment() {
        return this.uuid + " /* " + this.name + " */";
    }

    public void dump(PrintStreamTab ps) {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy