using UnityEngine.UIElements;
namespace Unity.Cloud.Collaborate.Components
{
abstract class TabPageComponent : VisualElement
{
///
/// Current active status for this page.
///
protected bool Active { get; private set; }
///
/// Set active status of this page.
///
/// True if the page is to be active.
public void SetActive(bool active)
{
Active = active;
if (Active)
{
SetActive();
}
else
{
SetInactive();
}
}
///
/// Set this tab page active.
///
protected abstract void SetActive();
///
/// Set this tab page inactive.
///
protected abstract void SetInactive();
}
}