Package net.rim.device.api.ui

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


                        0);

        _gfProgress =
                new GaugeField("Timeout:", 0, CommunicationController.TIMEOUT,
                        0, GaugeField.PERCENT);
        _gfProgress.setBorder(BorderFactory.createSimpleBorder(new XYEdges(1,
                1, 1, 1)));

        final FullWidthButton postButton =
                new FullWidthButton("Send message and receive response");
        postButton.setChangeListener(new FieldChangeListener() {
View Full Code Here


            _pipMap = new MapField(displayWidth / 3, displayHeight / 3) {
                public boolean isFocusable() {
                    return false;
                }
            };
            _pipMap.setBorder(BorderFactory.createSimpleBorder(new XYEdges(2,
                    2, 2, 2)));

            // Add PIP map to the big map
            _bigMap.add(_pipMap, displayWidth
                    - _pipMap.getDimensions().getPixelWidth(), 0);
View Full Code Here

        // Initialize and add the instructions to the splash screen
        final String instructions =
                "The goal of the game is to move the character to the "
                        + "special end block without being hit by any of the obstacles.\n";
        _labelField = new LabelField(instructions);
        _labelField.setBorder(BorderFactory.createRoundedBorder(new XYEdges(10,
                10, 10, 10), Color.RED, Border.STYLE_SOLID));
        _labelField.setMargin(0, 10, 5, 10);
        vfm.add(_labelField);

        // Check if the device supports OpenGL v2.0
View Full Code Here

    public void populateMainScreen(final MainScreen screen) {
        final int index = _data.getSelected();
        final boolean checked = _data.getChecked();
        final String oldText = _data.getOldText();

        final XYEdges xyEdges = new XYEdges(2, 2, 2, 2);

        final FieldSet fieldSetOne =
                new FieldSet("Field Set 1", BorderFactory
                        .createBevelBorder(xyEdges), BorderFactory
                        .createSimpleBorder(xyEdges), Border.STYLE_SOLID);
        _objectChoiceField =
                new ObjectChoiceField("Choices: ", new String[] { "RIM",
                        "Options", "Demo" }, index);
        _checkboxField =
                new CheckboxField("Checkbox: ", checked, Field.FIELD_TRAILING
                        | Field.USE_ALL_WIDTH);
        fieldSetOne.add(_objectChoiceField);
        fieldSetOne.add(_checkboxField);
        fieldSetOne.setMargin(2, 5, 5, 5);
        fieldSetOne.setBackground(BackgroundFactory
                .createSolidBackground(0x00FFFFFF));

        final FieldSet fieldSetTwo =
                new FieldSet("Field Set 2", BorderFactory
                        .createBevelBorder(xyEdges), BorderFactory
                        .createRoundedBorder(xyEdges), Border.STYLE_SOLID);
        _editField =
                new EditField("", oldText, MAX_CHARS, Field.EDITABLE
                        | TextField.NO_NEWLINE);
        _editField.setBackground(BackgroundFactory
                .createSolidBackground(0xf6f6f6));
        _editField.setBorder(BorderFactory.createRoundedBorder(new XYEdges(4,
                4, 4, 4), 0xc6c6c6, Border.STYLE_SOLID));
        fieldSetTwo.add(new LabelField("Input: "));
        fieldSetTwo.add(_editField);
        fieldSetTwo
                .add(new RichTextField(
View Full Code Here

                    || titleBorder.getRight() != contentBorder.getRight()) {
                throw new IllegalArgumentException(
                        "borders must have matching left and right edges");
            }

            return new XYEdges(titleBorder.getTop() + font.getHeight()
                    + titleBorder.getBottom() + contentBorder.getTop(),
                    contentBorder.getRight(), contentBorder.getBottom(),
                    contentBorder.getLeft());
        }
View Full Code Here

TOP

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

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.