Package i2p.susi.dns
Class BaseBean
- java.lang.Object
-
- i2p.susi.dns.BaseBean
-
- Direct Known Subclasses:
AddressbookBean
,ConfigBean
,SubscriptionsBean
public class BaseBean extends Object
Holds methods common to several Beans.- Since:
- 0.9.1
-
-
Field Summary
Fields Modifier and Type Field Description protected I2PAppContext
_context
protected String
action
protected String
lastSerial
protected String
method
static String
PROP_PW_ENABLE
protected Properties
properties
protected String
serial
-
Constructor Summary
Constructors Constructor Description BaseBean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static String
_t(String s)
Translateprotected static String
_t(String s, Object o)
Translateprotected static String
_t(String s, Object o, Object o2)
Translateprotected File
addressbookDir()
protected File
configFile()
protected void
debug(String msg)
String
getAction()
int
getBubbleCount()
String
getBubbleText()
String
getSerial()
String
getTheme()
Returns the theme pathString[]
getThemes()
Get all themesprotected void
loadConfig()
protected static String
ngettext(String s, String p, int n)
Translate (ngettext)protected void
reload()
void
setAction(String action)
void
setSerial(String serial)
void
storeMethod(String method)
protected void
warn(Throwable t)
-
-
-
Field Detail
-
_context
protected final I2PAppContext _context
-
properties
protected final Properties properties
-
action
protected String action
-
lastSerial
protected String lastSerial
-
serial
protected String serial
-
method
protected String method
-
PROP_PW_ENABLE
public static final String PROP_PW_ENABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
addressbookDir
protected File addressbookDir()
- Since:
- 0.9.13 moved from ConfigBean.addressbookPrefix
-
configFile
protected File configFile()
- Since:
- 0.9.13 moved from ConfigBean.configFileName
-
loadConfig
protected void loadConfig()
-
reload
protected void reload()
- Since:
- 0.9.13 moved from ConfigBean
-
getTheme
public String getTheme()
Returns the theme path- Since:
- 0.9.1
-
getThemes
public String[] getThemes()
Get all themes- Returns:
- String[] -- Array of all the themes found.
- Since:
- 0.9.2
-
getAction
public String getAction()
- Since:
- 0.9.13 moved from subclasses
-
setAction
public void setAction(String action)
- Since:
- 0.9.13 moved from subclasses
-
getSerial
public String getSerial()
- Since:
- 0.9.13 moved from subclasses
-
setSerial
public void setSerial(String serial)
- Since:
- 0.9.13 moved from subclasses
-
storeMethod
public void storeMethod(String method)
- Since:
- 0.9.65
-
getBubbleCount
public int getBubbleCount()
- Since:
- 0.9.66
-
getBubbleText
public String getBubbleText()
- Since:
- 0.9.66
-
_t
protected static String _t(String s, Object o, Object o2)
Translate- Since:
- 0.9.13 moved from subclasses
-
ngettext
protected static String ngettext(String s, String p, int n)
Translate (ngettext)- Since:
- 0.9.13 moved from subclasses
-
debug
protected void debug(String msg)
- Since:
- 0.9.13 moved from Debug
-
warn
protected void warn(Throwable t)
- Since:
- 0.9.13 moved from Debug
-
-