Multicolumn View of BRIDGE file system

We have implemented a multicolumn view feature of BRIDGE file system. Similar to the multicolumn view feature provided by Mac machine, this enables BRIDGE users view files and folders in a horizontally expandable window, instead of a vertical tree¡ªthe windows explore type of user interface. HorizontalViewPanel.java is the class that does the job. Some of its methods are listed as follows:
//initialize the view, given a folder path
public void setupUI(EmbeddedObjectPath path)

//set up the interface when the method is called
public void setupUI()

//returns a scrollpane that renders this panel and its     
//horizontal scrollbar changes the position according to
//the size of the view
public JscrollPane getScrollPane()

// remove all Jlists after the given list in the maintained 
// vector of Jlists. Given list is the list whose list item 
// is selected 
public void resetUI(Jlist list)

// get current selection¡¯s logic path with the selected 
// EmbeddedObjectDescriptor
public EmbeddedObjectPath getSelectedPath(EmbeddedObjectDescriptor desc)
The class has a Listener class that handles list selection event and mouse event:
  • When the user double clicks a folder or directory, fireActionPerformed(ActionEvent e)method is invoked and any registered ActionListener will execute its actionPerformed(ActionEvent e) method.
  • When the user selects a file from the folder, firePropertyChange method will be called and the file¡¯s logic path is passed.
Our future work includes:
  • Decide what action we should take when the user double clicks the file or the folder. For the file, it might be reasonable to open it when double clicked. For the folder, we can treat it as list selection that updates the horizontal view window only.
  • Decide what we should do when a file is selected. It might be a good idea to create a certain type of object that manages metadata of files and display this type of object when a file is selected, e.g., display the file size, last modified time, author, etc.


/public/projects/bridge/design/Multicolumn view of BRIDGE file systems Login | Web Editor | Full Editor
Last modified 9/11/03 1:24 PM by isenhour (history)
Site contents