Set all icons on buttons

        :returns: None
        :rtype: None
        :raises: None
325226
def setup_icons(self, ):
        
        folder_icon = get_icon('glyphicons_144_folder_open.png', asicon=True)
        self.asset_open_path_tb.setIcon(folder_icon)
        self.shot_open_path_tb.setIcon(folder_icon)

        current_icon = get_icon('glyphicons_181_download_alt.png', asicon=True)
        self.current_pb.setIcon(current_icon)

        refresh_icon = get_icon('refresh.png', asicon=True)
        self.refresh_tb.setIcon(refresh_icon)
723265
protected void resetAppIcons() {

        CmsObject cms = A_CmsUI.getCmsObject();
        Locale locale = UI.getCurrent().getLocale();
        m_standardApps.removeAllComponents();
        m_userApps.removeAllComponents();
        m_availableApps.removeAllComponents();
        Collection<I_CmsWorkplaceAppConfiguration> allApps = OpenCms.getWorkplaceAppManager().getWorkplaceApps();
        Collection<I_CmsWorkplaceAppConfiguration> standardApps = OpenCms.getWorkplaceAppManager().getDefaultQuickLaunchConfigurations();
        Collection<I_CmsWorkplaceAppConfiguration> userApps = OpenCms.getWorkplaceAppManager().getUserQuickLauchConfigurations(
            cms);
        for (I_CmsWorkplaceAppConfiguration config : standardApps) {
            CmsAppVisibilityStatus visibility = config.getVisibility(cms);
            if (visibility.isVisible()) {
                Button button = CmsDefaultAppButtonProvider.createAppIconButton(config, locale);
                m_standardApps.addComponent(button);
            }
        }
        for (I_CmsWorkplaceAppConfiguration config : userApps) {
            CmsAppVisibilityStatus visibility = config.getVisibility(cms);
            if (visibility.isVisible() && visibility.isActive()) {
                Button button = CmsDefaultAppButtonProvider.createAppIconButton(config, locale);
                //    button.setWidth("166px");
                DragSourceExtension<Button> extButton = new DragSourceExtension<>(button);
                button.setData(config.getId());
                extButton.setDataTransferText(config.getId());
                m_userApps.addComponent(button);
            }
        }
        for (I_CmsWorkplaceAppConfiguration config : allApps) {
            CmsAppVisibilityStatus visibility = config.getVisibility(cms);
            if (!standardApps.contains(config)
                && !userApps.contains(config)
                && visibility.isVisible()
                && visibility.isActive()) {
                Button button = CmsDefaultAppButtonProvider.createAppIconButton(config, locale);
                //  button.setWidth("166px");
                DragSourceExtension<Button> extButton = new DragSourceExtension<>(button);
                button.setData(config.getId());
                extButton.setDataTransferText(config.getId());
                m_availableApps.addComponent(button);
            }
        }
    }
1244495
public void setSideIcons(Icon[] icons)
	{
		for (int i = 0; i < icons.length; i++)
		{
			if (icons[i] != null)
				setSideIcon(EnumFacing.getFront(i), icons[i]);
		}
	}
556907
public void setEditIcon(Icon editIcon, String text) {
        if (editIcon != null) {
            editButton.setIcon(editIcon);
            if (text != null) {
                editButton.setToolTipText(text);
            }
            editButton.setText("");
        } else {
            editButton.setIcon(null);
            if (text != null) {
                editButton.setText(text);
            }
        }
    }
1098736
@Override
	public void setIconForButton(IconLocationType iconForButton)
	{
		if (null != iconForButton)
		{
			myUserInterfaceAction.setIconForButton(iconForButton);
			ImageIcon _icon = retrieveIcon(getIconForButton());
			putValue(Action.LARGE_ICON_KEY, _icon);
		}
	}
866112
def set_default(self, default):
        
        # Find index of choice
        try:
            default_index = self._parameter.default_values.index(default)
            self.default_input_button_group.button(default_index).setChecked(
                True)
        except ValueError:
            last_index = len(self._parameter.default_values) - 1
            self.default_input_button_group.button(last_index).setChecked(
                True)
            self.custom_value.setValue(default)

        self.toggle_custom_value()
412446
def _update_lock_icon(self):
        """"""
        icon = ima.icon('lock') if self.locked else ima.icon('lock_open')
        self.locked_button.setIcon(icon)
        tip = _("Unlock") if self.locked else _("Lock")
        self.locked_button.setToolTip(tip)
590473
private void initButtons() {

        m_addButton.addChoice(
            m_attributeHandler.getWidgetService(),
            new CmsChoiceMenuEntryBean(m_attributeHandler.getAttributeName()),
            new AsyncCallback<CmsChoiceMenuEntryBean>() {

                public void onFailure(Throwable caught) {

                    // will not be called

                }

                public void onSuccess(CmsChoiceMenuEntryBean selectedEntry) {

                    // nothing to do
                }
            });
        m_addButton.addDomHandler(new ClickHandler() {

            public void onClick(ClickEvent event) {

                m_addButton.hide();
                addNewAttributeValue();
                event.preventDefault();
                event.stopPropagation();

            }
        }, ClickEvent.getType());

        m_editButton.setImageClass(I_CmsButton.PEN_SMALL);
        m_editButton.setButtonStyle(ButtonStyle.FONT_ICON, null);

        m_removeButton.setImageClass(I_CmsButton.CUT_SMALL);
        m_removeButton.setButtonStyle(ButtonStyle.FONT_ICON, null);

        m_upButton.setImageClass(I_CmsButton.EDIT_UP_SMALL);
        m_upButton.setButtonStyle(ButtonStyle.FONT_ICON, null);

        m_downButton.setImageClass(I_CmsButton.EDIT_DOWN_SMALL);
        m_downButton.setButtonStyle(ButtonStyle.FONT_ICON, null);

        if (CmsEditorBase.hasDictionary()) {
            String label = m_widgetService.getAttributeLabel(m_attributeHandler.getAttributeName());
            m_addButton.setTitle(CmsEditorBase.getMessageForKey(CmsEditorBase.GUI_VIEW_ADD_1, label));
            m_removeButton.setTitle(CmsEditorBase.getMessageForKey(CmsEditorBase.GUI_VIEW_DELETE_1, label));
            m_upButton.setTitle(CmsEditorBase.getMessageForKey(CmsEditorBase.GUI_VIEW_MOVE_UP_0));
            m_downButton.setTitle(CmsEditorBase.getMessageForKey(CmsEditorBase.GUI_VIEW_MOVE_DOWN_0));
            m_title = CmsEditorBase.getMessageForKey(CmsEditorBase.GUI_VIEW_EDIT_1, label);
            m_editButton.setTitle(m_title);
        }
    }
176303
def set_icon(self, icon, qtgui_module):
        """"""

        if self._use_fallback:
            icon.addFile(self._fallback)
        else:
            for role, pixmap in self._roles.items():
                if role.endswith("off"):
                    mode = role[:-3]
                    state = qtgui_module.QIcon.Off
                elif role.endswith("on"):
                    mode = role[:-2]
                    state = qtgui_module.QIcon.On
                else:
                    continue

                mode = getattr(qtgui_module.QIcon, mode.title())

                if pixmap:
                    icon.addPixmap(qtgui_module.QPixmap(pixmap), mode, state)
                else:
                    icon.addPixmap(qtgui_module.QPixmap(), mode, state)

        self.icon = icon
652998
def toggle_buttons(self):
        """"""
        all_types = self.all_types.get_value()
        self.idx_evt_type.setEnabled(not all_types)
450524
def setButton(self, which, button):
        
        try:
            self._buttons[which].deleteLater()
        except KeyError:
            pass

        button.setParent(self)
        self._buttons[which] = button
790448
def _set_boutons_interface(self, buttons):
        """"""
        for id_action, f, d, is_active in buttons:
            icon = self.get_icon(id_action)
            action = self.addAction(QIcon(icon), d)
            action.setEnabled(is_active)
            action.triggered.connect(f)
59098
private void createButtons() {
        iconButton = new NoFocusButton("InternalFrameTitlePane.iconifyButtonAccessibleName");
        iconButton.addActionListener(iconifyAction);

        if (iconButtonToolTip != null && iconButtonToolTip.length() != 0) {
            iconButton.setToolTipText(iconButtonToolTip);
        }

        maxButton = new NoFocusButton("InternalFrameTitlePane.maximizeButtonAccessibleName");
        maxButton.addActionListener(maximizeAction);

        closeButton = new NoFocusButton("InternalFrameTitlePane.closeButtonAccessibleName");
        closeButton.addActionListener(closeAction);

        if (closeButtonToolTip != null && closeButtonToolTip.length() != 0) {
            closeButton.setToolTipText(closeButtonToolTip);
        }

        setButtonTooltips();
    }
322097
def refreshButtons(self):
        
        last = self._last
        first = self._first
        
        joiner = self._containerWidget.currentJoiner()
        
        # the first button set can contain the toggle options
        if first:
            self.uiJoinSBTN.setActionTexts(['AND', 'OR'])
        elif joiner == QueryCompound.Op.And:
            self.uiJoinSBTN.setActionTexts(['AND'])
        else:
            self.uiJoinSBTN.setActionTexts(['OR'])
        
        # the last option should not show an active action
        if last:
            self.uiJoinSBTN.setCurrentAction(None)
        
        # otherwise, highlight the proper action
        else:
            act = self.uiJoinSBTN.findAction(QueryCompound.Op[joiner].upper())
            self.uiJoinSBTN.setCurrentAction(act)
        
        enable = QueryCompound.typecheck(self._query) or self.isChecked()
        self.uiEnterBTN.setEnabled(enable)
59513
def set_footer(self, text: str, icon_url: str = None) -> None:
        
        self.footer = {
            'text': text,
            'icon_url': icon_url
        }
452786
public void updateIconChoice() {
		iconsPanel.clear();
		icons.clear();
		Set<String> urlSet = new LinkedHashSet<String>(hrefsChoiceList);
		for (String url : urlSet) {
			ClickableIconImage clickImage = getClickableIconImage(url);
			icons.put(url, clickImage);
			iconsPanel.add(clickImage);
		}
		setSelectedIconUrl(defaultIconUrl);
	}
671695
def setFont(self, font):
        
        super(XSplitButton, self).setFont(font)
        self.rebuild()