|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.tentackle.ui.FormPanel
org.tentackle.ui.FormComponentPanel
org.tentackle.ui.FormFieldComponentPanel
org.tentackle.ui.FormFileChooser
public class FormFileChooser
A FormField for files decorated with buttons to link and unlink to a file.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 |
| Constructor Summary | |
|---|---|
FormFileChooser()
Creates a file chooser field for files and directories. |
|
FormFileChooser(String startDir,
String description,
int fileSelectionMode,
String[] extensions)
Creates a file chooser field. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Gets the file type description. |
String[] |
getExtensions()
Gets the file name extensions. |
int |
getFileSelectionMode()
Gets the selection mode. |
String |
getStartDir()
Gets the starting directory. |
boolean |
isChangeable()
Returns if this component is changeable. |
boolean |
requestFocusInWindow()
Requests that this Component gets the input focus. |
void |
setChangeable(boolean changeable)
Set the component to be changeable. This is a unified abstraction and will be translated to setEditable or setEnabled, whatever is appropriate to this component. |
void |
setDescription(String desc)
Sets the file type description. |
void |
setExtensions(String[] ext)
Sets the file name extensions. |
void |
setFileSelectionMode(int mode)
Sets the selection mode. |
void |
setStartDir(String dir)
Sets the starting directory. |
| Methods inherited from class org.tentackle.ui.FormPanel |
|---|
addActionListener, areValuesChanged, componentAdded, componentRemoved, fireActionPerformed, getFormValues, getTitle, isAllChangeable, isHonourAllChangeable, removeActionListener, saveValues, setAllChangeable, setFormValues, setFormValuesKeepChanged, setHonourAllChangeable, setTitle, triggerValuesChanged |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FormFileChooser(String startDir,
String description,
int fileSelectionMode,
String[] extensions)
startDir - the directory where to start browsingdescription - some description of the file typefileSelectionMode - the selection modeextensions - the file extensionsJFileChooserpublic FormFileChooser()
JFileChooser| Method Detail |
|---|
public void setFileSelectionMode(int mode)
mode - the selection modeJFileChooserpublic int getFileSelectionMode()
public void setExtensions(String[] ext)
ext - the array of extensions.public String[] getExtensions()
public void setDescription(String desc)
desc - the short descriptionpublic String getDescription()
public void setStartDir(String dir)
dir - the directory nameJFileChooserpublic String getStartDir()
public boolean requestFocusInWindow()
javax.swing.JComponentComponent gets the input focus.
Refer to Component.requestFocusInWindow() for a complete description of
this method.
If you would like more information on focus, see How to Use the Focus Subsystem, a section in The Java Tutorial.
requestFocusInWindow in class JComponentfalse if the focus change request is guaranteed to
fail; true if it is likely to succeedComponent.requestFocusInWindow(),
Component.requestFocusInWindow(boolean)public void setChangeable(boolean changeable)
FormComponent
setChangeable in interface FormComponentsetChangeable in class FormComponentPanelchangeable - true the user can edit the data, false if show onlypublic boolean isChangeable()
FormComponent
isChangeable in interface FormComponentisChangeable in class FormComponentPanel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||