BasicPane.NamePane
限定符和类型 | 字段和说明 |
---|---|
static int |
CANCEL_OPTION
Return value if CANCEL is chosen.
|
static int |
JOPTIONPANE_CANCEL_OPTION |
static int |
JOPTIONPANE_OK_OPTION |
static int |
OK_OPTION
Return value if OK is chosen.
|
protected boolean |
showEnv |
protected boolean |
showLoc |
protected boolean |
showWebReport |
protected java.lang.String |
suffix |
protected int |
type |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
构造器和说明 |
---|
FILEChooserPane(boolean showEnv,
boolean showLoc) |
限定符和类型 | 方法和说明 |
---|---|
void |
addChooseFILEFilter(FILEFilter filter)
增加文件过滤器
|
void |
addChooseFILEFilter(FILEFilter filter,
int index)
在指定index增加过滤器
|
void |
addChooseFILEFilterToFist(FILEFilter filter,
int index)
若是已经存在,则将之删去之后,在指定的位置增加
|
protected void |
fileType() |
protected java.lang.String |
getEnvProjectName() |
static FILEChooserPane |
getInstance() |
static FILEChooserPane |
getInstance(boolean showEnv) |
static FILEChooserPane |
getInstance(boolean showEnv,
boolean showLoc) |
static FILEChooserPane |
getInstance(boolean showEnv,
boolean showLoc,
boolean showWebReport,
FILEFilter filter) |
static FILEChooserPane |
getInstance(boolean showEnv,
boolean showLoc,
FILEFilter filter) |
static FILEChooserPane |
getInstance(boolean showEnv,
FILEFilter filter) |
static FILEChooserPane |
getMultiEnvInstance(boolean showLoc,
boolean showWebReport) |
static FILEChooserPane |
getMultiEnvInstance(boolean showLoc,
boolean showWebReport,
FILEFilter filter) |
FILE |
getSelectedFILE()
返回选中的FILE
|
void |
removeAllFilter()
删掉全部的过滤器
|
void |
removeFILEFilter(FILEFilter filter)
删除文件过滤器
这命名太乱了,完全是误导
|
void |
setCurrentDirectory(FILE dir)
Sets the current directory.
|
void |
setFILEFilter(FILEFilter filter)
设置filter,刷新右侧subFileList中的items
|
void |
setFileNameTextField(java.lang.String text,
java.lang.String suffix)
richer:默认的话就使用.cpt作为后缀名
|
int |
showDialog(java.awt.Component parent,
int type,
java.lang.String suffix)
august:控件的事件都在这里面添加的 那么我每次showDialog,不都要重复添加一次事件吗?
|
int |
showOpenDialog(java.awt.Component parent)
打开对话框
|
int |
showOpenDialog(java.awt.Component parent,
java.lang.String suffix)
打开对话框
|
int |
showSaveDialog(java.awt.Component parent)
打开对话框
|
int |
showSaveDialog(java.awt.Component parent,
java.lang.String suffix)
打开对话框
|
protected java.lang.String |
title4PopupWindow() |
asNamePane, checkValid, getTitle, showLargeWindow, showMediumWindow, showSmallWindow, showToolBarWindow, showUnsizedWindow, showWindow, showWindow, showWindow, showWindow, showWindow4ChartMapArray, showWindow4ChartType, showWindow4UpdateOnline
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, paintComponent, 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, getName, 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, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int OK_OPTION
public static final int CANCEL_OPTION
public static final int JOPTIONPANE_OK_OPTION
public static final int JOPTIONPANE_CANCEL_OPTION
protected int type
protected boolean showEnv
protected boolean showLoc
protected boolean showWebReport
protected java.lang.String suffix
public FILEChooserPane(boolean showEnv, boolean showLoc)
showEnv
- showLoc
- public static FILEChooserPane getInstance()
public static FILEChooserPane getInstance(boolean showEnv)
showEnv
- public static FILEChooserPane getInstance(boolean showEnv, boolean showLoc)
showEnv
- showLoc
- public static FILEChooserPane getMultiEnvInstance(boolean showLoc, boolean showWebReport, FILEFilter filter)
public static FILEChooserPane getMultiEnvInstance(boolean showLoc, boolean showWebReport)
public static FILEChooserPane getInstance(boolean showEnv, FILEFilter filter)
showEnv
- filter
- public static FILEChooserPane getInstance(boolean showEnv, boolean showLoc, FILEFilter filter)
showEnv
- showLoc
- filter
- public static FILEChooserPane getInstance(boolean showEnv, boolean showLoc, boolean showWebReport, FILEFilter filter)
showEnv
- showLoc
- showWebReport
- filter
- public FILE getSelectedFILE()
protected java.lang.String getEnvProjectName()
public void addChooseFILEFilter(FILEFilter filter)
filter
- 过滤器public void addChooseFILEFilter(FILEFilter filter, int index)
filter
- 过滤器index
- 序号public void addChooseFILEFilterToFist(FILEFilter filter, int index)
filter
- 过滤index
- 序号public void removeFILEFilter(FILEFilter filter)
filter
- 过滤public void removeAllFilter()
public void setFILEFilter(FILEFilter filter)
filter
- 过滤public void setFileNameTextField(java.lang.String text, java.lang.String suffix)
text
- 文本suffix
- 后缀public int showOpenDialog(java.awt.Component parent)
parent
- 父类public int showOpenDialog(java.awt.Component parent, java.lang.String suffix)
parent
- 父类suffix
- 后缀public int showSaveDialog(java.awt.Component parent)
parent
- 父类public int showSaveDialog(java.awt.Component parent, java.lang.String suffix)
parent
- 父类suffix
- 后缀public int showDialog(java.awt.Component parent, int type, java.lang.String suffix)
parent
- 父类type
- 类型suffix
- 后缀protected void fileType()
protected java.lang.String title4PopupWindow()
title4PopupWindow
在类中 BasicPane
public void setCurrentDirectory(FILE dir)
null
sets the file
chooser to point to the user's default directory.dir
- the current directory to point tosetSelectedDirectory(com.fr.file.FILE)