Package cybop.basic

Examples of cybop.basic.String


            int nextToPreviousIndex = getHistoryVector().indexOf(getHistoryVector().lastElement()) - 1;

            /*test whether the last but one element exists, so that the application can change to it*/

            if (nextToPreviousIndex > -1) {
                String previousFileName = (String) getHistoryVector().elementAt(nextToPreviousIndex);
                getHistoryVector().removeElement(getHistoryVector().lastElement());
                setHistoryStep(true);
                changeOverlay(previousFileName);
                setHistoryStep(false);
            }
View Full Code Here


    public Vector findMatches(String stringToMatch) {
        Vector returnVector = new Vector();
        Hashtable hashtable = getPatientHashtable();
        for (Enumeration e = hashtable.keys(); e.hasMoreElements();) {
            HealthRecord patient = (HealthRecord) hashtable.get(e.nextElement());
            String patientName = patient.getName().getValue();
            //deleting possible spaces
            patientName = patient.getName().getValue().substring(patientName.lastIndexOf(" ") + 1, patientName.length());
            if (patientName.toLowerCase().startsWith(stringToMatch.toLowerCase())) {
                returnVector.addElement(patient);
            }
        }
        return returnVector;
    }
View Full Code Here

            overlay.removeChild(alternativesNodeList.item(i));
        }
        Element alternatives = doc.createElement("Alternatives");
        if (getAlternativeOverlaysForCurrentOverlay() != null) {
            for (int ii = 0; ii < getAlternativeOverlaysForCurrentOverlay().size(); ii++) {
                String altOverlay = (String) getAlternativeOverlaysForCurrentOverlay().elementAt(ii);
                //the overlay itself must not be its own alternative overlay!!! So :
                if(altOverlay!=getNameFromDocument(doc)){
                    System.out.println("Appending alt. overlay: " + altOverlay);
                    Element alternative = doc.createElement("Alternative");
                    alternative.appendChild(doc.createTextNode(altOverlay));
View Full Code Here

            }
        }
    }

    public void removeDiseaseFromOverlay(Disease disease, Overlay overlay){
        String overlayName = overlay.getName();
        Document doc = getDocumentByName(overlayName);
        NodeList diseasesList = doc.getElementsByTagName("Diseases");
        if(diseasesList!=null){
            if(diseasesList.item(0)!=null){
                NodeList diseaseNameList = doc.getElementsByTagName("DiseaseName");
View Full Code Here

    }

    public void updateDisease(Disease disease, String newDiseaseName, String newDiseaseDescription){
        Overlay overlay = (Overlay)disease.getParent();
        String overlayName = overlay.getName();
        Document doc = getDocumentByName(overlayName);
        NodeList diseasesList = doc.getElementsByTagName("Diseases");
        if(diseasesList!=null){
            if(diseasesList.item(0)!=null){
                System.out.println("1");
View Full Code Here

                    }
                }
                System.out.println("Es existieren " + alternativeOverlaysVector.size() + " alternative Regionen.");
                for (int e = 0; e < alternativeOverlaysVector.size(); e++) {
                    Node alternativeOverlay = (Node) alternativeOverlaysVector.elementAt(e);
                    String alternativeOverlayName = getNodeValue(alternativeOverlay);
                    System.out.println("Adding " + alternativeOverlayName + " to List.");
                    returnVector.add(alternativeOverlayName);
                }
                return returnVector;
            } else {
View Full Code Here

    public MakeCAVEDialog() {
    }

    /**Initializes the component.*/
    public void initialize() {
        setTitle(new String("New CAVE! entry..."));
        setDisplayMode(DisplayFactory.MODELESS_DIALOG_DISPLAY);
        setDialogBounds(createDialogBounds());
        GridBagLayout gridBag = new GridBagLayout();
        GridBagConstraints c = new GridBagConstraints();
        setLayout(gridBag);
View Full Code Here

    public AlternativeOverlaysPreviewDialog() {
    }

    /**Initialization of Dialog*/
    public void initialize() {
        setTitle(new String("Choose alternative..."));
        set(AlternativeOverlaysPreviewDialog.DIALOG_WIDTH, new Integer(10));
        set(AlternativeOverlaysPreviewDialog.DIALOG_X_POSITION, new Integer(150));
        set(AlternativeOverlaysPreviewDialog.DIALOG_Y_POSITION, new Integer(10));       

        FlowLayout flowLayout = new FlowLayout();
View Full Code Here

            removeAll();
            //for every alternative overlay a panel is created
            for (int i = 0; i < alternativeOverlays.size(); i++) {
                JPanel previewContainerPanel = new JPanel();
                previewContainerPanel.setPreferredSize(new Dimension(150, 200));
                String overlayName = (String) alternativeOverlays.elementAt(i);
                previewPanels[i] = new PreviewPanel();
                previewPanels[i].setBorder(BorderFactory.createLineBorder(Color.BLACK));
                previewPanels[i].setImage(model.getImageFromDocument(model.getDocumentByName(overlayName)));
                //only one can be chosen, by mouse or with tab -> radioButtons
                previewRadioButtons[i] = new PreviewRadioButton(overlayName);
View Full Code Here

       
        //setting the layout manager
        setLayout(gridBag);
       
        //setting the title
        setTitle(new String("Edit alternative overlays..."));
       
        addKeyListener((Record) get(EditAlternativeOverlayDialog.CONTROLLER));
        //?? Temporary! The display mode of this about dialog is read from the configuration of the application (and such is FRAME_DISPLAY)!
        setDisplayMode(DisplayFactory.MODELESS_DIALOG_DISPLAY);
        //?? Temporary! The dialog bounds of this about dialog are read from the configuration of the application!
View Full Code Here

TOP

Related Classes of cybop.basic.String

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.