Code examples for PropertyChangeEvent

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
155:	String propName = evt.getPropertyName(); 
-
158:	String oldOrientation = (String)evt.getOldValue(); 
159:	String newOrientation = (String)evt.getNewValue(); 
Full Snippet Info
8
CodeRank
61:	ClassUtils.getDescriptiveType(propertyChangeEvent.getNewValue()) + "'" + 
-
64:	(propertyChangeEvent.getPropertyName() != null ? 
65:	" for property '" + propertyChangeEvent.getPropertyName() + "'" : ""), 
-
67:	this.value = propertyChangeEvent.getNewValue(); 
Full Snippet Info
8
CodeRank
42:	super(propertyChangeEvent, "Property '" + propertyChangeEvent.getPropertyName() + "' threw exception", cause); 
Full Snippet Info
7
CodeRank
52:	changeSupport.firePropertyChange(evt.getPropertyName(), evt.getOldValue(), evt.getNewValue()); 
Full Snippet Info
7
CodeRank
77:	return (this.propertyChangeEvent != null ? this.propertyChangeEvent.getNewValue() : null); 
Full Snippet Info
7
CodeRank
40:	if (names.contains(evt.getPropertyName())) { 
41:	if(evt.getPropertyName().equals(PROPERTY_NAME_USE_ROI_MASK) && evt.getNewValue().equals(true) && 
42:	((PropertyContainer)evt.getSource()).getProperty(PROPERTY_NAME_ROI_MASK).getValue()==null){ 
-
45:	else if(evt.getPropertyName().equals(PROPERTY_NAME_NUM_BINS) && evt.getOldValue().equals(evt.getNewValue())){ 
-
48:	else if(evt.getPropertyName().equals(PROPERTY_NAME_AUTO_MIN_MAX) && evt.getNewValue().equals(false)){ 
-
51:	else if(evt.getPropertyName().equals(PROPERTY_NAME_MIN) && (evt.getOldValue().equals(evt.getNewValue()) || 
52:	((PropertyContainer)evt.getSource()).getProperty(PROPERTY_NAME_AUTO_MIN_MAX).getValue().equals(true))){ 
-
55:	else if(evt.getPropertyName().equals(PROPERTY_NAME_MAX) && (evt.getOldValue().equals(evt.getNewValue()) || 
56:	((PropertyContainer)evt.getSource()).getProperty(PROPERTY_NAME_AUTO_MIN_MAX).getValue().equals(true))){ 
-
59:	else if(evt.getPropertyName().equals(PROPERTY_NAME_X_BAND) && 
60:	((PropertyContainer)evt.getSource()).getProperty(PROPERTY_NAME_Y_BAND).getValue()==null){ 
-
63:	else if(evt.getPropertyName().equals(PROPERTY_NAME_Y_BAND) && 
64:	((PropertyContainer)evt.getSource()).getProperty(PROPERTY_NAME_X_BAND).getValue()==null){ 
Full Snippet Info
7
CodeRank
24:	this(propertyChangeEvent.getSource(), 
25:	propertyChangeEvent.getPropertyName(), 
26:	(V)propertyChangeEvent.getOldValue(), 
27:	(V)propertyChangeEvent.getNewValue()); 
28:	setPropagationId(propertyChangeEvent.getPropagationId()); 
Full Snippet Info
7
CodeRank
40:	if (names.contains(evt.getPropertyName())) { 
41:	if(evt.getPropertyName().equals(PROPERTY_NAME_USE_ROI_MASK) && evt.getNewValue().equals(true) && 
42:	((PropertyContainer)evt.getSource()).getProperty(PROPERTY_NAME_ROI_MASK).getValue()==null){ 
-
45:	else if(evt.getPropertyName().equals(PROPERTY_NAME_NUM_BINS) && evt.getOldValue().equals(evt.getNewValue())){ 
-
48:	else if(evt.getPropertyName().equals(PROPERTY_NAME_AUTO_MIN_MAX) && evt.getNewValue().equals(false)){ 
-
51:	else if(evt.getPropertyName().equals(PROPERTY_NAME_MIN) && (evt.getOldValue().equals(evt.getNewValue()) || 
52:	((PropertyContainer)evt.getSource()).getProperty(PROPERTY_NAME_AUTO_MIN_MAX).getValue().equals(true))){ 
-
55:	else if(evt.getPropertyName().equals(PROPERTY_NAME_MAX) && (evt.getOldValue().equals(evt.getNewValue()) || 
56:	((PropertyContainer)evt.getSource()).getProperty(PROPERTY_NAME_AUTO_MIN_MAX).getValue().equals(true))){ 
-
59:	else if(evt.getPropertyName().equals(PROPERTY_NAME_X_BAND) && 
60:	((PropertyContainer)evt.getSource()).getProperty(PROPERTY_NAME_Y_BAND).getValue()==null){ 
-
63:	else if(evt.getPropertyName().equals(PROPERTY_NAME_Y_BAND) && 
64:	((PropertyContainer)evt.getSource()).getProperty(PROPERTY_NAME_X_BAND).getValue()==null){ 
Full Snippet Info
7
CodeRank
100:	PropertyChangeEvent event = new PropertyChangeEvent(src, "myPropName", 
-
102:	assertNull(event.getPropagationId()); 
-
105:	event.setPropagationId(pid); 
-
107:	assertSame(src, event.getSource()); 
108:	assertEquals("myPropName", event.getPropertyName()); 
109:	assertSame(oldValue, event.getOldValue()); 
110:	assertSame(newValue, event.getNewValue()); 
111:	assertSame(pid, event.getPropagationId()); 
Full Snippet Info
7
CodeRank
56:	final ReportRenderContext oldContext = (ReportRenderContext) evt.getOldValue(); 
57:	final ReportRenderContext activeContext = (ReportRenderContext) evt.getNewValue(); 
Full Snippet Info
7
CodeRank
226:	if (e.getSource() == getEditor() && e.getPropertyName().equals( 
-
228:	Document oldDoc = (Document) e.getOldValue(); 
229:	Document newDoc = (Document) e.getNewValue(); 
Full Snippet Info
7
CodeRank
108:	evt = new PropertyChangeEventJAI(evt.getSource(), 
109:	evt.getPropertyName(), 
110:	evt.getOldValue(), 
111:	evt.getNewValue()); 
Full Snippet Info
7
CodeRank
128:	Object value = event.getNewValue(); 
129:	if (value.equals(event.getOldValue())) { 
-
132:	if (!this.name.equals(event.getPropertyName())) { 
Full Snippet Info
7
CodeRank
100:	PropertyChangeEvent event = new PropertyChangeEvent(src, "myPropName", 
-
102:	assertNull(event.getPropagationId()); 
-
105:	event.setPropagationId(pid); 
-
107:	assertSame(src, event.getSource()); 
108:	assertEquals("myPropName", event.getPropertyName()); 
109:	assertSame(oldValue, event.getOldValue()); 
110:	assertSame(newValue, event.getNewValue()); 
111:	assertSame(pid, event.getPropagationId()); 
Full Snippet Info
7
CodeRank
63:	if (evt.getPropertyName().equals("enabled")) { 
64:	setEnabled(evt.getNewValue().equals(Boolean.TRUE)); 
Full Snippet Info
6
CodeRank
175:	if (evt.getPropertyName().equals("enabled")) { 
176:	boolean enabled = (Boolean)evt.getNewValue(); 
Full Snippet Info
6
CodeRank
440:	Object source = event.getSource(); 
-
446:	processGlobalResourcesChange(event.getPropertyName(), 
447:	event.getOldValue(), 
448:	event.getNewValue()); 
Full Snippet Info
7
CodeRank
63:	String name = e.getPropertyName(); 
Full Snippet Info
6
CodeRank
185:	w.print(event.getPropertyName()); 
-
187:	w.print(event.getOldValue()); 
-
189:	w.print(event.getNewValue()); 
Full Snippet Info
7
CodeRank