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

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

There is a newer version: 1.0.18
Show newest version
package com.harium.etyl.ui;

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

public class Button extends UIView {

	private BaseButton button;

	public Button(int x, int y, int w, int h) {
		super(x,y,w,h);

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

	public Button(Label label) {
		this(0,0,0,0);
		setLabel(label);
	}

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

		delegateView(view);
	}

	public String getAlt() {
		return button.getAlt();
	}

	public Label getLabel() {
		return button.getLabel();
	}

	public void setAlt(String alt) {
		button.setAlt(alt);
	}

	public void setLabel(Label label) {
		this.button.setLabel(label);
	}

	public void setCenterLabel(Label label) {
		button.setCenterLabel(label);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy