Dialog::'s addTab() and switchTab() are public