private Type findType ( String typeString ) throws UnknownDashletTypeException { if ( "viewReport" . equalsIgnoreCase ( typeString ) ) { return Type . VIEW ; } else if ( "textContent" . equalsIgnoreCase ( typeString ) ) { return Type . TEXT ; } throw new UnknownDashletTypeException ( typeString ) ; }
Determines the dashlet type from the given type string .