Package com.cosmo.ui.controls

Examples of com.cosmo.ui.controls.SliderItem


      pc.addContent(header, ContentColumns.MAIN);

      SliderControl slider = new SliderControl(getWorkspace());
      slider.setWidth(550);
      slider.setHeight(413);
      slider.addItem(new SliderItem(
            "img/Cosmos_01.jpg",
            550,
            413,
            "Slider 1",
            "Quisque tristique massa nulla, eget congue lectus varius eget. Mauris eget nisi tincidunt, condimentum orci ut, consequat felis. Pellentesque pretium hendrerit egestas. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus quis ipsum sed diam faucibus iaculis lacinia ac nisi.",
            SliderItem.SlideType.Image));
      slider.addItem(new SliderItem(
            "img/Cosmos_02.jpg",
            550,
            413,
            "Slider 2",
            "Quisque tristique massa nulla, eget congue lectus varius eget. Mauris eget nisi tincidunt, condimentum orci ut, consequat felis. Pellentesque pretium hendrerit egestas. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus quis ipsum sed diam faucibus iaculis lacinia ac nisi.",
            SliderItem.SlideType.Image));
      slider.addItem(new SliderItem(
            "img/Cosmos_03.jpg",
            550,
            413,
            "Slider 3",
            "Quisque tristique massa nulla, eget congue lectus varius eget. Mauris eget nisi tincidunt, condimentum orci ut, consequat felis. Pellentesque pretium hendrerit egestas. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus quis ipsum sed diam faucibus iaculis lacinia ac nisi.",
            SliderItem.SlideType.Image));
      slider.addItem(new SliderItem(
            "img/Cosmos_04.jpg",
            550,
            413,
            "Slider 4",
            "Quisque tristique massa nulla, eget congue lectus varius eget. Mauris eget nisi tincidunt, condimentum orci ut, consequat felis. Pellentesque pretium hendrerit egestas. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus quis ipsum sed diam faucibus iaculis lacinia ac nisi.",
            SliderItem.SlideType.Image));
      slider.addItem(new SliderItem(
            "img/Cosmos_05.jpg",
            550,
            413,
            "Slider 5",
            "Quisque tristique massa nulla, eget congue lectus varius eget. Mauris eget nisi tincidunt, condimentum orci ut, consequat felis. Pellentesque pretium hendrerit egestas. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus quis ipsum sed diam faucibus iaculis lacinia ac nisi.",
View Full Code Here


      pc.addContent(header, ContentColumns.MAIN);
     
      SliderControl slider = new SliderControl(getWorkspace());
      slider.setWidth(550);
      slider.setHeight(413);
      slider.addItem(new SliderItem("img/Cosmos_01.jpg", 550, 413, "Slider 1", "Quisque tristique massa nulla, eget congue lectus varius eget. Mauris eget nisi tincidunt, condimentum orci ut, consequat felis. Pellentesque pretium hendrerit egestas. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus quis ipsum sed diam faucibus iaculis lacinia ac nisi.", SliderItem.SlideType.Image));
      slider.addItem(new SliderItem("img/Cosmos_02.jpg", 550, 413, "Slider 2", "Quisque tristique massa nulla, eget congue lectus varius eget. Mauris eget nisi tincidunt, condimentum orci ut, consequat felis. Pellentesque pretium hendrerit egestas. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus quis ipsum sed diam faucibus iaculis lacinia ac nisi.", SliderItem.SlideType.Image));
      slider.addItem(new SliderItem("img/Cosmos_03.jpg", 550, 413, "Slider 3", "Quisque tristique massa nulla, eget congue lectus varius eget. Mauris eget nisi tincidunt, condimentum orci ut, consequat felis. Pellentesque pretium hendrerit egestas. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus quis ipsum sed diam faucibus iaculis lacinia ac nisi.", SliderItem.SlideType.Image));
      slider.addItem(new SliderItem("img/Cosmos_04.jpg", 550, 413, "Slider 4", "Quisque tristique massa nulla, eget congue lectus varius eget. Mauris eget nisi tincidunt, condimentum orci ut, consequat felis. Pellentesque pretium hendrerit egestas. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus quis ipsum sed diam faucibus iaculis lacinia ac nisi.", SliderItem.SlideType.Image));
      slider.addItem(new SliderItem("img/Cosmos_05.jpg", 550, 413, "Slider 5", "Quisque tristique massa nulla, eget congue lectus varius eget. Mauris eget nisi tincidunt, condimentum orci ut, consequat felis. Pellentesque pretium hendrerit egestas. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus quis ipsum sed diam faucibus iaculis lacinia ac nisi.", SliderItem.SlideType.Image));
      pc.addContent(slider, ContentColumns.MAIN);
     
      return pc;
   }
View Full Code Here

TOP

Related Classes of com.cosmo.ui.controls.SliderItem

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.