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

com.harium.etyl.ui.TextView Maven / Gradle / Ivy

package com.harium.etyl.ui;

import com.harium.etyl.ui.base.BaseTextView;
import com.harium.etyl.ui.base.UIView;
import com.harium.etyl.ui.theme.ThemeManager;

public class TextView extends UIView {

	private BaseTextView textView;
	
	public TextView(int x, int y, int w, int h) {
		super(x,y,w,h);

		this.textView = ThemeManager.getInstance().getTheme().createTextView(x, y, w, h);
		delegateView(textView);
	}

	public TextView(String text) {
		this(0,0,0,0);
		setText(text);
	}

	public void rebuild() {
		BaseTextView view = ThemeManager.getInstance().getTheme().createTextView(x, y, w, h);
		view.copy(delegatedView);

		delegateView(view);
	}

	public String getText() {
		return textView.getText();
	}

	public void setText(String text) {
		textView.setText(text);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy