/** Get find property without performing initialization * of find properties. This is useful for example for base document * when it wants to query whether it should do highlight search. */ Object getPropertyNoInit(String name) { if (findProps == null) { return null; } else { return getFindProperty(name); } }
/** * Get find property without performing initialization of find properties. * This is useful for example for base document when it wants to query * whether it should do highlight search. */ Object getPropertyNoInit(String name) { if (findProps == null) { return null; } else { return getFindProperty(name); } }
/** * Set find property with specified name and fire change. */ public void putFindProperty(String name, Object newValue) { Object oldValue = getFindProperty(name); if ((oldValue == null && newValue == null) || (oldValue != null && oldValue.equals(newValue))) { return; } if (newValue != null) { getFindProperties().put(name, newValue); } else { getFindProperties().remove(name); } firePropertyChange(name, oldValue, newValue); }
/** Set find property with specified name and fire change. */ public void putFindProperty(String name, Object newValue) { Object oldValue = getFindProperty(name); if ((oldValue == null && newValue == null) || (oldValue != null && oldValue.equals(newValue)) ) { return; } if (newValue != null) { getFindProperties().put(name, newValue); } else { getFindProperties().remove(name); } firePropertyChange(name, oldValue, newValue); }
public void actionPerformed(ActionEvent evt, JTextComponent target) { if (target != null) { Boolean cur = (Boolean) FindSupport.getFindSupport().getFindProperty(SettingsNames.FIND_HIGHLIGHT_SEARCH); if (cur == null || cur.booleanValue() == false) { cur = Boolean.TRUE; } else { cur = Boolean.FALSE; } FindSupport.getFindSupport().putFindProperty(SettingsNames.FIND_HIGHLIGHT_SEARCH, cur); } } }
public void actionPerformed(ActionEvent evt, JTextComponent target) { if (target != null) { Boolean cur = (Boolean)FindSupport.getFindSupport().getFindProperty( SettingsNames.FIND_HIGHLIGHT_SEARCH); if (cur == null || cur.booleanValue() == false) { cur = Boolean.TRUE; } else { cur = Boolean.FALSE; } FindSupport.getFindSupport().putFindProperty( SettingsNames.FIND_HIGHLIGHT_SEARCH, cur); } } }