Skip to content

Commit bee3b89

Browse files
committed
Changed SimpleTextNotification to TextNotification
1 parent 255a490 commit bee3b89

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/com/demo/SimpleManagerDemo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import com.notification.NotificationFactory;
66
import com.notification.NotificationFactory.Location;
77
import com.notification.types.IconNotification;
8-
import com.notification.types.SimpleTextNotification;
8+
import com.notification.types.TextNotification;
99
import com.platform.Platform;
1010
import com.theme.ThemePackagePresets;
1111
import com.utils.IconUtils;
@@ -30,7 +30,7 @@ public static void main(String[] args) throws InterruptedException {
3030
fade.setFadeTime(Time.seconds(1));
3131

3232
// adds a text notification to the first manager
33-
SimpleTextNotification notification = factory.buildTextNotification("This is a title", "This is a subtitle");
33+
TextNotification notification = factory.buildTextNotification("This is a title", "This is a subtitle");
3434
notification.setCloseOnClick(true);
3535
// the notification will stay there forever until you click it to exit
3636
plain.addNotification(notification, Time.infinite());

src/com/notification/NotificationFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import javax.swing.ImageIcon;
66

77
import com.notification.types.IconNotification;
8-
import com.notification.types.SimpleTextNotification;
8+
import com.notification.types.TextNotification;
99
import com.theme.ThemePackage;
1010
import com.theme.ThemePackagePresets;
1111

@@ -92,8 +92,8 @@ public Notification build(String name, Object... args) {
9292
* @param subtitle
9393
* @return
9494
*/
95-
public SimpleTextNotification buildTextNotification(String title, String subtitle) {
96-
SimpleTextNotification text = new SimpleTextNotification();
95+
public TextNotification buildTextNotification(String title, String subtitle) {
96+
TextNotification text = new TextNotification();
9797
text.setWindowTheme(m_pack.windowTheme);
9898
text.setTextTheme(m_pack.textTheme);
9999
text.setTitle(title);

src/com/notification/types/SimpleTextNotification.java renamed to src/com/notification/types/TextNotification.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* A text notification which will display a title and a subtitle.
1111
*/
12-
public class SimpleTextNotification extends ComponentNotification {
12+
public class TextNotification extends ComponentNotification {
1313
private TextTheme m_theme;
1414

1515
private String m_title;
@@ -18,7 +18,7 @@ public class SimpleTextNotification extends ComponentNotification {
1818
private JLabel m_titleLabel;
1919
private JLabel m_subtitleLabel;
2020

21-
public SimpleTextNotification() {
21+
public TextNotification() {
2222
m_titleLabel = new JLabel();
2323
m_subtitleLabel = new JLabel();
2424

0 commit comments

Comments
 (0)