Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.InlineLabel.addStyleName()


            // coordinator
            insertActionSeparator(actionsPanel)
                    .addStyleName(StaticResourceBundle.INSTANCE.coreCss().ownerOnlyInline());
            Label link = new InlineLabel("Stick");
            link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
            link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().ownerOnlyInline());
            actionsPanel.add(link);

            link.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent inEvent)
View Full Code Here


            // Flag as Inappropriate
            if (!state.equals(State.READONLY) && !showManageFlagged)
            {
                insertActionSeparator(actionsPanel);
              Label flagLink = new InlineLabel("Flag as Inappropriate");
              flagLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
              actionsPanel.add(flagLink);
            
              flagLink.addClickHandler(new ClickHandler()
              {
                  public void onClick(final ClickEvent event)
View Full Code Here

     * @return The separator widget.
     */
    private Widget insertActionSeparator(final Panel panel)
    {
        Label sep = new InlineLabel("\u2219");
        sep.addStyleName(StaticResourceBundle.INSTANCE.coreCss().actionLinkSeparator());
        panel.add(sep);
        return sep;
    }

    /**
 
View Full Code Here

                timestampActions.add(viaPanel);
            }
            else
            {
                InlineLabel viaLine = new InlineLabel("via " + msg.getAppName());
                viaLine.addStyleName(StaticResourceBundle.INSTANCE.coreCss().viaMetadata());
                timestampActions.add(viaLine);
            }
            // TODO: If appSource is not supplied, the link should go to the respective galleries for apps and plugins.
            // However, the app galery requires knowing the start page tab id, and the worthwhile plugin gallery is only
            // available to coordinators.
View Full Code Here

        // Share
        if (verbRenderer.getAllowShare() && msg.isShareable())
        {
            insertActionSeparator(actionsPanel, null);
            Label shareLink = new InlineLabel("Share");
            shareLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
            actionsPanel.add(shareLink);

            shareLink.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
View Full Code Here

        // Unstick
        // Note: using the cheating way: always create the link, let CSS hide it unless the user is actually a
        // coordinator
        insertActionSeparator(actionsPanel, StaticResourceBundle.INSTANCE.coreCss().ownerOnlyInline());
        Label link = new InlineLabel("Unstick");
        link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
        link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().ownerOnlyInline());
        actionsPanel.add(link);

        link.addClickHandler(new ClickHandler()
        {
View Full Code Here

        // Note: using the cheating way: always create the link, let CSS hide it unless the user is actually a
        // coordinator
        insertActionSeparator(actionsPanel, StaticResourceBundle.INSTANCE.coreCss().ownerOnlyInline());
        Label link = new InlineLabel("Unstick");
        link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
        link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().ownerOnlyInline());
        actionsPanel.add(link);

        link.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent event)
View Full Code Here

     *            Extra style to add.
     */
    private void insertActionSeparator(final ComplexPanel panel, final String extraStyle)
    {
        Label sep = new InlineLabel("\u2219");
        sep.addStyleName(StaticResourceBundle.INSTANCE.coreCss().actionLinkSeparator());
        if (extraStyle != null)
        {
            sep.addStyleName(extraStyle);
        }
        panel.add(sep);
View Full Code Here

    {
        Label sep = new InlineLabel("\u2219");
        sep.addStyleName(StaticResourceBundle.INSTANCE.coreCss().actionLinkSeparator());
        if (extraStyle != null)
        {
            sep.addStyleName(extraStyle);
        }
        panel.add(sep);
    }
}
View Full Code Here

      for (final PlayerContentItem contributor : contributors) {
        if (notFirst) {
          container.add(new InlineHTML(", "));
        }
        InlineLabel contributorLabel = new InlineLabel(contributor.getName());
        contributorLabel.addStyleName(secondaryLinkStyle ? "secondaryLink" : "primaryLink");
        contributorLabel.addStyleName("nowrap");
        contributorLabel.addClickHandler(new ClickHandler() {
          @Override
          public void onClick(ClickEvent e) {
            // TODO: this isn't great, but it works.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.