Gets an object of the specified type. Currently the only types recognized are String and ImageIcon. @param type the desired class type @return the object, or null
(Class<?> type)
| 159 | * @return the object, or null |
| 160 | */ |
| 161 | public Object getObject(Class<?> type) { |
| 162 | if (ImageIcon.class.equals(type)) { |
| 163 | return getResizableIcon(); |
| 164 | } |
| 165 | if (String.class.equals(type)) { |
| 166 | return getString(); |
| 167 | } |
| 168 | return null; |
| 169 | } |
| 170 | |
| 171 | /** |
| 172 | * Opens an InputStream. |
nothing calls this directly
no test coverage detected