Update of /cvsroot/ejtools/libraries/adwt/src/main/org/ejtools/adwt/editor
In directory sc8-pr-cvs1:/tmp/cvs-serv8980/adwt/src/main/org/ejtools/adwt/editor
Modified Files:
PropertiesEditor.java
Log Message:
Address Todo #755528
Remove @created tags
Index: PropertiesEditor.java
===================================================================
RCS file: /cvsroot/ejtools/libraries/adwt/src/main/org/ejtools/adwt/editor/PropertiesEditor.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PropertiesEditor.java 15 Sep 2003 22:37:13 -0000 1.4
--- PropertiesEditor.java 27 Nov 2003 00:51:44 -0000 1.5
***************
*** 1,108 ****
! /*
! * EJTools, the Enterprise Java Tools
! *
! * Distributable under LGPL license.
! * See terms of license at www.gnu.org.
! */
! package org.ejtools.adwt.editor;
!
! import java.awt.Component;
! import java.io.ByteArrayInputStream;
! import java.io.ByteArrayOutputStream;
! import java.io.IOException;
! import java.util.Properties;
!
! import javax.swing.JTextArea;
!
! /**
! * Description of the Class
! *
! * @author Laurent Etiemble
! * @version $Revision$
! * @todo Javadoc to complete
! */
! public class PropertiesEditor extends GenericEditor
! {
! /** Constructor for the PropertiesEditor object */
! public PropertiesEditor()
! {
! this.value = new Properties();
! }
!
!
! /**
! * Getter for the asText attribute
! *
! * @return The value of asText attribute
! */
! public String getAsText()
! {
! ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
! try
! {
! ((Properties) this.value).store(bytearrayoutputstream, "");
! }
! catch (IOException ioe)
! {
! }
! return bytearrayoutputstream.toString();
! }
!
!
! /**
! * Getter for the customEditor attribute
! *
! * @return The value of customEditor attribute
! */
! public Component getCustomEditor()
! {
! return new PropertiesView();
! }
!
!
! /**
! * Setter for the asText attribute
! *
! * @param s The new value for asText attribute
! */
! public void setAsText(String s)
! {
! try
! {
! ((Properties) this.value).load(new ByteArrayInputStream(s.getBytes()));
! this.firePropertyChange();
! }
! catch (IOException ioe)
! {
! }
! }
!
!
! /**
! * Description of the Method
! *
! * @return Description of the Returned Value
! */
! public boolean supportsCustomEditor()
! {
! return true;
! }
!
!
! /**
! * Description of the Class
! *
! * @author letiembl
! * @version $Revision$
! * @created 19 octobre 2001
! */
! protected class PropertiesView extends JTextArea
! {
! /** Constructor for the PropertiesView object */
! public PropertiesView()
! {
! super(10, 40);
! this.setText(PropertiesEditor.this.getAsText());
! }
! }
! }
--- 1,107 ----
! /*
! * EJTools, the Enterprise Java Tools
! *
! * Distributable under LGPL license.
! * See terms of license at www.gnu.org.
! */
! package org.ejtools.adwt.editor;
!
! import java.awt.Component;
! import java.io.ByteArrayInputStream;
! import java.io.ByteArrayOutputStream;
! import java.io.IOException;
! import java.util.Properties;
!
! import javax.swing.JTextArea;
!
! /**
! * Description of the Class
! *
! * @author Laurent Etiemble
! * @version $Revision$
! * @todo Javadoc to complete
! */
! public class PropertiesEditor extends GenericEditor
! {
! /** Constructor for the PropertiesEditor object */
! public PropertiesEditor()
! {
! this.value = new Properties();
! }
!
!
! /**
! * Getter for the asText attribute
! *
! * @return The value of asText attribute
! */
! public String getAsText()
! {
! ByteArrayOutputStream bytearrayoutputstream = new ByteArrayOutputStream();
! try
! {
! ((Properties) this.value).store(bytearrayoutputstream, "");
! }
! catch (IOException ioe)
! {
! }
! return bytearrayoutputstream.toString();
! }
!
!
! /**
! * Getter for the customEditor attribute
! *
! * @return The value of customEditor attribute
! */
! public Component getCustomEditor()
! {
! return new PropertiesView();
! }
!
!
! /**
! * Setter for the asText attribute
! *
! * @param s The new value for asText attribute
! */
! public void setAsText(String s)
! {
! try
! {
! ((Properties) this.value).load(new ByteArrayInputStream(s.getBytes()));
! this.firePropertyChange();
! }
! catch (IOException ioe)
! {
! }
! }
!
!
! /**
! * Description of the Method
! *
! * @return Description of the Returned Value
! */
! public boolean supportsCustomEditor()
! {
! return true;
! }
!
!
! /**
! * Description of the Class
! *
! * @author letiembl
! * @version $Revision$
! */
! protected class PropertiesView extends JTextArea
! {
! /** Constructor for the PropertiesView object */
! public PropertiesView()
! {
! super(10, 40);
! this.setText(PropertiesEditor.this.getAsText());
! }
! }
! }
|