2246 log.log(Level.FINER, "Set statusbar text: " + text); 2247 2248 if (uiClient != null) { 2249 uiClient.setStatusbarText(text); 2250 } 2251 } 2252 2253 private String[] fwkChooseFile(String initialFileName, boolean multiple, String mimeFilters) { 2254 log.log(Level.FINER, "Choose file, initial=" + initialFileName); 2255 2256 return uiClient != null 2257 ? uiClient.chooseFile(initialFileName, multiple, mimeFilters) 2258 : null; 2259 } 2260 2261 private void fwkStartDrag( 2262 Object image, 2263 int imageOffsetX, int imageOffsetY, 2264 int eventPosX, int eventPosY, 2265 String[] mimeTypes, Object[] values, 2266 boolean isImageSource) 2267 { 2268 log.log(Level.FINER, "Start drag: "); 2269 if (uiClient != null) { 2270 uiClient.startDrag( 2271 WCImage.getImage(image), 2272 imageOffsetX, imageOffsetY, 2273 eventPosX, eventPosY, 2274 mimeTypes, values, 2275 isImageSource); 2276 } 2277 } 2278 2279 private WCPoint fwkScreenToWindow(WCPoint ptScreen) { 2280 log.log(Level.FINER, "fwkScreenToWindow"); 2281 2282 if (pageClient != null) { 2283 return pageClient.screenToWindow(ptScreen); 2284 } 2285 return ptScreen; 2286 } 2287 2288 private WCPoint fwkWindowToScreen(WCPoint ptWindow) { 2289 log.log(Level.FINER, "fwkWindowToScreen"); 2290 2291 if (pageClient != null) { 2292 return pageClient.windowToScreen(ptWindow); 2293 } 2294 return ptWindow; 2295 } | 2246 log.log(Level.FINER, "Set statusbar text: " + text); 2247 2248 if (uiClient != null) { 2249 uiClient.setStatusbarText(text); 2250 } 2251 } 2252 2253 private String[] fwkChooseFile(String initialFileName, boolean multiple, String mimeFilters) { 2254 log.log(Level.FINER, "Choose file, initial=" + initialFileName); 2255 2256 return uiClient != null 2257 ? uiClient.chooseFile(initialFileName, multiple, mimeFilters) 2258 : null; 2259 } 2260 2261 private void fwkStartDrag( 2262 Object image, 2263 int imageOffsetX, int imageOffsetY, 2264 int eventPosX, int eventPosY, 2265 String[] mimeTypes, Object[] values, 2266 boolean isImageSource, String imageFileExt) 2267 { 2268 log.log(Level.FINER, "Start drag: "); 2269 if (uiClient != null) { 2270 uiClient.startDrag( 2271 WCImage.getImage(image), 2272 imageOffsetX, imageOffsetY, 2273 eventPosX, eventPosY, 2274 mimeTypes, values, 2275 isImageSource, imageFileExt); 2276 } 2277 } 2278 2279 private WCPoint fwkScreenToWindow(WCPoint ptScreen) { 2280 log.log(Level.FINER, "fwkScreenToWindow"); 2281 2282 if (pageClient != null) { 2283 return pageClient.screenToWindow(ptScreen); 2284 } 2285 return ptScreen; 2286 } 2287 2288 private WCPoint fwkWindowToScreen(WCPoint ptWindow) { 2289 log.log(Level.FINER, "fwkWindowToScreen"); 2290 2291 if (pageClient != null) { 2292 return pageClient.windowToScreen(ptWindow); 2293 } 2294 return ptWindow; 2295 } |