public class DirectoryField extends AbstractFieldContainer<java.io.File>
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
DirectoryField(NlsDatabaseKey nls,
int chars) |
DirectoryField(NlsDatabaseKey nls,
int chars,
boolean isNotNull) |
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener l) |
protected AbstractFieldDialog |
createEditor() |
java.io.File |
createValue()
Creates the input Object typically from the textual String input.
|
void |
fireActionPerformed() |
java.io.File |
getDefaultDirectory() |
java.io.File |
getDirectory() |
protected IconKey |
getEditorIcon() |
FileNameInputField |
getField()
Returns a reference to the contained field.
|
FileNameInputField |
getTextField() |
java.io.File |
getValue()
Returns the field value as an Object - or null if the field is empty.
|
FileNameInputField |
getWidget()
Returns a JComponent that represents the layoutable GUI component.
|
boolean |
isCheckExistence() |
boolean |
isEditable() |
boolean |
isStretchableX()
Tells whether this field should fill all the horizontal space in it's container.
|
boolean |
isStretchableY()
Tells whether this field should fill all the vertical space in it's container.
|
void |
removeActionListener(java.awt.event.ActionListener l) |
void |
setCheckExistence(boolean check)
Enforces an existence check when the FieldPanel is applied
|
void |
setDefaultDirectory(java.io.File defaultDir) |
void |
setEditable(boolean isEditable)
Controls the editable state of the underlying CharField.
|
void |
setLocked(boolean b)
Locks the field for editing.
|
void |
setValue(java.io.File value)
Sets the field value to the given object.
|
java.lang.String |
toString(java.lang.Object dir)
Converts the object to a String according to the policy of the affected field component.
|
clear, getActionOpenEditor, getFieldDialog, getJLabel, getLabel, getName, getNlsKey, getStringValue, getUnitComponent, inputEquals, inputEquals, inputEquals, inputEquals, isEmpty, isLocked, isNotNull, isPrimaryKey, isRecordTypeField, setInsertDefaultValue, setModifyFlag, setNotNull, setPrimaryKey, setStretchableX, setStretchableY, setUnitComponent, setUnitString, toString, toValue
alignFirstColumnsInSubPanels, getDefaultInsets, getFirstColumnMaxWidth, horizontalStretch, place, place, place, place, place, place, place, setDefaultInsets, setFirstColumnWidth, stretchX, stretchY, verticalStretch
addBorder, contains, getTileIcon, insertBorder, paintComponent, setTileIcon, setTileIcon, setTitledBorder
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
public DirectoryField(NlsDatabaseKey nls, int chars)
public DirectoryField(NlsDatabaseKey nls, int chars, boolean isNotNull)
public FileNameInputField getField()
AbstractFieldContainer
getField
in class AbstractFieldContainer<java.io.File>
public FileNameInputField getWidget()
Field
getWidget
in interface Field<java.io.File>
getWidget
in class AbstractFieldContainer<java.io.File>
public void addActionListener(java.awt.event.ActionListener l)
public void removeActionListener(java.awt.event.ActionListener l)
public void fireActionPerformed()
public void setEditable(boolean isEditable)
public boolean isEditable()
public FileNameInputField getTextField()
public java.io.File getDirectory()
public void setCheckExistence(boolean check)
public boolean isCheckExistence()
public void setLocked(boolean b)
Field
setLocked
in interface Field<java.io.File>
setLocked
in class AbstractFieldContainer<java.io.File>
protected IconKey getEditorIcon()
getEditorIcon
in class AbstractFieldContainer<java.io.File>
protected AbstractFieldDialog createEditor()
createEditor
in class AbstractFieldContainer<java.io.File>
public java.io.File getValue()
Field
getValue
in interface Field<java.io.File>
getValue
in class AbstractFieldContainer<java.io.File>
public void setValue(java.io.File value)
Field
setValue
in interface Field<java.io.File>
setValue
in class AbstractFieldContainer<java.io.File>
public java.io.File createValue() throws InvalidFieldInputException
Field
createValue
in interface Field<java.io.File>
createValue
in class AbstractFieldContainer<java.io.File>
InvalidFieldInputException
- If the input Object cannot be created due to a parsing error.public java.lang.String toString(java.lang.Object dir)
Field
toString
in interface Field<java.io.File>
toString
in class AbstractFieldContainer<java.io.File>
public void setDefaultDirectory(java.io.File defaultDir)
public java.io.File getDefaultDirectory()
public boolean isStretchableX()
Field
isStretchableX
in interface Field<java.io.File>
isStretchableX
in class AbstractFieldContainer<java.io.File>
public boolean isStretchableY()
Field
isStretchableY
in interface Field<java.io.File>
isStretchableY
in class AbstractFieldContainer<java.io.File>
Copyright © 2014 EsprIT-Systems. All Rights Reserved.