|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.barracuda.config.ScreenUtil
This class represents the master Barracuda config screen. It is stored in the users session on a per-locale basis, and is used kind of as a master repository for objects that make up the system.
Field Summary | |
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
ScreenUtil()
|
Method Summary | |
static org.apache.log4j.Level |
cvtIntToLevel(int i)
|
static int |
cvtLevelToInt(Class cl)
|
static int |
cvtLevelToInt(org.apache.log4j.Level l)
|
static BAction |
getActionLink(ViewContext vc,
ListenerFactory lf)
This method creates a BAction component and adds the specified listener to it. |
static BSelect |
getDebugLevelComp(ViewContext vc,
String compName,
int selectedIndex)
This method greats a typical debug level BSelect component |
static BSelect |
getDebugLevelComp2(ViewContext vc,
String compName,
Class cl)
This method creates a typical debug level BSelect component, using the new Log4J options (Debug, Info, Warn, Error, Fatal) |
static String |
getErrMsg(ViewContext vc,
String formName,
String keyName)
This method extracts a ValidationException error message (if it exists) from a ViewContext object. |
static BSelect |
getSelectComp(ViewContext vc,
String compName,
ListModel lm,
int selectedIndex)
This method greats a typical debug level BSelect component |
static String |
getSuccessMsg(ViewContext vc,
String formName,
String keyName)
This method creates a success message |
static BToggleButton |
getToggleButton(ViewContext vc,
String compName,
String value,
boolean selected)
This method greats a typical debug level BSelect component |
static BAction |
getUpdateButtonComp(ViewContext vc,
ListenerFactory lf)
This method greats a typical debug level BSelect component |
static void |
setLevel(Class cl,
int i)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.apache.log4j.Logger logger
Constructor Detail |
public ScreenUtil()
Method Detail |
public static BSelect getDebugLevelComp(ViewContext vc, String compName, int selectedIndex)
vc
- the view contextcompName
- the component nameselectedIndex
- the index to be selected
public static BSelect getDebugLevelComp2(ViewContext vc, String compName, Class cl)
vc
- the view contextcompName
- the component namecl
- the class to query a logger level from determining which index will be selected
public static int cvtLevelToInt(Class cl)
public static int cvtLevelToInt(org.apache.log4j.Level l)
public static org.apache.log4j.Level cvtIntToLevel(int i)
public static void setLevel(Class cl, int i)
public static BSelect getSelectComp(ViewContext vc, String compName, ListModel lm, int selectedIndex)
vc
- the view contextcompName
- the component namelm
- the list model to useselectedIndex
- the index to be selected
public static BToggleButton getToggleButton(ViewContext vc, String compName, String value, boolean selected)
vc
- the view contextcompName
- the component namevalue
- the component valueselected
- whether the toggle button is selected or not
public static BAction getActionLink(ViewContext vc, ListenerFactory lf)
vc
- the view contextlf
- the listener factory to be notified when the action occurs
public static BAction getUpdateButtonComp(ViewContext vc, ListenerFactory lf)
vc
- the view contextlf
- the listener factory to be notified when the action occurs
public static String getErrMsg(ViewContext vc, String formName, String keyName)
vc
- the view contextkeyName
- the key name which was used to store the
ValidationException
public static String getSuccessMsg(ViewContext vc, String formName, String keyName)
vc
- the view contextkeyName
- the key name which was used to store the
ValidationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |