Examples of ComponentBuilder


Examples of eu.planets_project.tb.gui.backing.admin.wsclient.util.ComponentBuilder

      this.xmlResponse = "";

      // Create the in memory model of services and operations
      // defined in the current WSDL
      log.debug("WsdlURI = " + wsdlURI);
      ComponentBuilder builder = new ComponentBuilder();
      List services = builder.buildComponents(wsdlURI.toString());

      // List all the services defined in the current WSDL
      Iterator iter = services.iterator();

      boolean firstLoop = true;
View Full Code Here

Examples of net.md_5.bungee.api.chat.ComponentBuilder

                if ( server.canAccess( player ) )
                {
                    TextComponent serverTextComponent = new TextComponent( first ? server.getName() : ", " + server.getName() );
                    int count = server.getPlayers().size();
                    serverTextComponent.setHoverEvent( new HoverEvent( HoverEvent.Action.SHOW_TEXT,
                            new ComponentBuilder( count + ( count == 1 ? " player" : " players" ) + "\n" )
                            .append( "Click to connect to the server" ).italic( true )
                            .create() ) );
                    serverTextComponent.setClickEvent( new ClickEvent( ClickEvent.Action.RUN_COMMAND, "/server " + server.getName() ) );
                    serverList.addExtra( serverTextComponent );
                    first = false;
View Full Code Here

Examples of org.geoserver.web.ComponentBuilder

public class WCSLayerConfigTest extends GeoServerWicketCoverageTestSupport{
    public void testValues() {
       
        login();
        FormTestPage page = new FormTestPage(new ComponentBuilder() {
       
            public Component buildComponent(String id) {
                CoverageInfo info = getCatalog().getResources(CoverageInfo.class).get(0);
                LayerInfo layer = getCatalog().getLayerByName(info.getName());
                return new WCSLayerConfig(id, new Model(layer));
View Full Code Here

Examples of org.geoserver.web.ComponentBuilder

    @Override
    protected void setUpInternal() throws Exception {
        super.setUpInternal();
       
        e = new ReferencedEnvelope(-180,180,-90,90, DefaultGeographicCRS.WGS84);
        tester.startPage(new FormTestPage(new ComponentBuilder() {
       
            public Component buildComponent(String id) {
                return new EnvelopePanel(id, e);
            }
        }));
View Full Code Here

Examples of org.geoserver.web.ComponentBuilder

        tester = new WicketTester();
        keywords = new ArrayList<String>();
        keywords.add("one");
        keywords.add("two");
        keywords.add("three");
        tester.startPage(new FormTestPage(new ComponentBuilder() {
       
            public Component buildComponent(String id) {
                return new KeywordsEditor(id, new Model(keywords));
            }
        }));
View Full Code Here

Examples of org.geoserver.web.ComponentBuilder

    protected void setUp() throws Exception {
        tester = new WicketTester();
    }
   
    public void testBasicTable() throws Exception {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
       
            public Component buildComponent(String id) {
                return new IntegerTable(id, false);
            }
        }));
View Full Code Here

Examples of org.geoserver.web.ComponentBuilder

        DataView dv = (DataView) tester.getComponentFromLastRenderedPage("form:panel:listContainer:items");
        assertEquals(10, dv.size());
    }
   
    public void testFullSelection() throws Exception {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
           
            public Component buildComponent(String id) {
                return new IntegerTable(id, true);
            }
        }));
View Full Code Here

Examples of org.geoserver.web.ComponentBuilder

import org.geoserver.web.GeoServerWicketTestSupport;

public class ConfirmRemovalPanelTest extends GeoServerWicketTestSupport {

    void setupPanel(final CatalogInfo... roots) {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
           
            public Component buildComponent(String id) {
                return new ConfirmRemovalPanel(id, roots);
            }
        }));
View Full Code Here

Examples of org.geoserver.web.ComponentBuilder

        table.setSelection(false);
        assertEquals(0, table.getSelection().size());
    }
   
    public void testSingleSelection() throws Exception {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
           
            public Component buildComponent(String id) {
                return new IntegerTable(id, true);
            }
        }));
View Full Code Here

Examples of org.geoserver.web.ComponentBuilder

    FormTestPage page;

    @Override
    protected void setUpInternal() throws Exception {
        polygons = getCatalog().getLayerByName(MockData.BASIC_POLYGONS.getLocalPart());
        page = new FormTestPage(new ComponentBuilder() {
       
            public Component buildComponent(String id) {
                return new HTTPLayerConfig(id, new Model(polygons));
            }
        });
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.