Examples of RowData


Examples of org.eclipse.swt.layout.RowData

        GridData lblUrlGD = new GridData(SWT.FILL, SWT.FILL, true, false);
        lblUrlGD.horizontalSpan = 2;
        lblUrl.setLayoutData(lblUrlGD);

        txtUrl = new Text(control, SWT.BORDER);
        txtUrl.setLayoutData(new RowData(380, 20));
        GridData txtUrlGD = new GridData(SWT.FILL, SWT.FILL, true, false);
        txtUrl.setLayoutData(txtUrlGD);
        Button browseButton = new Button(control, SWT.PUSH);
        browseButton.setLayoutData(new GridData(SWT.END, SWT.FILL, false, false));
        browseButton.setText("...");
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

    protected Control buildControl(Composite composite) {
        Composite control = new Composite(composite, SWT.NONE);
        control.setLayout(new RowLayout(SWT.VERTICAL));
       
        Label text = new Label(control, SWT.HORIZONTAL | SWT.WRAP);
        text.setLayoutData(new RowData(400, 70));
        text.setText(Messages.Wizard_Osm_Info);
       
        Link link = new Link(control, SWT.BORDER);
        link.setText(Messages.Wizard_Osm_InfoLink);
        link.setLayoutData(new RowData(400, 40));
        link.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                Program.launch("http://www.openstreetmap.org/"); //$NON-NLS-1$
            }
        });

        imageCache = new ImageRegistry(composite.getDisplay());
        ImageDescriptor desc = ImageDescriptor.createFromFile(getClass(),
                OSMControl.IMG_OSM);
        imageCache.put(OSMControl.IMG_OSM, desc);
       
        Composite imgControl = new Composite(control, SWT.NONE);
        imgControl.setLayoutData(new RowData(300, 100));
        imgControl.setBackgroundImage(imageCache.get(OSMControl.IMG_OSM));
       
        this.control = control;
       
        return control;
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

        Composite control = new Composite(composite, SWT.NONE);
        control.setLayout(new RowLayout(SWT.VERTICAL));
       
        //region Description
        Link text = new Link(control, SWT.HORIZONTAL | SWT.WRAP);
        text.setLayoutData(new RowData(400, 110));
        text.setText(Messages.Wizard_CS_Description);
        text.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                Program.launch(Messages.Wizard_CS_UrlTileNames);
            }
        });
        //endregion
       
        //region URL
        Label lblUrl = new Label (control, SWT.HORIZONTAL | SWT.BOLD);
        lblUrl.setText(Messages.Wizard_CS_Url);
       
        Font boldFont = JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT);
        lblUrl.setFont(boldFont);
       
        txtUrl = new Text (control, SWT.BORDER);
        txtUrl.setLayoutData(new RowData(380, 20));
        txtUrl.setText(Messages.Wizard_CS_UrlDefault);
        //endregion
       
        // type
        typeButton = new Button(control, SWT.CHECK);
        typeButton.setLayoutData(new RowData(380, 20));
        typeButton.setText("Handle as TMS as opposed to Google tile schema.");
        // end type
       
       
        //region Zoom-Range
        Composite compositeRow = new Composite(control, SWT.NONE);
        compositeRow.setLayout(new RowLayout(SWT.HORIZONTAL));
       
        Composite compositeZoom = new Composite(compositeRow, SWT.NONE);
        compositeZoom.setLayout(new RowLayout(SWT.VERTICAL));
        compositeZoom.setLayoutData(new RowData(200, 100));
       
        Label lblZoom = new Label (compositeZoom, SWT.HORIZONTAL | SWT.BOLD);
        lblZoom.setText(Messages.Wizard_CS_ZoomLevel);
        lblZoom.setFont(boldFont);
       
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

    protected Control buildControl(Composite composite) {
        Composite control = new Composite(composite, SWT.NONE);
        control.setLayout(new RowLayout(SWT.VERTICAL));
       
        Label text = new Label(control, SWT.HORIZONTAL | SWT.WRAP);
        text.setLayoutData(new RowData(400, 60));
        text.setText(Messages.Wizard_Nasa_Info);
       
        Link link = new Link(control, SWT.BORDER);
        link.setText(Messages.Wizard_Nasa_InfoLink);
        link.setLayoutData(new RowData(400, 40));
        link.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                Program.launch("http://onearth.jpl.nasa.gov/tiled.html"); //$NON-NLS-1$
            }
        });

        imageCache = new ImageRegistry(composite.getDisplay());
        ImageDescriptor desc = ImageDescriptor.createFromFile(getClass(),
                NASAControl.IMG_NASA);
        imageCache.put(NASAControl.IMG_NASA, desc);
       
        Composite imgControl = new Composite(control, SWT.NONE);
        imgControl.setLayoutData(new RowData(300, 100));
        imgControl.setBackgroundImage(imageCache.get(NASAControl.IMG_NASA));
       
        this.control = control;
       
        return control;
View Full Code Here

Examples of org.hbaseexplorer.domain.RowData

                    skip--;
                }

                Result result = resultScanner.next();

                rowData = new RowData();
                if (result != null) {
                    rowData.setRowKey(result.getRow());
                    rowKey = rowData.getRowKeyString();
                   
                    for (KeyValue kv : result.list()) {
View Full Code Here

Examples of org.neo4j.batchimport.importer.RowData

import static org.junit.Assert.assertEquals;

public class DataTest {
    @Test
    public void testConvertType() throws Exception {
        RowData data = new RowData("a:int\tb:float\tc:float", "\t", 0);
        data.processLine("100\t100.0\t1E+10");
        Map<String,Object> row = data.getProperties();
        assertEquals(100, row.get("a"));
        assertEquals(true,row.get("b") instanceof Float);
        assertEquals(100.0F, row.get("b"));
        assertEquals(true,row.get("b") instanceof Float);
        assertEquals(100.0F, row.get("b"));
View Full Code Here

Examples of org.neo4j.batchimport.importer.RowData

        assertEquals(1E+10F, row.get("c"));
    }

    @Test
    public void testRelationship() throws Exception {
        RowData data = new RowData("start\tend\ttype\tproperty", "\t", 3);
        data.processLine("1\t2\tTYPE\tPROPERTY");
        Map<String,Object> row = data.getProperties();
        assertEquals("1", data.getValue(0));
        assertEquals("2", data.getValue(1));
        assertEquals("TYPE", data.getTypeLabels()[0]);
        assertEquals("PROPERTY", row.get("property"));
    }
View Full Code Here

Examples of org.neo4j.batchimport.importer.RowData

        assertEquals("PROPERTY", row.get("property"));
    }

    @Test
    public void testRelationshipWithNoProperty() throws Exception {
        RowData data = new RowData("start\tend\ttype", "\t", 3);
        data.processLine("1\t2\tTYPE");
        assertEquals("1", data.getValue(0));
        assertEquals("2", data.getValue(1));
        assertEquals("TYPE", data.getTypeLabels()[0]);
    }
View Full Code Here

Examples of org.neo4j.batchimport.importer.RowData

        assertEquals("TYPE", data.getTypeLabels()[0]);
    }

    @Test
    public void testNodeLabels() throws Exception {
        RowData data = new RowData("labels", "\t", 3);
        data.processLine("TYPE1,TYPE2");
        assertEquals("TYPE1", data.getTypeLabels()[0]);
        assertEquals("TYPE2", data.getTypeLabels()[1]);
    }
View Full Code Here

Examples of org.neo4j.batchimport.importer.RowData

        assertEquals("TYPE1", data.getTypeLabels()[0]);
        assertEquals("TYPE2", data.getTypeLabels()[1]);
    }
    @Test
    public void testNodeLabelsWithLabelType() throws Exception {
        RowData data = new RowData("foo:label", "\t", 3);
        data.processLine("TYPE1,TYPE2");
        assertEquals("TYPE1", data.getTypeLabels()[0]);
        assertEquals("TYPE2", data.getTypeLabels()[1]);
    }
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.