Package net.datacrow.core.services

Examples of net.datacrow.core.services.SearchMode


   
    private void checkPerfectMatch(DcObject dco) {
        if (!panelSettings.isAutoAddAllowed() || disablePerfectMatch)
            return;
       
        SearchMode mode = panelService.getMode();
        if (mode != null && mode.singleIsPerfect()) {
            panelService.hasPerfectMatchOccured(true);
        } else {
            String string = panelService.getQuery().toLowerCase();
            String item = StringUtils.normalize(dco.toString()).toLowerCase();
            panelService.hasPerfectMatchOccured(string.equals(item));
View Full Code Here


       
        saveSettings();
        processing();

        String query = panelService.getQuery();
        SearchMode mode = panelService.getMode();
       
        if (mode != null && !mode.keywordSearch()) {
            try {
                CueCatCode ccc = CueCatDecoder.decodeLine(query);
                if (ccc.barType != CueCatCode.BARCODE_UNKNOWN) {
                    query = ccc.barCode;
                    panelService.setQuery(query);
View Full Code Here

    }
   
    public void setMode(String displayName) {
        if (comboModes == null || comboModes.getItemCount() == 0) return;
       
        SearchMode mode;
        for (int idx = 0; idx < comboModes.getItemCount(); idx++) {
            mode = (SearchMode) comboModes.getItemAt(idx);
            if (mode.getDisplayName().equals(displayName))
                comboModes.setSelectedItem(mode);
        }
    }   
View Full Code Here

        fldQuery.setText(query);
    }   
   
    public SearchMode getMode() {
        IServer server = getServer();
        SearchMode mode = null;
        if (server.getSearchModes() != null && server.getSearchModes().size() > 0) {
            mode = (SearchMode) comboModes.getSelectedItem();
        }
        return mode;
    }
View Full Code Here

                comboServers.setSelectedItem(server);
               
                Region region = os.getRegion(dco);
                if (region != null) comboRegions.setSelectedItem(region);
               
                SearchMode mode = os.getMode(dco);
                if (mode != null) comboModes.setSelectedItem(mode);

                String query = os.getQuery(dco);
                if (query != null && !query.toLowerCase().equals("null"))
                    fldQuery.setText(query.trim());
View Full Code Here

TOP

Related Classes of net.datacrow.core.services.SearchMode

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.