![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
imp.gui.IComponent
imp.gui.FileInput
public class FileInput
Defines a minimal file-chooser.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary | |
---|---|
JFileChooser |
getChooser()
Returns the corresponding file-chooser. |
String |
getValue()
Gets the last input file. |
void |
outputValue(String value)
Called when a new file is input. |
FileInput |
setLabel(String label)
Sets the dialog label and mode and return this. |
FileInput |
setValue(String value)
Sets the default URL value and return this. |
FileInput |
setVisible(String extensions)
Defines which files are shown and return this. |
Methods inherited from class imp.gui.IComponent |
---|
getBgcolor, getColor, getTextFont, getTitle, getTooltip, grab, refresh, setBgcolor, setColor, setHeight, setTextFont, setTitle, setTooltip, setWidth |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public JFileChooser getChooser()
public String getValue()
public void outputValue(String value)
value
- An URL of the form file:/directory/file-namepublic FileInput setLabel(String label)
label
- A name of the form Load/Save etc..public FileInput setValue(String value)
value
- An URL of the form file:/directory/file-namepublic FileInput setVisible(String extensions)
extensions
- A string containing the set of extension separated with ' ';
if the folder word is present folders are shown ; if the hidden word is present hidden files are shown.