public static ScreenComponent createScreenComponent ( String componentType , ScreenLoc itsLocation , ComponentParent targetScreen , Convert converter , int iDisplayFieldDesc , Map < String , Object > properties ) { String screenFieldClass = null ; if ( ! componentType . contains ( "." ) ) screenFieldClass = ScreenModel . BASE_PACKAGE + componentType ; else if ( componentType . startsWith ( "." ) ) screenFieldClass = DBConstants . ROOT_PACKAGE + componentType . substring ( 1 ) ; else screenFieldClass = componentType ; ScreenComponent screenField = ( ScreenComponent ) ClassServiceUtility . getClassService ( ) . makeObjectFromClassName ( screenFieldClass ) ; if ( screenField == null ) { Utility . getLogger ( ) . warning ( "Screen component not found " + componentType ) ; screenField = ( ScreenComponent ) ClassServiceUtility . getClassService ( ) . makeObjectFromClassName ( ScreenModel . BASE_PACKAGE + ScreenModel . EDIT_TEXT ) ; } screenField . init ( itsLocation , targetScreen , converter , iDisplayFieldDesc , properties ) ; return screenField ; }
Create a screen component of this type .