| java.lang.Object org.enhydra.barracuda.config.ScreenUtil
ScreenUtil | public class ScreenUtil (Code) | | 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 | |
final protected static Logger | logger |
Method Summary | |
public static Level | cvtIntToLevel(int i) | public static int | cvtLevelToInt(Class cl) | public static int | cvtLevelToInt(Level l) | public static BAction | getActionLink(ViewContext vc, ListenerFactory lf) This method creates a BAction component and adds the specified
listener to it. | public static BSelect | getDebugLevelComp(ViewContext vc, String compName, int selectedIndex) | public static BSelect | getDebugLevelComp2(ViewContext vc, String compName, Class cl) | public static String | getErrMsg(ViewContext vc, String formName, String keyName) This method extracts a ValidationException error message
(if it exists) from a ViewContext object. | public static BSelect | getSelectComp(ViewContext vc, String compName, ListModel lm, int selectedIndex) | public static String | getSuccessMsg(ViewContext vc, String formName, String keyName) | public static BToggleButton | getToggleButton(ViewContext vc, String compName, String value, boolean selected) | public static BAction | getUpdateButtonComp(ViewContext vc, ListenerFactory lf) | public static void | setLevel(Class cl, int i) |
logger | final protected static Logger logger(Code) | | |
cvtIntToLevel | public static Level cvtIntToLevel(int i)(Code) | | |
cvtLevelToInt | public static int cvtLevelToInt(Class cl)(Code) | | |
cvtLevelToInt | public static int cvtLevelToInt(Level l)(Code) | | |
getActionLink | public static BAction getActionLink(ViewContext vc, ListenerFactory lf)(Code) | | This method creates a BAction component and adds the specified
listener to it.
Parameters: vc - the view context Parameters: lf - the listener factory to be notified when the action occurs the resulting BAction component |
getDebugLevelComp | public static BSelect getDebugLevelComp(ViewContext vc, String compName, int selectedIndex)(Code) | | This method greats a typical debug level BSelect component
Parameters: vc - the view context Parameters: compName - the component name Parameters: selectedIndex - the index to be selected the resulting BSelect component |
getDebugLevelComp2 | public static BSelect getDebugLevelComp2(ViewContext vc, String compName, Class cl)(Code) | | This method greats a typical debug level BSelect component, using the new
Log4J options (Debug, Info, Warn, Error, Fatal)
Parameters: vc - the view context Parameters: compName - the component name Parameters: selectedIndex - the index to be selected the resulting BSelect component |
getErrMsg | public static String getErrMsg(ViewContext vc, String formName, String keyName)(Code) | | This method extracts a ValidationException error message
(if it exists) from a ViewContext object. This method expects
the ViewContext to contain an EventContext, which in turn must
contain a FormMap (specified by formName), which in turn must
contain a ValidationException (specified by keyName).
Parameters: vc - the view context Parameters: keyName - the key name which was used to store the ValidationException the resulting error message (blank is it doesn't exist) |
getSelectComp | public static BSelect getSelectComp(ViewContext vc, String compName, ListModel lm, int selectedIndex)(Code) | | This method greats a typical debug level BSelect component
Parameters: vc - the view context Parameters: compName - the component name Parameters: selectedIndex - the index to be selected the resulting BSelect component |
getSuccessMsg | public static String getSuccessMsg(ViewContext vc, String formName, String keyName)(Code) | | This method creates a success message
Parameters: vc - the view context Parameters: keyName - the key name which was used to store the ValidationException the resulting error message (blank is it doesn't exist) |
getToggleButton | public static BToggleButton getToggleButton(ViewContext vc, String compName, String value, boolean selected)(Code) | | This method greats a typical debug level BSelect component
Parameters: vc - the view context Parameters: lf - the listener factory to be notified when the action occurs the resulting BAction component |
getUpdateButtonComp | public static BAction getUpdateButtonComp(ViewContext vc, ListenerFactory lf)(Code) | | This method greats a typical debug level BSelect component
Parameters: vc - the view context Parameters: lf - the listener factory to be notified when the action occurs the resulting BAction component |
setLevel | public static void setLevel(Class cl, int i)(Code) | | |
|
|