Examples of EditField


Examples of net.rim.device.api.ui.component.EditField

                                + "Blocking receiver listens only for one message "
                                + "and exits, while non-blocking receives all messages sent to it.",
                        Field.NON_FOCUSABLE);

        _uriReceiverField =
                new EditField("Receiver URI:", "local://" + PATH_STRING, 140, 0);

        _isBlocking = new CheckboxField("Blocking", false);
        _isBlocking.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
View Full Code Here

Examples of net.rim.device.api.ui.component.EditField

            }
        });

        // Set the destination to which messages will be to be sent:
        _uriSenderField =
                new EditField("Destination:",
                        CommunicationController.ECHO_SERVER_URI + "TEXT");

        final FullWidthButton destinationButton =
                new FullWidthButton("Set Destination");
        destinationButton.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                controller.setNonBlockingSenderDestination(_uriSenderField
                        .getText());
            }
        });

        // First Message
        _contentField1 = new EditField("Message:", "Message One");
        final FullWidthButton postButton1 =
                new FullWidthButton("Send and Cancel (ALL)");
        postButton1.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
             */
            public void fieldChanged(final Field field, final int context) {
                controller.testMessageCancellable(_contentField1.getText(),
                        true); // cancellable = true

            }
        });

        // Second Message
        _contentField2 = new EditField("Message:", "Message Two");
        final FullWidthButton postButton2 =
                new FullWidthButton("Send and Cancel (NEVER)");
        postButton2.setChangeListener(new FieldChangeListener() {
            /**
             * @see FieldChangeListener#fieldChanged(Field, int)
View Full Code Here

Examples of net.rim.device.api.ui.component.EditField

        _uiApp = (PersistentStoreDemo) UiApplication.getUiApplication();
        _screen = this;

        // Initialize UI components
        _nameField =
                new EditField("Meeting Name: ", _meeting
                        .getField(Meeting.MEETING_NAME));
        _descField =
                new EditField("Description: ", _meeting.getField(Meeting.DESC));
        _dateField = new EditField("Date: ", _meeting.getField(Meeting.DATE));
        _timeField = new EditField("Time: ", _meeting.getField(Meeting.TIME));
        _notesField =
                new EditField("Notes: ", _meeting.getField(Meeting.NOTES));
        add(_nameField);
        add(_descField);
        add(_dateField);
        add(_timeField);
        add(_notesField);

        // Menu item to save the displayed meeting
        final MenuItem saveItem =
                new MenuItem(new StringProvider("Save"), 0x230020, 11);
        saveItem.setCommand(new Command(new CommandHandler() {
            /**
             * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
             *      Object)
             */
            public void execute(final ReadOnlyCommandMetadata metadata,
                    final Object context) {
                if (onSave()) {
                    close();
                }
            }
        }));

        // Menu item to add an attendee to meeting
        final MenuItem addAttendeeItem =
                new MenuItem(new StringProvider("Add Attendee"), 0x230010, 10);
        addAttendeeItem.setCommand(new Command(new CommandHandler() {
            /**
             * @see net.rim.device.api.command.CommandHandler#execute(ReadOnlyCommandMetadata,
             *      Object)
             */
            public void execute(final ReadOnlyCommandMetadata metadata,
                    final Object context) {
                final VerticalFieldManager vfm = new VerticalFieldManager();
                _popUp = new PopupScreen(vfm);
                _addAttendeeField = new EditField("Enter Name: ", "");
                _popUp.add(_addAttendeeField);
                final HorizontalFieldManager hfm =
                        new HorizontalFieldManager(Field.FIELD_HCENTER);
                hfm.add(new AddButton());
                hfm.add(new CancelButton());
View Full Code Here

Examples of net.rim.device.api.ui.component.EditField

                        "Enter a destination URI and send a request message to it. "
                                + "The response will displayed in a pop-up screen.",
                        Field.NON_FOCUSABLE);

        _uriSenderField =
                new EditField("Sender URI:",
                        CommunicationController.ECHO_SERVER_URI + "TEXT", 140,
                        0);

        _gfProgress =
                new GaugeField("Timeout:", 0, CommunicationController.TIMEOUT,
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.types.EditField

   
    @Override
    // org.dmd.dms.util.GenUtility.dumpMVType(GenUtility.java:2363)
    public EditField add(Object v) throws DmcValueException {
        synchronized(this){
            EditField rc = typeCheck(v);
            if (value == null)
                value = new ArrayList<EditField>();
            value.add(rc);
            return(rc);
        }
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.types.EditField

    public EditField del(Object v){
        synchronized(this){
            if (value == null)
                return(null);
   
            EditField key = null;
            EditField rc = null;
            try {
                key = typeCheck(v);
            } catch (DmcValueException e) {
                throw(new IllegalStateException("Incompatible type passed to del():" + getName(),e));
            }
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.types.EditField

                throw(new IllegalStateException("Attribute: " + getAttributeInfo().name + " is not indexed. You can't use setMVnth()."));
           
            if ( (index < 0) || (index >= getAttributeInfo().indexSize))
                throw(new IllegalStateException("Index " + index + " for attribute: " + getAttributeInfo().name + " is out of range: 0 <= index < " + getAttributeInfo().indexSize));
           
            EditField rc = null;
           
            if (v != null)
                rc = typeCheck(v);
           
            if (value == null){
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.types.EditField

        synchronized(this){
            if (value == null)
                return(false);

            try {
                EditField val = typeCheck(v);
                return(value.contains(val));
            } catch (DmcValueException e) {
                return(false);
            }
        }
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.types.EditField

   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSETType(GenUtility.java:2659)
    public EditField add(Object v) throws DmcValueException {
        synchronized(this){
            EditField rc = typeCheck(v);
            if (value == null)
                initValue();
       
            // If false is returned, we didn't modify the set, so return null
            if (!value.add(rc))
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.types.EditField

   
    @Override
    // org.dmd.dms.util.GenUtility.dumpSETType(GenUtility.java:2676)
    public EditField del(Object v){
        synchronized(this){
            EditField rc = null;
            if (value == null)
                return(rc);
           
            try {
                rc = typeCheck(v);
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.