Package net.rim.device.api.ui

Examples of net.rim.device.api.ui.XYRect


                    }
                };

        // Set the style and apply it to the data template via the
        // setRowProperties() method
        dataTemplate.createRegion(new XYRect(0, 0, 1, 4), _style);

        dataTemplate.setRowProperties(0, new TemplateRowProperties(Font
                .getDefault().getHeight()
                + (_style.getBorder() == null ? 0 : _style.getBorder().getTop()
                        + _style.getBorder().getBottom())
                + (_style.getMargin() == null ? 0 : _style.getMargin().top
                        + _style.getMargin().bottom)));

        for (int i = 0; i < NUM_ROWS; i++) {
            dataTemplate.createRegion(new XYRect(1, i, 1, 1), _style);
            dataTemplate.setRowProperties(i, new TemplateRowProperties(Font
                    .getDefault().getHeight()
                    + (_style.getBorder() == null ? 0 : _style.getBorder()
                            .getTop()
                            + _style.getBorder().getBottom())
View Full Code Here


                return fields;
            }
        };

        // Define the regions of the data template and column/row size
        dataTemplate.createRegion(new XYRect(0, 0, 1, 1));
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(
                Display.getWidth()));
        dataTemplate.setRowProperties(0, new TemplateRowProperties(24));

        _view.setDataTemplate(dataTemplate);
View Full Code Here

                return fields;
            }
        };

        // Create regions for formatting table
        dataTemplate.createRegion(new XYRect(0, 0, 1, 1));
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(
                Display.getWidth()));
        dataTemplate.setRowProperties(0, new TemplateRowProperties(32));
        _view.setDataTemplate(dataTemplate);
        dataTemplate.useFixedHeight(true);
View Full Code Here

                        { new LabelField(text, Field.NON_FOCUSABLE) };

                return fields;
            }
        };
        dataTemplate.createRegion(new XYRect(0, 0, 1, 1));
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(
                Display.getWidth()));
        dataTemplate.setRowProperties(0, new TemplateRowProperties(32));
        _view.setDataTemplate(dataTemplate);
        dataTemplate.useFixedHeight(true);
View Full Code Here

                return fields;
            }
        };

        // Define the regions of the data template and column/row size
        dataTemplate.createRegion(new XYRect(0, 0, 1, 1));
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(
                Display.getWidth()));
        dataTemplate.setRowProperties(0, new TemplateRowProperties(24));

        _view.setDataTemplate(dataTemplate);
View Full Code Here

                        { new LabelField(contact.getFirst() + " "
                                + contact.getLast(), Field.NON_FOCUSABLE) };
                return fields;
            }
        };
        dataTemplate.createRegion(new XYRect(0, 0, 1, 1));
        dataTemplate.setColumnProperties(0, new TemplateColumnProperties(
                Display.getWidth()));
        dataTemplate.setRowProperties(0, new TemplateRowProperties(32));
        _view.setDataTemplate(dataTemplate);
        dataTemplate.useFixedHeight(true);
View Full Code Here

             */
            public void execute(final ReadOnlyCommandMetadata metadata,
                    final Object context) {
                // Calculate button position
                final Manager manager = getMainManager();
                final XYRect managerExtent = manager.getExtent(); // Scrollable
                                                                  // section of
                                                                  // the screen
                final int titleHeight = managerExtent.y; // Top of the
                                                         // scrollable section
                final XYRect buttonExtent = _sampleButton.getExtent();
                final int buttonYCoordinate =
                        buttonExtent.y + titleHeight
                                + _sampleButton.getHeight() / 2; // Middle of
                                                                 // the button

View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.XYRect

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.