public void setVertical(boolean vertical) {
    if (myVertical == vertical) return;
    removeAll();
    myVertical = vertical;
    updateLayout();
    setContent(myContent);
    setToolbar(myToolbar);
  }
public void setVertical(boolean vertical)