|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
oracle.ide.panels.DefaultTraversablePanel
oracle.ide.dialogs.filter.DirectoryOptionsPanel
Deprecated. since 11.0 with no replacement.
public class DirectoryOptionsPanel
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.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 oracle.ide.controls.GridBagConstants |
|---|
ANCHOR_C, ANCHOR_E, ANCHOR_N, ANCHOR_NE, ANCHOR_NW, ANCHOR_S, ANCHOR_SE, ANCHOR_SW, ANCHOR_W, FILL_NONE, FILL_X, FILL_XY, FILL_Y |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DirectoryOptionsPanel(java.net.URL[] selectedURLs, boolean showAddButton, boolean addingToProject)Deprecated. |
|
DirectoryOptionsPanel(java.net.URL[] selectedURLs, boolean showAddButton, boolean showRemoveButton, boolean addingToProject)Deprecated. This constructor is used when you want the DirectoryOptionsPanel to display a button to allow the user to remove tree nodes from it's display. |
|
DirectoryOptionsPanel(java.net.URL[] selectedURLs, boolean showAddButton, boolean showRemoveButton, boolean addingToProject, Context context)Deprecated. Add commands must use this constructor to set the context so the DirectoryOptionsPanel will properly handle jws and jpr files. |
|
| Method Summary | |
|---|---|
void |
_addBtn_actionPerformed(java.awt.event.ActionEvent e)Deprecated. |
void |
_dirFilterBtn_actionPerformed(java.awt.event.ActionEvent e)Deprecated. |
void |
_fileTypeBtn_actionPerformed(java.awt.event.ActionEvent e)Deprecated. |
void |
_removeBtn_actionPerformed(java.awt.event.ActionEvent e)Deprecated. |
static boolean |
containsDirectory(java.net.URL[] selectedURLs)Deprecated. Determine if the URL[] contains a directory |
int |
expandDirectories(java.awt.Component parent)Deprecated. This method goes thru the directories list and expands each directory in it based on the filter(s) set for the directory. |
boolean |
getCopyFiles()Deprecated. |
java.net.URL |
getCopyLocationURL()Deprecated. |
java.util.ArrayList |
getInputDirectories()Deprecated. |
java.net.URL |
getNewFileNameFor(java.net.URL originalFile)Deprecated. |
java.net.URL |
getProjectDirectory()Deprecated. Returns the URL of the project directory field. |
JMutableTreeNode |
getRootNode()Deprecated. |
java.util.List |
getSelectedFileList(java.awt.Component parent, boolean copyNow)Deprecated. Returns selected nodes. |
CustomJTree |
getTree()Deprecated. |
void |
populateTree(java.net.URL[] selectedURLs)Deprecated. |
void |
run()Deprecated. |
void |
setContext(Context context)Deprecated. Sets the Context that the DirectoryOptionsPanel is operating in. |
void |
setProject(Project project)Deprecated. Sets the project so that we can prevent display of files that already exist in the project. |
void |
setProjectDirectory(java.net.URL projectDirectory)Deprecated. Sets the URL of the project directory field. |
boolean |
showDialog(java.awt.Component parent)Deprecated. |
void |
treeCollapsed(javax.swing.event.TreeExpansionEvent event)Deprecated. |
void |
treeExpanded(javax.swing.event.TreeExpansionEvent event)Deprecated. |
void |
valueChanged(javax.swing.event.TreeSelectionEvent event)Deprecated. |
| Methods inherited from class oracle.ide.panels.DefaultTraversablePanel |
|---|
gbc, gbc, getComponent, getDefaultTitle, getExitTransition, getHelpID, getText, onEntry, onExit, setDefaultTitle, setHelpID |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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 |
| Methods inherited from class java.awt.Container |
|---|
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
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, hide, 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, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DirectoryOptionsPanel(java.net.URL[] selectedURLs,
boolean showAddButton,
boolean showRemoveButton,
boolean addingToProject,
Context context)
DirectoryOptionsPanel will properly handle jws and jpr files. If adding to the Workspaces Node the context should not have workspace or project set in it so the DirectoryOptionsPanel will allow only jws files. If a workspace node has been selected, the context should have the workspace set but the project null so DirectoryOptionsPanel will allow only jpr files. If a project node has been selected, the context should have the workspace and project set so the DirectoryOptionsPanel will exclude jws and jpr files.
selectedURLs - The list of files selected in the URLChoosershowAddButton - true if the add button should be displayed to let the user add additional files/directories to the DirectoryOptionsPanelshowRemoveButton - true to display a button that allows nodes to be removed from the DirectoryOptionsPaneladdingToProject - true if using an Add command; false otherwisecontext - the context as described above
public DirectoryOptionsPanel(java.net.URL[] selectedURLs,
boolean showAddButton,
boolean addingToProject)
public DirectoryOptionsPanel(java.net.URL[] selectedURLs,
boolean showAddButton,
boolean showRemoveButton,
boolean addingToProject)
DirectoryOptionsPanel to display a button to allow the user to remove tree nodes from it's display.
selectedURLs - The list of files selected in the URLChoosershowAddButton - true if the add button should be displayed to let the user add additional files/directories to the DirectoryOptionsPanelshowRemoveButton - true to display a button that allows nodes to be removed from the DirectoryOptionsPaneladdingToProject - true if using an Add command; false otherwise| Method Detail |
|---|
public void setProject(Project project)
project - to which files will be added. This should not be set when creating a new project.public void setContext(Context context)
Context that the DirectoryOptionsPanel is operating in.context -public boolean showDialog(java.awt.Component parent)
public java.net.URL getProjectDirectory()
public void setProjectDirectory(java.net.URL projectDirectory)
URL - of the directory to copy files into (if the copy checkbox has been checked)public boolean getCopyFiles()
public java.net.URL getCopyLocationURL()
public static boolean containsDirectory(java.net.URL[] selectedURLs)
selectedURLs - URL array to test for existence of a directorypublic void populateTree(java.net.URL[] selectedURLs)
public JMutableTreeNode getRootNode()
public CustomJTree getTree()
public java.util.ArrayList getInputDirectories()
public int expandDirectories(java.awt.Component parent)
public void run()
run in interface java.lang.Runnablepublic java.net.URL getNewFileNameFor(java.net.URL originalFile)
public java.util.List getSelectedFileList(java.awt.Component parent,
boolean copyNow)
parent - component that a ProgressBar should be centered over (a ProgressBar is used since the operation could take a long time)public void _fileTypeBtn_actionPerformed(java.awt.event.ActionEvent e)
public void _addBtn_actionPerformed(java.awt.event.ActionEvent e)
public void _removeBtn_actionPerformed(java.awt.event.ActionEvent e)
public void _dirFilterBtn_actionPerformed(java.awt.event.ActionEvent e)
public void valueChanged(javax.swing.event.TreeSelectionEvent event)
valueChanged in interface javax.swing.event.TreeSelectionListenerpublic void treeExpanded(javax.swing.event.TreeExpansionEvent event)
treeExpanded in interface javax.swing.event.TreeExpansionListenerpublic void treeCollapsed(javax.swing.event.TreeExpansionEvent event)
treeCollapsed in interface javax.swing.event.TreeExpansionListener
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||