public boolean isEmpty() { return isEmpty(getRawText()); }
private void updatePattern(String regEx) { Pattern old = getPattern(); if (isEmpty(regEx)) { pattern = null; } else if ((old == null) || (!old.pattern().equals(regEx))) { pattern = Pattern.compile(regEx, getFlags()); } firePropertyChange("pattern", old, getPattern()); }
/** * returns a regEx for compilation into a pattern. Here: either a "contains" * (== partial find) or null if the input was empty. * * @param searchString * @return null if the input was empty, or a regex according to the internal * rules */ private String createRegEx(String searchString) { if (isEmpty(searchString)) return null; //".*"; return getRegexCreator().createRegEx(searchString); }
/** * returns a regEx for compilation into a pattern. Here: either a "contains" * (== partial find) or null if the input was empty. * * @param searchString * @return null if the input was empty, or a regex according to the internal * rules */ private String createRegEx(String searchString) { if (isEmpty(searchString)) return null; //".*"; return getRegexCreator().createRegEx(searchString); }
/** * returns a regEx for compilation into a pattern. Here: either a "contains" * (== partial find) or null if the input was empty. * * @param searchString * @return null if the input was empty, or a regex according to the internal * rules */ private String createRegEx(String searchString) { if (isEmpty(searchString)) return null; //".*"; return getRegexCreator().createRegEx(searchString); }
/** * returns a regEx for compilation into a pattern. Here: either a "contains" * (== partial find) or null if the input was empty. * * @param searchString * @return null if the input was empty, or a regex according to the internal * rules */ private String createRegEx(String searchString) { if (isEmpty(searchString)) return null; //".*"; return getRegexCreator().createRegEx(searchString); }
private void updatePattern(String regEx) { Pattern old = getPattern(); if (isEmpty(regEx)) { pattern = null; } else if ((old == null) || (!old.pattern().equals(regEx))) { pattern = Pattern.compile(regEx, getFlags()); } firePropertyChange("pattern", old, getPattern()); }
private void updatePattern(String regEx) { Pattern old = getPattern(); if (isEmpty(regEx)) { pattern = null; } else if ((old == null) || (!old.pattern().equals(regEx))) { pattern = Pattern.compile(regEx, getFlags()); } firePropertyChange("pattern", old, getPattern()); }
private void updatePattern(String regEx) { Pattern old = getPattern(); if (isEmpty(regEx)) { pattern = null; } else if ((old == null) || (!old.pattern().equals(regEx))) { pattern = Pattern.compile(regEx, getFlags()); } firePropertyChange("pattern", old, getPattern()); }
private void updatePattern(String regEx) { Pattern old = getPattern(); if (isEmpty(regEx)) { pattern = null; } else if ((old == null) || (!old.pattern().equals(regEx))) { pattern = Pattern.compile(regEx, getFlags()); } firePropertyChange("pattern", old, getPattern()); }
/** * called from listening to empty property of PatternModel. * * this implementation synch's the enabled state of the action with * MATCH_ACTION_COMMAND to !empty. * */ protected void refreshEmptyFromModel() { boolean enabled = !getPatternModel().isEmpty(); getAction(MATCH_ACTION_COMMAND).setEnabled(enabled); }
/** * called from listening to empty property of PatternModel. * * this implementation synch's the enabled state of the action with * MATCH_ACTION_COMMAND to !empty. * */ protected void refreshEmptyFromModel() { boolean enabled = !getPatternModel().isEmpty(); getAction(MATCH_ACTION_COMMAND).setEnabled(enabled); }
/** * called from listening to empty property of PatternModel. * * this implementation synch's the enabled state of the action with * MATCH_ACTION_COMMAND to !empty. * */ protected void refreshEmptyFromModel() { boolean enabled = !getPatternModel().isEmpty(); getAction(MATCH_ACTION_COMMAND).setEnabled(enabled); }
/** * called from listening to empty property of PatternModel. * * this implementation synch's the enabled state of the action with * MATCH_ACTION_COMMAND to !empty. * */ protected void refreshEmptyFromModel() { boolean enabled = !getPatternModel().isEmpty(); getAction(MATCH_ACTION_COMMAND).setEnabled(enabled); }
/** * called from listening to empty property of PatternModel. * * this implementation synch's the enabled state of the action with * MATCH_ACTION_COMMAND to !empty. * */ protected void refreshEmptyFromModel() { boolean enabled = !getPatternModel().isEmpty(); getAction(MATCH_ACTION_COMMAND).setEnabled(enabled); }