com.ptc.wgmecad
Class BrowseBrdEditFileControl
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ptc.wgmecad.BrowseBrdEditFileControl
- All Implemented Interfaces:
- Accessible, ImageObserver, MenuContainer, Serializable
- public class BrowseBrdEditFileControl
- extends JPanel
Created by IntelliJ IDEA.
User: barky
Date: Dec 30, 2002
Time: 4:28:41 PM
To change this template use Options | File Templates.
- See Also:
- Serialized Form
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class java.awt.Container |
|
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
FILE_PATH
public static final String FILE_PATH
- an event the parent of this control can subscribe to
- See Also:
- Constant Field Values
edit
private JSortedCombo edit
browse
private JButton browse
browseText
public String browseText
selectDirectories
private boolean selectDirectories
filter
private FileFilter filter
locationControl
private LocationControl locationControl
argReg
private static ArgumentRegister argReg
sargReg
private static SecondaryArgumentRegister sargReg
argMap
private static ArgumentMap argMap
sargMap
private static SecondaryArgumentMap sargMap
editable
private boolean editable
instance
private static BrowseBrdEditFileControl instance
logger
static org.apache.log4j.Logger logger
BrowseBrdEditFileControl
public BrowseBrdEditFileControl()
- default constructor selects files and has no filtering.
BrowseBrdEditFileControl
public BrowseBrdEditFileControl(FileFilter filter,
boolean selectDirectories,
LocationControl locationControl)
- Adds some params for specialization
- Parameters:
filter
- - optional paramterer - can be null - will be applied to the file-chooserselectDirectories
- - allows only the selection of directories if true
getInstance
public static BrowseBrdEditFileControl getInstance()
setMargin
public void setMargin(Insets i)
createComponents
private void createComponents()
addFileSelectionListner
public void addFileSelectionListner(ActionListener listener)
- allow parent controls to listen for events
- Parameters:
listener
-
addFocusListener
public void addFocusListener(FocusListener l)
getText
public String getText()
setText
public void setText(String textValue)
onBrowse
private void onBrowse()
setGUIEnable
public void setGUIEnable(boolean _enable)
setupEditability
private void setupEditability(boolean enable)
filterForExtensions
public void filterForExtensions(String filterLabel,
String[] exts)
- Create a filter and set it on this control filtering for the extensions passed in. This overwrites any filter
passed into the constructor.
- Parameters:
filterLabel
- - what to display as the filter nameexts
- - an array of strings of extensions including the '.'. e.g. I18N.getStr( "Extension_txt" ), ".bak" etc. Note that there
can be no embeded '.'s in these extensions. ".foo.bak" will not work!