tn5250j/src/org/tn5250j/event SessionChangeEvent.java,1.1.1.1,1.2 SessionJumpEvent.java,1.1,1.2 BootListener.java,1.1.1.1,1.2 BootEvent.java,1.1.1.1,1.2 WizardListener.java,1.1,1.2 FTPStatusListener.java,1.1.1.1,1.2 WizardEvent.java,1.1,1.2 SessionConfigEvent.java,1.2,1.3 FTPStatusEvent.java,1.2,1.3
"Kenneth J. Pouncey" <[email protected]> Thu, 16 Jun 2005 04:41:21 +0000
| Newsgroups | gmane.comp.java.tn5250j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/event
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24279/src/org/tn5250j/event
Modified Files:
SessionChangeEvent.java SessionJumpEvent.java
BootListener.java BootEvent.java WizardListener.java
FTPStatusListener.java WizardEvent.java
SessionConfigEvent.java FTPStatusEvent.java
Log Message:
the rest of the story
Index: WizardListener.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/event/WizardListener.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** WizardListener.java 13 Jan 2003 19:15:24 -0000 1.1
--- WizardListener.java 16 Jun 2005 04:41:19 -0000 1.2
***************
*** 1,72 ****
! /*
! * @(#)WizardListener.java
! * Copyright: Copyright (c) 2001
! *
! * 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.event;
!
! /**
! * The listener interface for those interested in
! * receiving Wizard events.
! */
! public interface WizardListener {
!
! /**
! * Invoked <i>before</i> advancing to the next page.
! * Calling <code>e.setAllowChange(false)</code> will prevent the
! * next page from being advanced too.
! * Check the <code>e.isLastPage()</code> to see if you are on the
! * last page.
! */
! public void nextBegin(WizardEvent e);
!
! /**
! * Invoked after advancing to the next page.
! */
! public void nextComplete(WizardEvent e);
!
! /**
! * Invoked <i>before</i> advancing to the previous page.
! * Calling <code>e.setAllowChange(false)</code> will prevent the
! * previous page from being advanced too.
! */
! public void previousBegin(WizardEvent e);
!
! /**
! * Invoked after advancing to the previous page.
! */
! public void previousComplete(WizardEvent e);
!
! /**
! * Invoked if a "finish" action is triggered.
! */
! public void finished(WizardEvent e);
!
! /**
! * Invoked if the Cancel action is triggered.
! */
! public void canceled(WizardEvent e);
!
! /**
! * Invoked if the Help action is triggered.
! */
! public void help(WizardEvent e);
!
! }
!
--- 1,72 ----
! /*
! * @(#)WizardListener.java
! * Copyright: Copyright (c) 2001
! *
! * 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.event;
!
! /**
! * The listener interface for those interested in
! * receiving Wizard events.
! */
! public interface WizardListener {
!
! /**
! * Invoked <i>before</i> advancing to the next page.
! * Calling <code>e.setAllowChange(false)</code> will prevent the
! * next page from being advanced too.
! * Check the <code>e.isLastPage()</code> to see if you are on the
! * last page.
! */
! public void nextBegin(WizardEvent e);
!
! /**
! * Invoked after advancing to the next page.
! */
! public void nextComplete(WizardEvent e);
!
! /**
! * Invoked <i>before</i> advancing to the previous page.
! * Calling <code>e.setAllowChange(false)</code> will prevent the
! * previous page from being advanced too.
! */
! public void previousBegin(WizardEvent e);
!
! /**
! * Invoked after advancing to the previous page.
! */
! public void previousComplete(WizardEvent e);
!
! /**
! * Invoked if a "finish" action is triggered.
! */
! public void finished(WizardEvent e);
!
! /**
! * Invoked if the Cancel action is triggered.
! */
! public void canceled(WizardEvent e);
!
! /**
! * Invoked if the Help action is triggered.
! */
! public void help(WizardEvent e);
!
! }
!
Index: SessionChangeEvent.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/event/SessionChangeEvent.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** SessionChangeEvent.java 10 Apr 2002 19:46:23 -0000 1.1.1.1
--- SessionChangeEvent.java 16 Jun 2005 04:41:19 -0000 1.2
***************
*** 1,37 ****
! package org.tn5250j.event;
!
! import java.util.EventObject;
!
! public class SessionChangeEvent extends EventObject {
!
! public SessionChangeEvent(Object obj){
! super(obj);
!
! }
!
! public SessionChangeEvent(Object obj, String s) {
! super(obj);
! message = s;
! }
!
! public String getMessage() {
! return message;
! }
!
! public void setMessage(String s) {
! message = s;
! }
!
! public int getState() {
!
! return state;
! }
!
! public void setState(int s) {
!
! state = s;
! }
!
! private String message;
! private int state;
! }
--- 1,37 ----
! package org.tn5250j.event;
!
! import java.util.EventObject;
!
! public class SessionChangeEvent extends EventObject {
!
! public SessionChangeEvent(Object obj){
! super(obj);
!
! }
!
! public SessionChangeEvent(Object obj, String s) {
! super(obj);
! message = s;
! }
!
! public String getMessage() {
! return message;
! }
!
! public void setMessage(String s) {
! message = s;
! }
!
! public int getState() {
!
! return state;
! }
!
! public void setState(int s) {
!
! state = s;
! }
!
! private String message;
! private int state;
! }
Index: SessionJumpEvent.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/event/SessionJumpEvent.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SessionJumpEvent.java 27 Apr 2002 10:47:31 -0000 1.1
--- SessionJumpEvent.java 16 Jun 2005 04:41:19 -0000 1.2
***************
*** 1,36 ****
! package org.tn5250j.event;
!
! import java.util.EventObject;
!
! public class SessionJumpEvent extends EventObject {
!
! public SessionJumpEvent(Object obj){
! super(obj);
! }
!
! public SessionJumpEvent(Object obj, String s) {
! super(obj);
! message = s;
! }
!
! public String getMessage() {
! return message;
! }
!
! public void setMessage(String s) {
! message = s;
! }
!
! public int getJumpDirection() {
!
! return dir;
! }
!
! public void setJumpDirection(int d) {
!
! dir = d;
! }
!
! private String message;
! private int dir;
! }
--- 1,36 ----
! package org.tn5250j.event;
!
! import java.util.EventObject;
!
! public class SessionJumpEvent extends EventObject {
!
! public SessionJumpEvent(Object obj){
! super(obj);
! }
!
! public SessionJumpEvent(Object obj, String s) {
! super(obj);
! message = s;
! }
!
! public String getMessage() {
! return message;
! }
!
! public void setMessage(String s) {
! message = s;
! }
!
! public int getJumpDirection() {
!
! return dir;
! }
!
! public void setJumpDirection(int d) {
!
! dir = d;
! }
!
! private String message;
! private int dir;
! }
Index: FTPStatusEvent.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/event/FTPStatusEvent.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** FTPStatusEvent.java 18 May 2003 19:12:36 -0000 1.2
--- FTPStatusEvent.java 16 Jun 2005 04:41:19 -0000 1.3
***************
*** 1,67 ****
! package org.tn5250j.event;
!
! import java.util.EventObject;
!
! public class FTPStatusEvent extends EventObject {
!
! public FTPStatusEvent(Object obj){
! super(obj);
! }
!
! public FTPStatusEvent(Object obj, String s) {
! super(obj);
! message = s;
! messageType = OK;
! }
!
! public FTPStatusEvent(Object obj, String s, int messageType) {
! super(obj);
! message = s;
! this.messageType = messageType;
! }
!
! public String getMessage() {
! return message;
! }
!
! public void setMessage(String s) {
! message = s;
! }
!
! public int getMessageType() {
! return messageType;
! }
!
! public void setMessageType(int type) {
! messageType = type;
! }
!
! public int getFileLength() {
!
! return fileLength;
! }
! public void setFileLength(int len) {
!
! fileLength = len;
! }
!
! public int getCurrentRecord() {
!
! return currentRecord;
! }
!
! public void setCurrentRecord(int current) {
!
! currentRecord = current;
! }
! private String message;
! private int fileLength;
! private int currentRecord;
! private int messageType;
!
! static final int OK = 0;
! static final int ERROR = 1;
! static final int ERROR_NULLS_ALLOWED = 2;
!
!
! }
--- 1,67 ----
! package org.tn5250j.event;
!
! import java.util.EventObject;
!
! public class FTPStatusEvent extends EventObject {
!
! public FTPStatusEvent(Object obj){
! super(obj);
! }
!
! public FTPStatusEvent(Object obj, String s) {
! super(obj);
! message = s;
! messageType = OK;
! }
!
! public FTPStatusEvent(Object obj, String s, int messageType) {
! super(obj);
! message = s;
! this.messageType = messageType;
! }
!
! public String getMessage() {
! return message;
! }
!
! public void setMessage(String s) {
! message = s;
! }
!
! public int getMessageType() {
! return messageType;
! }
!
! public void setMessageType(int type) {
! messageType = type;
! }
!
! public int getFileLength() {
!
! return fileLength;
! }
! public void setFileLength(int len) {
!
! fileLength = len;
! }
!
! public int getCurrentRecord() {
!
! return currentRecord;
! }
!
! public void setCurrentRecord(int current) {
!
! currentRecord = current;
! }
! private String message;
! private int fileLength;
! private int currentRecord;
! private int messageType;
!
! static final int OK = 0;
! static final int ERROR = 1;
! static final int ERROR_NULLS_ALLOWED = 2;
!
!
! }
Index: SessionConfigEvent.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/event/SessionConfigEvent.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SessionConfigEvent.java 1 Feb 2003 06:40:18 -0000 1.2
--- SessionConfigEvent.java 16 Jun 2005 04:41:19 -0000 1.3
***************
*** 1,50 ****
! /**
! * Title: SessionConfigEvent
! * Copyright: Copyright (c) 2002
! * 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.event;
!
! import java.beans.PropertyChangeEvent;
!
! public class SessionConfigEvent extends PropertyChangeEvent {
!
!
! /**
! * Constructs a new <code>SessionConfigChangeEvent</code>.
! *
! * @param source The bean that fired the event.
! * @param propertyName The programmatic name of the property
! * that was changed.
! * @param oldValue The old value of the property.
! * @param newValue The new value of the property.
! */
! public SessionConfigEvent(Object source, String propertyName,
! Object oldValue, Object newValue) {
!
! super(source, propertyName, oldValue, newValue);
!
! }
!
! }
--- 1,50 ----
! /**
! * Title: SessionConfigEvent
! * Copyright: Copyright (c) 2002
! * 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.event;
!
! import java.beans.PropertyChangeEvent;
!
! public class SessionConfigEvent extends PropertyChangeEvent {
!
!
! /**
! * Constructs a new <code>SessionConfigChangeEvent</code>.
! *
! * @param source The bean that fired the event.
! * @param propertyName The programmatic name of the property
! * that was changed.
! * @param oldValue The old value of the property.
! * @param newValue The new value of the property.
! */
! public SessionConfigEvent(Object source, String propertyName,
! Object oldValue, Object newValue) {
!
! super(source, propertyName, oldValue, newValue);
!
! }
!
! }
Index: BootEvent.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/event/BootEvent.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** BootEvent.java 10 Apr 2002 19:46:23 -0000 1.1.1.1
--- BootEvent.java 16 Jun 2005 04:41:19 -0000 1.2
***************
*** 1,37 ****
! package org.tn5250j.event;
!
! import java.util.EventObject;
!
! public class BootEvent extends EventObject {
!
! public BootEvent(Object obj){
! super(obj);
!
! }
!
! public BootEvent(Object obj, String s) {
! super(obj);
! bootOptions = s;
! }
!
! public String getMessage() {
! return message;
! }
!
! public void setMessage(String s) {
! message = s;
! }
!
! public String getNewSessionOptions() {
!
! return bootOptions;
! }
!
! public void setNewSessionOptions(String s) {
!
! bootOptions = s;
! }
!
! private String message;
! private String bootOptions;
! }
--- 1,37 ----
! package org.tn5250j.event;
!
! import java.util.EventObject;
!
! public class BootEvent extends EventObject {
!
! public BootEvent(Object obj){
! super(obj);
!
! }
!
! public BootEvent(Object obj, String s) {
! super(obj);
! bootOptions = s;
! }
!
! public String getMessage() {
! return message;
! }
!
! public void setMessage(String s) {
! message = s;
! }
!
! public String getNewSessionOptions() {
!
! return bootOptions;
! }
!
! public void setNewSessionOptions(String s) {
!
! bootOptions = s;
! }
!
! private String message;
! private String bootOptions;
! }
Index: WizardEvent.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/event/WizardEvent.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** WizardEvent.java 13 Jan 2003 19:15:21 -0000 1.1
--- WizardEvent.java 16 Jun 2005 04:41:19 -0000 1.2
***************
*** 1,88 ****
! /*
! * @(#)WizardEvent.java
! * Copyright: Copyright (c) 2001
! *
! * 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.event;
!
! import java.awt.Component;
!
! /**
! * The event object for Wizard pages.
! */
! public class WizardEvent extends java.util.EventObject {
!
! protected Component currentPage;
! protected Component newPage;
! protected boolean isLastPage;
! protected boolean allowChange;
!
! public WizardEvent(Object source, Component current_page, Component new_page,
! boolean is_last_page, boolean allow_change) {
!
! super(source);
! this.currentPage = current_page;
! this.newPage = new_page;
! this.isLastPage = is_last_page;
! this.allowChange = allow_change;
! }
!
! /**
! * Returns whether the page is the last page.
! */
! public boolean isLastPage() {
! return isLastPage;
! }
!
! /**
! * Returns whether the event should be allowed to finish processing.
! */
! public boolean getAllowChange() {
! return allowChange;
! }
!
! /**
! * Sets whether the event should be allowed to finish processing.
! */
! public void setAllowChange(boolean v) {
! allowChange = v;
! }
!
! /**
! * Returns the next page.
! */
! public Component getNewPage() {
! return newPage;
! }
!
! /**
! * Sets the next page.
! */
! public void setNewPage(Component p) {
! newPage = p;
! }
!
! /**
! * Returns the current page on which the <code>JCWizardEvent</code> occured.
! */
! public Component getCurrentPage() {
! return currentPage;
! }
!
! }
!
--- 1,88 ----
! /*
! * @(#)WizardEvent.java
! * Copyright: Copyright (c) 2001
! *
! * 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.event;
!
! import java.awt.Component;
!
! /**
! * The event object for Wizard pages.
! */
! public class WizardEvent extends java.util.EventObject {
!
! protected Component currentPage;
! protected Component newPage;
! protected boolean isLastPage;
! protected boolean allowChange;
!
! public WizardEvent(Object source, Component current_page, Component new_page,
! boolean is_last_page, boolean allow_change) {
!
! super(source);
! this.currentPage = current_page;
! this.newPage = new_page;
! this.isLastPage = is_last_page;
! this.allowChange = allow_change;
! }
!
! /**
! * Returns whether the page is the last page.
! */
! public boolean isLastPage() {
! return isLastPage;
! }
!
! /**
! * Returns whether the event should be allowed to finish processing.
! */
! public boolean getAllowChange() {
! return allowChange;
! }
!
! /**
! * Sets whether the event should be allowed to finish processing.
! */
! public void setAllowChange(boolean v) {
! allowChange = v;
! }
!
! /**
! * Returns the next page.
! */
! public Component getNewPage() {
! return newPage;
! }
!
! /**
! * Sets the next page.
! */
! public void setNewPage(Component p) {
! newPage = p;
! }
!
! /**
! * Returns the current page on which the <code>JCWizardEvent</code> occured.
! */
! public Component getCurrentPage() {
! return currentPage;
! }
!
! }
!
Index: FTPStatusListener.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/event/FTPStatusListener.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** FTPStatusListener.java 10 Apr 2002 19:46:23 -0000 1.1.1.1
--- FTPStatusListener.java 16 Jun 2005 04:41:19 -0000 1.2
***************
*** 1,11 ****
! package org.tn5250j.event;
!
! import java.util.EventListener;
!
! public interface FTPStatusListener extends EventListener {
!
! public abstract void statusReceived(FTPStatusEvent statusevent);
! public abstract void commandStatusReceived(FTPStatusEvent statusevent);
! public abstract void fileInfoReceived(FTPStatusEvent statusevent);
!
! }
--- 1,11 ----
! package org.tn5250j.event;
!
! import java.util.EventListener;
!
! public interface FTPStatusListener extends EventListener {
!
! public abstract void statusReceived(FTPStatusEvent statusevent);
! public abstract void commandStatusReceived(FTPStatusEvent statusevent);
! public abstract void fileInfoReceived(FTPStatusEvent statusevent);
!
! }
Index: BootListener.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/event/BootListener.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** BootListener.java 10 Apr 2002 19:46:23 -0000 1.1.1.1
--- BootListener.java 16 Jun 2005 04:41:19 -0000 1.2
***************
*** 1,9 ****
! package org.tn5250j.event;
!
! import java.util.EventListener;
!
! public interface BootListener extends EventListener {
!
! public abstract void bootOptionsReceived(BootEvent bootevent);
!
! }
--- 1,9 ----
! package org.tn5250j.event;
!
! import java.util.EventListener;
!
! public interface BootListener extends EventListener {
!
! public abstract void bootOptionsReceived(BootEvent bootevent);
!
! }
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click