Adds a new button to the button bar.<p>

@param button the button to add
487935
public void addButton(Widget button) {

        if (m_isFrame) {
            initButtonPanel();
            m_buttonPanel.insert(button, 0);
        } else {
            m_popup.addButton(button);
        }
    }
1302782
public Toolbar addGroup(ToolbarButton... buttons) {
        groups.add(SummernoteOptions.newToolbarGroup(GROUP_PREFIX + GROUP_INDEX++, buttons));
        return this;
    }
841427
protected void updateButtons() {

        List<Button> buttons = ((A_CmsModuleImportForm)m_tabs.getSelectedTab()).getButtons();
        m_buttons.removeAllComponents();
        for (Button button : buttons) {
            m_buttons.addComponent(button);
        }
    }
1190203
private CmsPushButton createOkButton() {

        CmsPushButton button = new CmsPushButton();
        button.setText(Messages.get().key(Messages.GUI_OK_0));
        button.setUseMinWidth(true);
        button.addClickHandler(new ClickHandler() {

            /**
             * @see com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt.event.dom.client.ClickEvent)
             */
            public void onClick(ClickEvent event) {

                onClickOk();
            }
        });
        return button;
    }
296194
public GenericTemplateElementBuilder addLoginButton(String url) {
		Button button = ButtonFactory.createLoginButton(url);
		this.element.addButton(button);
		return this;
	}
629488
public void addButtonLeft(Component button) {

        if (m_buttonsFolded && !isAlwaysShow(button)) {
            m_leftButtons.addComponent(button);
        } else {
            m_itemsLeft.addComponent(button);
        }
        updateFoldingThreshhold();
    }
824998
public void addButton(ToolStripButton button, int position) {
		toolStrip.addButton(button, position);
		extraButtons.add(button);
		button.setDisabled(true);
	}
394525
void toggleTable(Button toggleButton) {

        I_CmsToggleTable table = (I_CmsToggleTable)m_table;
        table.toggle(!CmsVaadinUtils.isButtonPressed(toggleButton));
        CmsVaadinUtils.toggleButton(toggleButton);
        if (!CmsStringUtil.isEmptyOrWhitespaceOnly(m_filterTable.getValue())) {
            filterTable(m_filterTable.getValue());
        }
        updateInfoButton();
    }
221809
private void updateButtonBars() {

        List<I_CmsEditableGroupRow> rows = getRows();
        int i = 0;
        for (I_CmsEditableGroupRow row : rows) {
            boolean first = i == 0;
            boolean last = i == (rows.size() - 1);
            row.getButtonBar().setFirstLast(first, last, m_hideAdd);
            i += 1;
        }
    }
1278062
public void addActionButton(final ToolbarAction action) {
		final IButton button = new IButton();
		button.setWidth(buttonSize);
		button.setHeight(buttonSize);
		button.setIconSize(buttonSize - WidgetLayout.toolbarStripHeight);
		button.setIcon(action.getIcon());
		button.setActionType(SelectionType.BUTTON);
		button.addClickHandler(action);
		button.setShowRollOver(false);
		button.setShowFocused(false);
		button.setTooltip(action.getTooltip());
		button.setDisabled(action.isDisabled());

		if (getMembers() != null && getMembers().length > 0) {
			LayoutSpacer spacer = new LayoutSpacer();
			spacer.setWidth(2);
			super.addMember(spacer);
		}
		action.addToolbarActionHandler(new ToolbarActionHandler() {

			public void onToolbarActionDisabled(ToolbarActionDisabledEvent event) {
				button.setDisabled(true);
			}

			public void onToolbarActionEnabled(ToolbarActionEnabledEvent event) {
				button.setDisabled(false);
			}
		});
		super.addMember(button);
	}
1342752
protected void initializeButton(final Button button, final Color foreground,
		final Color background)
	{
		button.setForeground(foreground);
		button.setBackground(background);
	}
1206841
public static void configureAction (AbstractButton button, String action)
    {
        button.setActionCommand(action);
        button.addActionListener(DISPATCHER);
    }
1302120
public void reinitButton(I_CmsUploadButtonHandler buttonHandler) {

        m_buttonHandler = buttonHandler;
        m_buttonHandler.setButton(this);
        updateState("up");
        m_enabled = true;
        createFileInput();
    }
924803
public void removeButton(Component button) {

        m_itemsLeft.removeComponent(button);
        m_itemsRight.removeComponent(button);
        m_leftButtons.removeComponent(button);
        m_rightButtons.removeComponent(button);
        updateFoldingThreshhold();
    }
617259
public void addButtonToFront(Widget w) {

        m_buttonPanel.insert(w, 0);
        if (CmsCoreProvider.get().isIe7()) {
            m_buttonPanel.getElement().getStyle().setWidth(m_buttonPanel.getWidgetCount() * 22, Unit.PX);
        }
    }
204293
private void addChannelButton() {

        Button button = CmsToolBar.createButton(
            FontOpenCms.LOG,
            CmsVaadinUtils.getMessageText(Messages.GUI_LOGFILE_LOGSETTINGS_TOOL_NAME_0));
        button.addClickListener(new ClickListener() {

            private static final long serialVersionUID = 1L;

            public void buttonClick(ClickEvent event) {

                openSubView(PATH_LOGCHANNEL, true);
            }
        });
        m_uiContext.addToolbarButton(button);

    }
115188
def add_button(self, button):
    """"""
    self._buttons.append(button)
    self._components[button.component_number] = button