Class Overview
Data model for a type-face selection combo-box.
Summary
Public Methods |
void
|
addItem(File directory)
Adds the directory to the model and sets it to be selected,
additionally clears out the previous selected directory and
the paths leading up to it, if any.
|
int
|
getDepth(int i)
|
Object
|
getElementAt(int index)
Returns the value at the specified index.
|
Object
|
getSelectedItem()
Returns the selected item
|
int
|
getSize()
Returns the length of the list.
|
void
|
setSelectedItem(Object selectedDirectory)
Set the selected item.
|
[Expand]
Inherited Methods |
From class
javax.swing.AbstractListModel
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
javax.swing.ComboBoxModel
|
From interface
javax.swing.ListModel
|
Public Constructors
public
SynthFileChooserUIImpl.DirectoryComboBoxModel
()
Public Methods
public
void
addItem
(File directory)
Adds the directory to the model and sets it to be selected,
additionally clears out the previous selected directory and
the paths leading up to it, if any.
public
int
getDepth
(int i)
public
Object
getElementAt
(int index)
Returns the value at the specified index.
Parameters
index
| the requested index |
public
Object
getSelectedItem
()
Returns the selected item
Returns
- The selected item or
null
if there is no selection
public
int
getSize
()
Returns the length of the list.
public
void
setSelectedItem
(Object selectedDirectory)
Set the selected item. The implementation of this method should notify
all registered ListDataListener
s that the contents
have changed.
Parameters
selectedDirectory
| the list object to select or null
to clear the selection
|