public class SwingFileListWidget extends SwingInputWidget<File[]> implements FileListWidget<JPanel>, ActionListener, MouseListener
FileListWidget
.DIRECTORIES_ONLY, FILES_AND_DIRECTORIES, FILES_ONLY
Constructor and Description |
---|
SwingFileListWidget() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
protected void |
doRefresh()
Performs the intended
AbstractUIInputWidget.refreshWidget() operation. |
File[] |
getValue()
Gets the current widget value.
|
void |
mouseClicked(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
set(WidgetModel model)
Associates the given data object with this plugin.
|
boolean |
supports(WidgetModel model)
Gets whether this object is compatible with the given data object.
|
getComponent, getComponentType, setToolTip, ui
refreshWidget, ui
get, updateModel
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, getType, isLabeled, isMessage, refreshWidget, updateModel
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
getComponent, getComponentType
public File[] getValue()
InputWidget
getValue
in interface InputWidget<File[],JPanel>
public void set(WidgetModel model)
WrapperPlugin
Typed.supports(T)
must return true).set
in interface WrapperPlugin<WidgetModel>
set
in interface InputWidget<File[],JPanel>
set
in class SwingInputWidget<File[]>
model
- The data object to associate with the plugin.public boolean supports(WidgetModel model)
Typed
By default, this method will return true
iff the data is assignable
to the associated type given by Typed.getType()
. But individual
implementations may have other requirements beyond class assignability.
supports
in interface Typed<WidgetModel>
supports
in interface InputWidget<File[],JPanel>
supports
in class AbstractInputWidget<File[],JPanel>
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
protected void doRefresh()
AbstractUIInputWidget
AbstractUIInputWidget.refreshWidget()
operation.doRefresh
in class AbstractUIInputWidget<File[],JPanel>
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
Copyright © 2015–2022 SciJava. All rights reserved.