com.smartwerkz.jupload.classic.ui.views
Class FileSelectionModel

java.lang.Object
  extended by javax.swing.DefaultListSelectionModel
      extended by com.smartwerkz.jupload.classic.ui.views.FileSelectionModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.ListSelectionModel

public class FileSelectionModel
extends javax.swing.DefaultListSelectionModel

Since:
Jan 20, 2006, 12:04:59 AM
Author:
Dominik Seifert
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.DefaultListSelectionModel
leadAnchorNotificationEnabled, listenerList
 
Fields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
 
Constructor Summary
FileSelectionModel()
           
 
Method Summary
 void add(UploadFile file)
           
 void clear()
           
 UploadFile getFile(int row)
           
 java.util.List getFiles()
           
 UploadFile getLeadSelection()
           
 void remove(int index)
           
 boolean remove(UploadFile f)
          Removes the given file and returns its former index.
 void select(UploadNode node)
           
 void setSelection(UploadNode[] nodes)
           
 
Methods inherited from class javax.swing.DefaultListSelectionModel
addListSelectionListener, addSelectionInterval, clearSelection, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, moveLeadSelectionIndex, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionInterval, setSelectionMode, setValueIsAdjusting, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileSelectionModel

public FileSelectionModel()
Method Detail

add

public void add(UploadFile file)

remove

public boolean remove(UploadFile f)
Removes the given file and returns its former index.


remove

public void remove(int index)

clear

public void clear()

getFile

public UploadFile getFile(int row)

getFiles

public java.util.List getFiles()

setSelection

public void setSelection(UploadNode[] nodes)

select

public void select(UploadNode node)

getLeadSelection

public UploadFile getLeadSelection()


Copyright © 2007 smartwerkz.com. All Rights Reserved.