public class FormNamedBlobField extends AbstractFormField<NamedBlob>
| Modifier and Type | Class and Description |
|---|---|
static class |
FormNamedBlobField.FormNamedBlobFieldPreferences |
gui| Constructor and Description |
|---|
FormNamedBlobField()
Creates default NamedBlob with file and folder selection
and no max size for blob
|
FormNamedBlobField(boolean fileAndDir,
int maxNamedBlobSize)
Creates NamedBlob with a max Blob Size and Flag for File/Folder
|
FormNamedBlobField(int maxNamedBlobSize)
Creates NamedBlob with a max Blob Size and file only selection
|
| Modifier and Type | Method and Description |
|---|---|
void |
chooseLatest()
Automatically choose the most recent file in the last used directory.
|
static VfsDirectory |
getGlobalDefaultDirectory() |
static FormNamedBlobField.FormNamedBlobFieldPreferences |
getGlobalPreferences() |
NamedBlob |
getValue()
Returns the current value for this field.
|
void |
removeItem() |
static void |
setGlobalDefaultDirectory(VfsDirectory newDirectory) |
static void |
setGlobalPreferences(FormNamedBlobField.FormNamedBlobFieldPreferences newPrefs) |
void |
setValue(NamedBlob newValue)
Sets the current value for this field.
|
void |
setValueSafely(java.lang.Object newValue)
Sets the value safely, e.g.
|
void |
view() |
addFieldListener, createPopup, doAction, fireActionRequested, fireValueChanged, getGui, getToolTipText, grabFocus, isDisabled, removeFieldListener, selectAll, selectNone, setDisabled, setToolTipText, toString, valueChangedpublic FormNamedBlobField()
public FormNamedBlobField(int maxNamedBlobSize)
maxNamedBlobSize - public FormNamedBlobField(boolean fileAndDir,
int maxNamedBlobSize)
fileAndDir - boolean to toggle file Only or file and fieldmaxNamedBlobSize - maximum size allowed for blob -1 no maxpublic void setValue(NamedBlob newValue)
FormFieldpublic void setValueSafely(java.lang.Object newValue)
FormFieldpublic NamedBlob getValue()
FormFieldpublic void removeItem()
public void view()
public void chooseLatest()
public static void setGlobalPreferences(FormNamedBlobField.FormNamedBlobFieldPreferences newPrefs)
public static FormNamedBlobField.FormNamedBlobFieldPreferences getGlobalPreferences()
public static VfsDirectory getGlobalDefaultDirectory()
public static void setGlobalDefaultDirectory(VfsDirectory newDirectory)