Examples of UIButton


Examples of org.jboss.seam.ui.component.UIButton

   }
  
   @Override
   protected void doEncodeBegin(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException
   {
      UIButton button = (UIButton) component;
      writer.startElement(HTML.INPUT_ELEM, button);
      String onclick = getOnClick(button);
      if (!("").equals(onclick) && !button.isDisabled())
      {
         writer.writeAttribute(HTML.ONCLICK_ATTR, onclick, HTML.ONCLICK_ATTR);
      }
      if (button.getId() != null)
      {
         writer.writeAttribute(HTML.ID_ATTR, button.getClientId(context), HTML.ID_ATTR);
      }
      HTML.renderHTMLAttributes(writer, button, HTML.BUTTON_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_ONCLICK);
      if (button.getValue() != null)
      {
         writer.writeAttribute(HTML.VALUE_ATTR, button.getValue(), HTML.VALUE_ATTR);
      }
      if (button.isDisabled())
      {
         writer.writeAttribute(HTML.DISABLED_ATTR, true, HTML.DISABLED_ATTR);
      }
      writer.writeAttribute(HTML.TYPE_ATTR, getType(button), HTML.TYPE_ATTR);
      if (button.getImage() != null)
      {
         writer.writeAttribute(HTML.SRC_ATTR, button.getImage(), HTML.SRC_ATTR);
      }
   }
View Full Code Here

Examples of org.terasology.rendering.nui.widgets.UIButton

                public Boolean get() {
                    return infoBinding.get() != null;
                }
            };

            UIButton editButton = find("edit", UIButton.class);
            UIButton removeButton = find("remove", UIButton.class);
            UIButton joinButton = find("join", UIButton.class);

            editButton.bindEnabled(hasSelection);
            removeButton.bindEnabled(hasSelection);
            joinButton.bindEnabled(hasSelection);
        }

        WidgetUtil.trySubscribe(this, "close", new ActivateEventListener() {
            @Override
            public void onActivated(UIWidget button) {
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.