tn5250j/src/org/tn5250j/settings ErrorResetAttributesPanel.java,1.2,1.3

"Kenneth J. Pouncey" <[email protected]> Wed, 08 Jun 2005 19:57:26 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/settings
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1543

Modified Files:
	ErrorResetAttributesPanel.java 
Log Message:
mass update of harddrive

Index: ErrorResetAttributesPanel.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/settings/ErrorResetAttributesPanel.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ErrorResetAttributesPanel.java	9 Jul 2003 18:55:40 -0000	1.2
--- ErrorResetAttributesPanel.java	8 Jun 2005 19:57:23 -0000	1.3
***************
*** 1,85 ****
! /**
!  * Title: ErrorResetAttributesPanel
!  * Copyright:   Copyright (c) 2001
!  * Company:
!  * @author  Kenneth J. Pouncey
!  * @version 0.5
!  *
!  * Description:
!  *
!  * This program is free software; you can redistribute it and/or modify
!  * it under the terms of the GNU General Public License as published by
!  * the Free Software Foundation; either version 2, or (at your option)
!  * any later version.
!  *
!  * This program is distributed in the hope that it will be useful,
!  * but WITHOUT ANY WARRANTY; without even the implied warranty of
!  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
!  * GNU General Public License for more details.
!  *
!  * You should have received a copy of the GNU General Public License
!  * along with this software; see the file COPYING.  If not, write to
!  * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
!  * Boston, MA 02111-1307 USA
!  *
!  */
! package org.tn5250j.settings;
! 
! import java.awt.*;
! import javax.swing.*;
! 
! import org.tn5250j.tools.*;
! import org.tn5250j.SessionConfig;
! 
! public class ErrorResetAttributesPanel extends AttributesPanel {
! 
!    JCheckBox resetRequired;
! 
!    public ErrorResetAttributesPanel(SessionConfig config ) {
!       super(config,"ErrorReset");
!    }
! 
!    /**Component initialization*/
!    public void initPanel() throws Exception  {
! 
!       setLayout(new BorderLayout());
!       contentPane = new JPanel();
!       contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS));
!       add(contentPane,BorderLayout.NORTH);
! 
!       // define double click as enter
!       JPanel reset = new JPanel();
!       reset.setBorder(BorderFactory.createTitledBorder(
!                            LangTool.getString("sa.titleErrorReset")));
! 
!       resetRequired = new JCheckBox(LangTool.getString("sa.errorReset"));
! 
!       // check if reset required is set or not
!       resetRequired.setSelected(getStringProperty("resetRequired").equals("Yes"));
! 
!       reset.add(resetRequired);
!       contentPane.add(reset);
! 
!    }
! 
!    public void save() {
! 
!    }
! 
!    public void applyAttributes() {
! 
!       if (resetRequired.isSelected()) {
!          changes.firePropertyChange(this,"resetRequired",
!                            getStringProperty("resetRequired"),
!                            "Yes");
!          setProperty("resetRequired","Yes");
!       }
!       else {
!          changes.firePropertyChange(this,"resetRequired",
!                            getStringProperty("resetRequired"),
!                            "No");
!          setProperty("resetRequired","No");
!       }
! 
!    }
  }
\ No newline at end of file
--- 1,113 ----
! /**
!  * Title: ErrorResetAttributesPanel
!  * Copyright:   Copyright (c) 2001
!  * Company:
!  * @author  Kenneth J. Pouncey
!  * @version 0.5
!  *
!  * Description:
!  *
!  * This program is free software; you can redistribute it and/or modify
!  * it under the terms of the GNU General Public License as published by
!  * the Free Software Foundation; either version 2, or (at your option)
!  * any later version.
!  *
!  * This program is distributed in the hope that it will be useful,
!  * but WITHOUT ANY WARRANTY; without even the implied warranty of
!  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
!  * GNU General Public License for more details.
!  *
!  * You should have received a copy of the GNU General Public License
!  * along with this software; see the file COPYING.  If not, write to
!  * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
!  * Boston, MA 02111-1307 USA
!  *
!  */
! package org.tn5250j.settings;
! 
! import java.awt.*;
! import javax.swing.*;
! 
! import org.tn5250j.tools.*;
! import org.tn5250j.SessionConfig;
! 
! public class ErrorResetAttributesPanel extends AttributesPanel {
! 
!    JCheckBox resetRequired;
!    JCheckBox backspaceError;
! 
!    public ErrorResetAttributesPanel(SessionConfig config ) {
!       super(config,"ErrorReset");
!    }
! 
!    /**Component initialization*/
!    public void initPanel() throws Exception  {
! 
!       setLayout(new BorderLayout());
!       contentPane = new JPanel();
!       contentPane.setLayout(new BoxLayout(contentPane,BoxLayout.Y_AXIS));
!       add(contentPane,BorderLayout.NORTH);
! 
!       // define error reset
!       JPanel reset = new JPanel();
!       reset.setBorder(BorderFactory.createTitledBorder(
!                            LangTool.getString("sa.titleErrorReset")));
! 
!       resetRequired = new JCheckBox(LangTool.getString("sa.errorReset"));
! 
!       // check if reset required is set or not
!       resetRequired.setSelected(getStringProperty("resetRequired").equals("Yes"));
! 
!       reset.add(resetRequired);
! 
!       // define backspace error
!       JPanel backspace = new JPanel();
!       backspace.setBorder(BorderFactory.createTitledBorder(
!                            LangTool.getString("sa.titleBackspace")));
! 
!       backspaceError = new JCheckBox(LangTool.getString("sa.errorBackspace"));
! 
!       // check if backspace error is set or not
!       backspaceError.setSelected(getStringProperty("backspaceError","Yes").equals("Yes"));
! 
!       backspace.add(backspaceError);
! 
!       contentPane.add(reset);
!       contentPane.add(backspace);
! 
!    }
! 
!    public void save() {
! 
!    }
! 
!    public void applyAttributes() {
! 
!       if (resetRequired.isSelected()) {
!          changes.firePropertyChange(this,"resetRequired",
!                            getStringProperty("resetRequired"),
!                            "Yes");
!          setProperty("resetRequired","Yes");
!       }
!       else {
!          changes.firePropertyChange(this,"resetRequired",
!                            getStringProperty("resetRequired"),
!                            "No");
!          setProperty("resetRequired","No");
!       }
! 
!       if (backspaceError.isSelected()) {
!          changes.firePropertyChange(this,"backspaceError",
!                            getStringProperty("backspaceError"),
!                            "Yes");
!          setProperty("backspaceError","Yes");
!       }
!       else {
!          changes.firePropertyChange(this,"backspaceError",
!                            getStringProperty("backspaceError"),
!                            "No");
!          setProperty("backspaceError","No");
!       }
! 
!    }
  }
\ No newline at end of file



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20