Package com.liferay.faces.alloy.component.icon

Examples of com.liferay.faces.alloy.component.icon.Icon


      ApplicationFactory applicationFactory = (ApplicationFactory) FactoryFinder.getFactory(
          FactoryFinder.APPLICATION_FACTORY);
      Application application = applicationFactory.getApplication();

      // Create an icon component that is to remain detached from the component tree.
      Icon icon = (Icon) application.createComponent(Icon.COMPONENT_TYPE);
      String buttonIconName = getButtonIconName();
      icon.setName(buttonIconName);

      // Create a button component that that is also to remain detached from the component tree.
      Button button = (Button) application.createComponent(Button.COMPONENT_TYPE);
      List<UIComponent> buttonChildren = button.getChildren();
      buttonChildren.add(icon);
View Full Code Here

TOP

Related Classes of com.liferay.faces.alloy.component.icon.Icon

Copyright © 2018 www.massapicom. 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.