i2p.susi.dns
Class BaseBean

java.lang.Object
  extended by 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
protected  I2PAppContext _context
           
protected  String action
           
static String BASE_THEME_PATH
           
static String DEFAULT_THEME
           
protected  String lastSerial
           
static String PROP_PW_ENABLE
           
static String PROP_THEME_NAME
           
protected  Properties properties
           
static String RC_PROP_THEME_NAME
           
static String RC_PROP_UNIVERSAL_THEMING
           
protected  String serial
           
 
Constructor Summary
BaseBean()
           
 
Method Summary
protected static String _t(String s)
          Translate
protected static String _t(String s, Object o)
          Translate
protected static String _t(String s, Object o, Object o2)
          Translate
protected  File addressbookDir()
           
protected  File configFile()
           
protected  void debug(String msg)
           
 String getAction()
           
 String getSerial()
           
 String getTheme()
          Returns the theme path
 String[] getThemes()
          Get all themes
protected  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)
           
protected  void warn(Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_context

protected final I2PAppContext _context

properties

protected final Properties properties

action

protected String action

lastSerial

protected String lastSerial

serial

protected String serial

RC_PROP_THEME_NAME

public static final String RC_PROP_THEME_NAME
See Also:
Constant Field Values

RC_PROP_UNIVERSAL_THEMING

public static final String RC_PROP_UNIVERSAL_THEMING
See Also:
Constant Field Values

PROP_THEME_NAME

public static final String PROP_THEME_NAME
See Also:
Constant Field Values

DEFAULT_THEME

public static final String DEFAULT_THEME
See Also:
Constant Field Values

BASE_THEME_PATH

public static final String BASE_THEME_PATH
See Also:
Constant Field Values

PROP_PW_ENABLE

public static final String PROP_PW_ENABLE
See Also:
Constant Field Values
Constructor Detail

BaseBean

public BaseBean()
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

_t

protected static String _t(String s)
Translate

Since:
0.9.13 moved from subclasses

_t

protected static String _t(String s,
                           Object o)
Translate

Since:
0.9.13 moved from subclasses

_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