Examples of doModal()


Examples of net.rim.device.api.ui.picker.DateTimePicker.doModal()

            break;
        case TIME:
            final DateTimePicker datePickerTime =
                    DateTimePicker
                            .createInstance(_timeCal, null, "hh:mm:ss aa");
            if (datePickerTime.doModal()) {
                final StringBuffer dateStrTime = new StringBuffer();
                _timeCal = datePickerTime.getDateTime();
                _timeFormat.format(_timeCal, dateStrTime, null);
                _editFieldTime.setText(dateStrTime.toString());
            }
View Full Code Here

Examples of net.rim.device.api.ui.picker.DateTimePicker.doModal()

            break;
        case LONG:
            final DateTimePicker datePickerLong =
                    DateTimePicker.createInstance(_longDateCal,
                            DateFormat.DATE_LONG, DateFormat.TIME_DEFAULT);
            if (datePickerLong.doModal()) {
                final StringBuffer dateStrLong = new StringBuffer();
                _longDateCal = datePickerLong.getDateTime();
                _longDateFormat.format(_longDateCal, dateStrLong, null);
                _editFieldLong.setText(dateStrLong.toString());
            }
View Full Code Here

Examples of net.rim.device.api.ui.picker.DateTimePicker.doModal()

            break;
        case EXPIRY:
            final DateTimePicker datePickerExpiry =
                    DateTimePicker.createInstance(_expiryDateCal,
                            _expiryDateFormat.toPattern(), null);
            if (datePickerExpiry.doModal()) {
                final StringBuffer dateStrExpiry = new StringBuffer();
                _expiryDateCal = datePickerExpiry.getDateTime();
                _expiryDateFormat.format(_expiryDateCal, dateStrExpiry, null);
                _editFieldExpiry.setText(dateStrExpiry.toString());
            }
View Full Code Here

Examples of org.openquark.util.ui.DetailsDialog.doModal()

           
            DetailsDialog.MessageType messageType = capturedStatus.getSeverity() == Status.Severity.WARNING ?
                        DetailsDialog.MessageType.WARNING : DetailsDialog.MessageType.ERROR;
           
            DetailsDialog dialog = new DetailsDialog(this, title, message, details, messageType);
            dialog.doModal();
        }
       
        return new GemGenerator.GeneratedDefinitions() {

            public ModuleDefn getModuleDefn() {
View Full Code Here

Examples of org.openquark.util.ui.DetailsDialog.doModal()

           
            DetailsDialog.MessageType messageType = initStatus.getSeverity() == Status.Severity.WARNING ?
                        DetailsDialog.MessageType.WARNING : DetailsDialog.MessageType.ERROR;
           
            DetailsDialog dialog = new DetailsDialog(this, title, message, details, messageType);
            dialog.doModal();
           
            if (initStatus.getSeverity().compareTo(Status.Severity.ERROR) >= 0) {
                System.exit(-1);
            }
        }
View Full Code Here

Examples of org.openquark.util.ui.DetailsDialog.doModal()

                            String errMessage = getResourceString("ErrorSavingGemDefinition");

                            DetailsDialog dialog = new DetailsDialog(GemCutter.this, errTitle, errMessage,
                                    saveStatus.getDebugMessage(), DetailsDialog.MessageType.ERROR);

                            dialog.doModal();
   
                            // Don't bother trying to save the other gems.
                            break;
                        }
                    }
View Full Code Here

Examples of org.openquark.util.ui.DetailsDialog.doModal()

            private void showProblemsGeneratingModuleDialog(DetailsDialog.MessageType messageType, String details) {
                String title = getResourceString("WindowTitle");
                String message = getResourceString("ProblemsGeneratingModule");
               
                DetailsDialog dialog = new DetailsDialog(GemCutter.this, title, message, details, messageType);
                dialog.doModal();
            }
        };
       
        return factoryAction;
    }
View Full Code Here

Examples of org.openquark.util.ui.DetailsDialog.doModal()

        // Just dump the text to a details dialog.
        VaultStatus vaultStatus = getWorkspace().getVaultStatus();
        DetailsDialog detailsDialog = new DetailsDialog(GemCutter.this, getResourceString("WorkspaceVaultStatusDialogTitle"), getResourceString("WorkspaceCurrentVaultStatus"),
                                                        vaultStatus.getStatusString(), DetailsDialog.MessageType.PLAIN);
        detailsDialog.setDetailsVisible(true);
        detailsDialog.doModal();
    }

    /**
     * @return the submenu item to sync the workspace.
     */
 
View Full Code Here

Examples of org.openquark.util.ui.DetailsDialog.doModal()

            String title = getResourceString("SyncWorkspaceWarningTitle");
            String message = getResourceString("SyncWorkspaceWarningMessage");
            DetailsDialog detailsDialog = new DetailsDialog(GemCutter.this, title, message,
                                                            syncStatus.getDebugMessage(), DetailsDialog.MessageType.WARNING);
            detailsDialog.setDetailsVisible(true);
            detailsDialog.doModal();
        }
       
        // Display the result of the sync.
        Set<ResourceIdentifier> updatedResourceIdentifierSet = syncInfo.getUpdatedResourceIdentifiers();
        Set<ResourceIdentifier> resourceImportFailureSet = syncInfo.getResourceImportFailures();
View Full Code Here

Examples of org.openquark.util.ui.DetailsDialog.doModal()

        String message = getResourceString("SyncWorkspaceResultMessage");
        DetailsDialog detailsDialog = new DetailsDialog(GemCutter.this, title, message,
                                                        syncResultMessage, DetailsDialog.MessageType.PLAIN);
       
        detailsDialog.setDetailsVisible(true);
        detailsDialog.doModal();
       
        // Compile modified modules.
        recompileWorkspace(true);
    }
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.