package com.fr.design.style.background; /** * Created by richie on 16/5/18. */ public class BackgroundUIWrapper { public static BackgroundUIWrapper create() { return new BackgroundUIWrapper(); } private int index = -1; private String title; private Class clazz; private BackgroundUIWrapper() { } public Class getType() { return clazz; } public BackgroundUIWrapper setType(Class clazz) { this.clazz = clazz; return this; } public String getTitle() { return title; } public BackgroundUIWrapper setTitle(String title) { this.title = title; return this; } public int getIndex() { return index; } public BackgroundUIWrapper setIndex(int index) { if (this.index == -1) { this.index = index; } return this; } }