|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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(java.lang.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,
java.lang.String compName,
int selectedIndex)
This method greats a typical debug level BSelect component |
static BSelect |
getDebugLevelComp2(ViewContext vc,
java.lang.String compName,
java.lang.Class cl)
This method greats a typical debug level BSelect component, using the new Log4J options (Debug, Info, Warn, Error, Fatal) |
static java.lang.String |
getErrMsg(ViewContext vc,
java.lang.String formName,
java.lang.String keyName)
This method extracts a ValidationException error message (if it exists) from a ViewContext object. |
static BSelect |
getSelectComp(ViewContext vc,
java.lang.String compName,
ListModel lm,
int selectedIndex)
This method greats a typical debug level BSelect component |
static java.lang.String |
getSuccessMsg(ViewContext vc,
java.lang.String formName,
java.lang.String keyName)
This method creates a success message |
static BToggleButton |
getToggleButton(ViewContext vc,
java.lang.String name,
java.lang.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(java.lang.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 org.apache.log4j.Logger logger
Constructor Detail |
public ScreenUtil()
Method Detail |
public static BSelect getDebugLevelComp(ViewContext vc, java.lang.String compName, int selectedIndex)
vc
- the view contextcompName
- the component nameselectedIndex
- the index to be selected
public static BSelect getDebugLevelComp2(ViewContext vc, java.lang.String compName, java.lang.Class cl)
vc
- the view contextcompName
- the component name
public static int cvtLevelToInt(java.lang.Class cl)
public static int cvtLevelToInt(org.apache.log4j.Level l)
public static org.apache.log4j.Level cvtIntToLevel(int i)
public static void setLevel(java.lang.Class cl, int i)
public static BSelect getSelectComp(ViewContext vc, java.lang.String compName, ListModel lm, int selectedIndex)
vc
- the view contextcompName
- the component nameselectedIndex
- the index to be selected
public static BToggleButton getToggleButton(ViewContext vc, java.lang.String name, java.lang.String value, boolean selected)
vc
- the view context
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 java.lang.String getErrMsg(ViewContext vc, java.lang.String formName, java.lang.String keyName)
vc
- the view contextkeyName
- the key name which was used to store the
ValidationException
public static java.lang.String getSuccessMsg(ViewContext vc, java.lang.String formName, java.lang.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 |