]> git.mxchange.org Git - jphone-core.git/commitdiff
Added more events:
authorRoland Häder <roland@mxchange.org>
Sun, 30 Jul 2017 19:51:05 +0000 (21:51 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 30 Jul 2017 19:51:05 +0000 (21:51 +0200)
- when a fax, land-line or mobile number has been created by a bean helper

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jphone/events/helper/fax/created/HelperCreatedFaxNumberEvent.java [new file with mode: 0644]
src/org/mxchange/jphone/events/helper/fax/created/ObservableHelperCreatedFaxNumberEvent.java [new file with mode: 0644]
src/org/mxchange/jphone/events/helper/landline/created/HelperCreatedLandLineNumberEvent.java [new file with mode: 0644]
src/org/mxchange/jphone/events/helper/landline/created/ObservableHelperCreatedLandLineNumberEvent.java [new file with mode: 0644]
src/org/mxchange/jphone/events/helper/mobile/created/HelperCreatedMobileNumberEvent.java [new file with mode: 0644]
src/org/mxchange/jphone/events/helper/mobile/created/ObservableHelperCreatedMobileNumberEvent.java [new file with mode: 0644]

diff --git a/src/org/mxchange/jphone/events/helper/fax/created/HelperCreatedFaxNumberEvent.java b/src/org/mxchange/jphone/events/helper/fax/created/HelperCreatedFaxNumberEvent.java
new file mode 100644 (file)
index 0000000..2ee48f9
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2017 Roland Haeder<roland@mxchange.org>
+ *
+ * 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 3 of the License, 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 program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jphone.events.helper.fax.created;
+
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+
+/**
+ * An event being fired when a bean helper has successfully created a fax number
+ * instance.
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class HelperCreatedFaxNumberEvent implements ObservableHelperCreatedFaxNumberEvent {
+
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 50_498_269_827_581L;
+
+       /**
+        * Fax number
+        */
+       private DialableFaxNumber faxNumber;
+
+       /**
+        * Constructor with fax number instance
+        * <p>
+        * @param faxNumber Fax number instance
+        */
+       public HelperCreatedFaxNumberEvent (final DialableFaxNumber faxNumber) {
+               this.faxNumber = faxNumber;
+       }
+
+       @Override
+       public DialableFaxNumber getFaxNumber () {
+               return this.faxNumber;
+       }
+
+       @Override
+       public void setFaxNumber (final DialableFaxNumber faxNumber) {
+               this.faxNumber = faxNumber;
+       }
+
+}
diff --git a/src/org/mxchange/jphone/events/helper/fax/created/ObservableHelperCreatedFaxNumberEvent.java b/src/org/mxchange/jphone/events/helper/fax/created/ObservableHelperCreatedFaxNumberEvent.java
new file mode 100644 (file)
index 0000000..e28a4d1
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2017 Roland Häder
+ *
+ * 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 3 of the License, 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 program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jphone.events.helper.fax.created;
+
+import java.io.Serializable;
+import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
+
+/**
+ * An interface for observable events when a bean helper has successfully
+ * created a fax number instance.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public interface ObservableHelperCreatedFaxNumberEvent extends Serializable {
+
+       /**
+        * Getter for fax number
+        * <p>
+        * @return Fax number
+        */
+       DialableFaxNumber getFaxNumber ();
+
+       /**
+        * Setter for fax number
+        * <p>
+        * @param faxNumber Fax number
+        */
+       void setFaxNumber (final DialableFaxNumber faxNumber);
+
+}
diff --git a/src/org/mxchange/jphone/events/helper/landline/created/HelperCreatedLandLineNumberEvent.java b/src/org/mxchange/jphone/events/helper/landline/created/HelperCreatedLandLineNumberEvent.java
new file mode 100644 (file)
index 0000000..0aef4e7
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2017 Roland Haeder<roland@mxchange.org>
+ *
+ * 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 3 of the License, 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 program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jphone.events.helper.landline.created;
+
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+
+/**
+ * An event being fired when a bean helper has successfully created a fax number
+ * instance.
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class HelperCreatedLandLineNumberEvent implements ObservableHelperCreatedLandLineNumberEvent {
+
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 50_498_269_827_582L;
+
+       /**
+        * Land-line number
+        */
+       private DialableLandLineNumber landLineNumber;
+
+       /**
+        * Constructor with fax number instance
+        * <p>
+        * @param landLineNumber Land-line number instance
+        */
+       public HelperCreatedLandLineNumberEvent (final DialableLandLineNumber landLineNumber) {
+               this.landLineNumber = landLineNumber;
+       }
+
+       @Override
+       public DialableLandLineNumber getLandLineNumber () {
+               return this.landLineNumber;
+       }
+
+       @Override
+       public void setLandLineNumber (final DialableLandLineNumber landLineNumber) {
+               this.landLineNumber = landLineNumber;
+       }
+
+}
diff --git a/src/org/mxchange/jphone/events/helper/landline/created/ObservableHelperCreatedLandLineNumberEvent.java b/src/org/mxchange/jphone/events/helper/landline/created/ObservableHelperCreatedLandLineNumberEvent.java
new file mode 100644 (file)
index 0000000..56f2e60
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2017 Roland Häder
+ *
+ * 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 3 of the License, 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 program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jphone.events.helper.landline.created;
+
+import java.io.Serializable;
+import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
+
+/**
+ * An interface for observable events when a bean helper has successfully
+ * created a land-line number instance.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public interface ObservableHelperCreatedLandLineNumberEvent extends Serializable {
+
+       /**
+        * Getter for landLine number
+        * <p>
+        * @return Land-line number
+        */
+       DialableLandLineNumber getLandLineNumber ();
+
+       /**
+        * Setter for landLine number
+        * <p>
+        * @param landLineNumber Land-line number
+        */
+       void setLandLineNumber (final DialableLandLineNumber landLineNumber);
+
+}
diff --git a/src/org/mxchange/jphone/events/helper/mobile/created/HelperCreatedMobileNumberEvent.java b/src/org/mxchange/jphone/events/helper/mobile/created/HelperCreatedMobileNumberEvent.java
new file mode 100644 (file)
index 0000000..efec208
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2017 Roland Haeder<roland@mxchange.org>
+ *
+ * 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 3 of the License, 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 program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jphone.events.helper.mobile.created;
+
+import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
+
+/**
+ * An event being fired when a bean helper has successfully created a fax number
+ * instance.
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class HelperCreatedMobileNumberEvent implements ObservableHelperCreatedMobileNumberEvent {
+
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 50_498_269_827_583L;
+
+       /**
+        * Mobile number
+        */
+       private DialableMobileNumber mobileNumber;
+
+       /**
+        * Constructor with fax number instance
+        * <p>
+        * @param mobileNumber Mobile number instance
+        */
+       public HelperCreatedMobileNumberEvent (final DialableMobileNumber mobileNumber) {
+               this.mobileNumber = mobileNumber;
+       }
+
+       @Override
+       public DialableMobileNumber getMobileNumber () {
+               return this.mobileNumber;
+       }
+
+       @Override
+       public void setMobileNumber (final DialableMobileNumber mobileNumber) {
+               this.mobileNumber = mobileNumber;
+       }
+
+}
diff --git a/src/org/mxchange/jphone/events/helper/mobile/created/ObservableHelperCreatedMobileNumberEvent.java b/src/org/mxchange/jphone/events/helper/mobile/created/ObservableHelperCreatedMobileNumberEvent.java
new file mode 100644 (file)
index 0000000..559dd14
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2017 Roland Häder
+ *
+ * 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 3 of the License, 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 program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jphone.events.helper.mobile.created;
+
+import java.io.Serializable;
+import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber;
+
+/**
+ * An interface for observable events when a bean helper has successfully
+ * created a mobile number instance.
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public interface ObservableHelperCreatedMobileNumberEvent extends Serializable {
+
+       /**
+        * Getter for mobile number
+        * <p>
+        * @return Mobile number
+        */
+       DialableMobileNumber getMobileNumber ();
+
+       /**
+        * Setter for mobile number
+        * <p>
+        * @param mobileNumber Mobile number
+        */
+       void setMobileNumber (final DialableMobileNumber mobileNumber);
+
+}