pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edvin Syse ...@syse.no>
Subject SV: SV: FileBrowserSheet#setSelectedFile() does not take effect
Date Fri, 19 Aug 2011 13:17:51 GMT
No it is not. Also, setRootDirectory() works fine.

> -----Opprinnelig melding-----
> Fra: Camilo Casadiego [mailto:Camilo.Casadiego@adv.co]
> Sendt: 19. august 2011 15:15
> Til: user@pivot.apache.org
> Emne: RE: SV: FileBrowserSheet#setSelectedFile() does not take effect
> 
> I'm new in pivot....but cant' it be a chroot problem? I mean, the app
> starts with the relative location of where its launched...when you make
> debug which is the actual route you have into FileBrowserSheet object??
> 
> Cordialmente,
> 
> 
> Camilo Casadiego Espitia
> Arquitecto de SW
> A + 57 1 6393000
>   camilo.casadiego@adv.com.co
> c http://www.adv.com.co
> Carrera 11 No. 93 - 53 P7
> Bogotá - Colombia
> 
> 
> 
> -----Mensaje original-----
> De: Greg Brown [mailto:gk_brown@verizon.net]
> Enviado el: Friday, August 19, 2011 7:51 AM
> Para: user@pivot.apache.org
> Asunto: Re: SV: FileBrowserSheet#setSelectedFile() does not take effect
> 
> Does the sheet actually go to the right directory when you call
> setRootDirectory()?
> 
> On Aug 19, 2011, at 8:40 AM, Edvin Syse wrote:
> 
> > That's the first thing i tried actually :) Same result.
> >
> >> -----Opprinnelig melding-----
> >> Fra: Greg Brown [mailto:gk_brown@verizon.net]
> >> Sendt: 19. august 2011 14:39
> >> Til: user@pivot.apache.org
> >> Emne: Re: FileBrowserSheet#setSelectedFile() does not take effect
> >>
> >> Try calling setRootDirectory() with the parent directory of the file you
> >> want to select.
> >>
> >> On Aug 19, 2011, at 8:20 AM, Edvin Syse wrote:
> >>
> >>> I want to select a spesific  folder after the sheet is opened, but
> nothing
> >> is selected:
> >>>
> >>> FileBrowserSheet browser = new
> >> FileBrowserSheet(FileBrowserSheet.Mode.SAVE_TO);
> >>> browser.getWindowStateListeners().add(new
> >> WindowStateListener.Adapter() {
> >>> 	public void windowOpened(Window window) {
> >>> 			browser.setSelectedFile(lastTarget);
> >>> 	}
> >>> });
> >>> browser.open(...)
> >>>
> >>> FileBrowserSheet. selectedFiles is updated with the selection, and
> >> selectedFilesChanged is fired. Any idea what's wrong?
> >>>
> >>> -- Edvin
> >

Mime
View raw message