From 5e251516411a590a6b47ec25e6050d77db416611 Mon Sep 17 00:00:00 2001 From: skylarmt Date: Thu, 19 Feb 2015 18:18:13 -0700 Subject: [PATCH] Here, have more javadocs. --- src/net/apocalypselabs/symat/Pads.java | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/net/apocalypselabs/symat/Pads.java b/src/net/apocalypselabs/symat/Pads.java index d81b64f..9c88fca 100644 --- a/src/net/apocalypselabs/symat/Pads.java +++ b/src/net/apocalypselabs/symat/Pads.java @@ -169,7 +169,9 @@ public class Pads extends javax.swing.JInternalFrame { } /** - * Generate a random pad ID. + * Generate a random pad ID with length 15. + *
There are about 7.6 x 10^26 possibilities (768 septillion). + *
If this starts giving used IDs, I'll be too rich to care. * * @return the ID. */ @@ -223,6 +225,12 @@ public class Pads extends javax.swing.JInternalFrame { return text; } + /** + * Set pad text. + * + * @param id Pad ID + * @param content Pad text + */ public static void setPad(String id, String content) { try { getClient().setText(id, content); @@ -253,9 +261,14 @@ public class Pads extends javax.swing.JInternalFrame { } } + /** + * Display a pad. + * + * @param pad the pad ID + */ public static void loadPad(String pad) { String theme = ""; - if (PrefStorage.getSetting("theme").equals("dark")) { + if (Theme.currentTheme == Theme.THEME_DARK) { theme = "?theme=terminal"; } MainGUI.loadFrame(new WebBrowser("Pad " + pad,