logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: jakarta-log4j/src/java/org/apache/log4j/chainsaw LogPanelPreferenceModel.java
Date Wed, 01 Oct 2003 23:35:43 GMT
psmith      2003/10/01 16:35:43

  Modified:    src/java/org/apache/log4j/chainsaw
                        LogPanelPreferenceModel.java
  Log:
  added a method that applys another models properties
  to this model.  Usefult for Ok/Cancel style dialogs where
  OK implies 'commit', and Cancel implies, rollback.
  
  Revision  Changes    Path
  1.2       +12 -0     jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogPanelPreferenceModel.java
  
  Index: LogPanelPreferenceModel.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/LogPanelPreferenceModel.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LogPanelPreferenceModel.java	30 Sep 2003 23:21:54 -0000	1.1
  +++ LogPanelPreferenceModel.java	1 Oct 2003 23:35:43 -0000	1.2
  @@ -137,4 +137,16 @@
   		propertySupport.removePropertyChangeListener(propertyName, listener);
   	}
   
  +	/**
  +	 * Applies all the properties of another model to this model
  +	 * 
  +	 * @param uncommitedPreferenceModel the model to copy
  +	 * all the properties from
  +	 */
  +	public void apply(LogPanelPreferenceModel that) {
  +		setAlternateDateFormatPattern(that.getAlternateDateFormatPattern());
  +		setUseISO8601Format(that.isUseISO8601Format());
  +		
  +	}
  +
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message