Creates an icon button.<p>

@param name the name
@param description the description
@param icon the icon

@return the created button
11174
public static Button createIconButton(String name, String description, Resource icon) {

        return createIconButton(name, description, icon, I_CmsAppButtonProvider.BUTTON_STYLE_TRANSPARENT);
    }
997639
public void setLockIcon(LockIcon icon, String iconTitle) {

        if (m_lockIcon == null) {
            m_lockIcon = new HTML();
            m_lockIcon.addClickHandler(m_iconSuperClickHandler);
            m_contentPanel.add(m_lockIcon);
        }
        switch (icon) {
            case CLOSED:
                m_lockIcon.setStyleName(
                    I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockIcon()
                        + " "
                        + I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockClosed());
                break;
            case OPEN:
                m_lockIcon.setStyleName(
                    I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockIcon()
                        + " "
                        + I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockOpen());
                break;
            case SHARED_CLOSED:
                m_lockIcon.setStyleName(
                    I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockIcon()
                        + " "
                        + I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockSharedClosed());
                break;
            case SHARED_OPEN:
                m_lockIcon.setStyleName(
                    I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockIcon()
                        + " "
                        + I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockSharedOpen());
                break;
            case NONE:
            default:
                m_lockIcon.setStyleName(I_CmsLayoutBundle.INSTANCE.listItemWidgetCss().lockIcon());
        }

        m_lockIcon.setTitle(concatIconTitles(m_iconTitle, iconTitle));
        m_lockIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
    }
877195
public static Resource create(String name, String imageName, String imageTag) {
    Map<String, String> labels = new LinkedHashMap<String, String>();
    labels.put(NAME_KEY, checkNotNull(name, "name"));
    labels.put(IMAGE_NAME_KEY, checkNotNull(imageName, "imageName"));
    labels.put(IMAGE_TAG_KEY, checkNotNull(imageTag, "imageTag"));
    return Resource.create(TYPE, labels);
  }
433770
public final <T> void addOption(String name, String description)
    {
        addOption(String.class, name, description, null);
    }
1272636
public function filterButton(
        string $name,
        string $id,
        string $class = null,
        string $icon = null,
        string $title = null,
        string $originTitle = null,
        string $view = null
    ): string {
        $icon = $icon ? $icon : 'fa fa-filter';
        $class = $class ? $class : 'btn btn-xs btn-default';
        $title = $title ? $title : '';
        $originTitle = $originTitle ? $originTitle : GridView::trans('grid.showSimilar');
        $view = $view ?: 'column.filterButton';

        return GridView::view($view, [
            'id'          => $id,
            'name'        => $name,
            'class'       => $class,
            'icon'        => $icon,
            'title'       => $title,
            'originTitle' => $originTitle,
        ])->render();
    }
328168
protected JQMButton createButton(String text, String url, DataIcon icon) {
        JQMButton button = new JQMButton(text, url);
        if (icon != null)
            button.withBuiltInIcon(icon);
        return button;
    }
1273728
public void setTypeAttributes(String name, String key, String icon) {

        setName(name);
        setKey(key);
        setIcon(icon);
    }
599304
public CmsPushButton createFavButton() {

        CmsPushButton favButton = new CmsPushButton();
        favButton.setImageClass(I_CmsButton.ButtonData.ADD_TO_FAVORITES.getSmallIconClass());
        favButton.setTitle(I_CmsButton.ButtonData.ADD_TO_FAVORITES.getTitle());
        favButton.setButtonStyle(I_CmsButton.ButtonStyle.FONT_ICON, null);
        add(favButton);
        favButton.addClickHandler(new ClickHandler() {

            public void onClick(ClickEvent event) {

                CmsContainerpageController.get().getHandler().addToFavorites(getContentId().toString());
            }
        });
        return favButton;
    }
1032624
public final AbstractButton createButton(String faceDescriptorId, ButtonFactory buttonFactory) {
		return createButton(faceDescriptorId, buttonFactory, getDefaultButtonConfigurer());
	}
291816
public final <T> void addOption(Class<T> cls, String name, String description)
    {
        addOption(cls, name, description, null);
    }
962128
public void setIcon(String icon)
    {
        ExtendedInfo info = getInfo(icon);
        if (info != null)
            info._icon = icon;
    }
1229201
public void setIcon(Icon icon) {

        if (icon == null) {
            m_iconContainer.clear();
            this.m_icon = null;
        } else {
            m_iconContainer.getElement().appendChild(icon.getElement());
            this.m_icon = icon;
        }
    }
500674
public static ImageIcon loadImageIcon(final String iconName, final Class<?> clazz) {
        ImageIcon icon = null;

        if (iconName != null) {
            final URL iconResource = clazz.getResource(iconName);
            if (iconResource == null) {
                LOGGER.error("Icon could not be loaded: '" + iconName);
                icon = null;
            } else {
                icon = new ImageIcon(iconResource);
            }
        }

        return icon;
    }
275795
public BoxWebLink.Info createWebLink(String name, URL linkURL, String description) {
        JsonObject parent = new JsonObject();
        parent.add("id", this.getID());

        JsonObject newWebLink = new JsonObject();
        newWebLink.add("name", name);
        newWebLink.add("parent", parent);
        newWebLink.add("url", linkURL.toString());

        if (description != null) {
            newWebLink.add("description", description);
        }

        BoxJSONRequest request = new BoxJSONRequest(this.getAPI(),
                CREATE_WEB_LINK_URL.build(this.getAPI().getBaseURL()), "POST");
        request.setBody(newWebLink.toString());
        BoxJSONResponse response = (BoxJSONResponse) request.send();
        JsonObject responseJSON = JsonObject.readFrom(response.getJSON());

        BoxWebLink createdWebLink = new BoxWebLink(this.getAPI(), responseJSON.get("id").asString());
        return createdWebLink.new Info(responseJSON);
    }
720144
public Theme createTheme(String name, Map<String, Object> attributes) {
        return getInstance().create().theme(name, this, attributes);
    }
1295076
private static CmsPushButton createButton(String imageClass, String title) {

        CmsPushButton result = new CmsPushButton();
        result.setImageClass(imageClass);
        result.setButtonStyle(ButtonStyle.FONT_ICON, null);
        result.setTitle(title);
        return result;
    }
747328
public static Component createDropDown(FontIcon icon, Component content, String title) {

        return createDropDown(getDropDownButtonHtml(icon), content, title);
    }