|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--oracle.dss.persistence.gui.PersistenceUI | +--oracle.dss.persistence.gui.PersistenceObjectChooser
The user interface for saving and loading objcts that are stored in the BI Beans Catalog.
Users interact with this class to perform any of the following actions, provided that they have the privilege to do so:
Users can also display properties of objects and folders. Users who have full control privilege can also modify the access rights of a folder or object.
Like the JFileChooser
, this PersistenceObjectChooser
does not actually save or load objects into the underlying catalog. Instead, this class provides information to the application about the action that a user performed. It is up to the application to respond to the user action to save or load an object. For example, this class provides information about the file name under which to save an object, the location in which to save it, and so on.
Application developers can customize this object chooser by specifying:
Privilege
, Serialized FormInner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
static java.lang.String |
ALL_TYPES The name of the default PersistenceObjectFilter . |
static int |
CANCEL_OPTION User clicked Cancel to dismiss the dialog. |
static int |
OK_OPTION User clicked OK to dismiss the dialog. |
static int |
OPEN_DIALOG Dialog type: Open dialog. |
static int |
SAVE_DIALOG Dialog type: Save dialog. |
Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, 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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
PersistenceObjectChooser() Constructor. | |
PersistenceObjectChooser(javax.naming.directory.DirContext con) Constructor that specifies a root folder. | |
PersistenceObjectChooser(javax.naming.directory.DirContext con, java.lang.String pathName) Constructor that specifies a root folder and a preferred folder. |
Method Summary | |
void |
addPersistenceObjectFilter(PersistenceObjectFilter filter) Adds an object filter to this PersistenceObjectChooser . |
javax.accessibility.AccessibleContext |
getAccessibleContext() Retrieves an AccessibleContext . |
javax.naming.directory.DirContext |
getCurrentDirectory() Retrieves the current folder. |
java.lang.String |
getCurrentDirectoryPathName() Retrieves the full path name of the current folder. |
int |
getDialogType() Retrieves the type of dialog that this PersistenceObjectChooser displays. |
java.lang.String |
getHelpContextID() Retrieves the Help context ID for this panel. |
PersistenceObjectFilter[] |
getPersistenceObjectFilter() Retrieves all of the object filters that this PersistenceObjectChooser currently uses. |
java.lang.String |
getSelectedObjectName() Retrieves the name of the object that the user has selected. |
java.lang.String |
getSelectedObjectPathName() Retrieves the full path name of the object that the user has selected. |
void |
removePersistenceObjectFilter(PersistenceObjectFilter filter) Removes an object filter from this PersistenceObjectChooser . |
void |
removePersistenceObjectFilter(java.lang.String filterName) Removes an object filter with the specified name from this PersistenceObjectChooser . |
void |
resetPersistenceObjectFilter() Resets the object filter list to contain only "all types" as the filter. |
void |
setAttributesToDisplay(java.lang.String[] attrsID, java.lang.String[] attrsName, int[] width) Specifies the attributes that are displayed in a detailed list of objects. |
void |
setCurrentDirectoryPath(java.lang.String pathName) Specifies the path of the starting directory to display. |
void |
setDefaultPersistenceObjectFilter(java.lang.String filterDisplayName) Specifies the default filter to use in the PersistenceObjectChooser . |
void |
setInitialDirectory(javax.naming.directory.DirContext context) Specifies the root folder to use in this PersistenceObjectChooser . |
void |
setSelectedObjectName(java.lang.String name) Specifies the name that appears in the object name text field, by default. |
int |
showOpenDialog(java.awt.Frame parent) Displays a modal Open dialog box. |
int |
showSaveDialog(java.awt.Frame parent) Displays a modal Save dialog. |
int |
showSaveDialog(java.awt.Frame parent, boolean showWarning) Displays a modal Save dialog. |
Methods inherited from class oracle.dss.persistence.gui.PersistenceUI |
getHelpProvider, getLocale, setHelpContextID, setHelpProvider, setLocale, setRootName |
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, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.event.ListSelectionListener |
valueChanged |
Methods inherited from interface java.beans.PropertyChangeListener |
propertyChange |
Methods inherited from interface oracle.dss.util.help.HelpContext |
setHelpContextID |
Field Detail |
public static final int SAVE_DIALOG
public static final int OPEN_DIALOG
public static final int CANCEL_OPTION
showOpenDialog(java.awt.Frame)
, showSaveDialog(java.awt.Frame)
public static final int OK_OPTION
showOpenDialog(java.awt.Frame)
, showSaveDialog(java.awt.Frame)
public static final java.lang.String ALL_TYPES
PersistenceObjectFilter
. This filter displays all objects in the folder (no filtering).removePersistenceObjectFilter(oracle.dss.persistence.gui.PersistenceObjectFilter)
Constructor Detail |
public PersistenceObjectChooser()
PersistenceObjectChooser(DirContext)
public PersistenceObjectChooser(javax.naming.directory.DirContext con)
con
- The root folder for this PersistenceObjectChooser
. Do not pass null
.public PersistenceObjectChooser(javax.naming.directory.DirContext con, java.lang.String pathName)
con
- The root folder for this PersistenceObjectChooser
. Do not pass null
.pathName
- The location to present initially.Method Detail |
public javax.accessibility.AccessibleContext getAccessibleContext()
AccessibleContext
. Accessibility devices, such as screen readers, call this method. Application developers should not need to call it.getAccessibleContext
in interface javax.accessibility.Accessible
getAccessibleContext
in class javax.swing.JComponent
AccessibleContext
for this PersistenceObjectChooser
.public int showOpenDialog(java.awt.Frame parent)
parent
- The container of the dialog box. Can be null
.OK_OPTION
, CANCEL_OPTION
public int showSaveDialog(java.awt.Frame parent)
parent
- The container of the dialog box. Can be null
.OK_OPTION
, CANCEL_OPTION
public int showSaveDialog(java.awt.Frame parent, boolean showWarning)
parent
- The container of the dialog box. Can be null
.showWarning
- true
if a warning dialog should be show when the user tries to overwrite an existing object. false
if no warning dialog should be show. The default value is true.OK_OPTION
, CANCEL_OPTION
public void setInitialDirectory(javax.naming.directory.DirContext context)
PersistenceObjectChooser
. Call this method before you display the dialog box.context
- The root folder to use in this PersistenceObjectChooser
. Do not pass null
.public void setCurrentDirectoryPath(java.lang.String pathName)
pathName
- The name of the path of the directory to be display when the dialog box is display.public javax.naming.directory.DirContext getCurrentDirectory()
getCurrentDirectory
in class PersistenceUI
public java.lang.String getCurrentDirectoryPathName()
public java.lang.String getSelectedObjectName()
public void setSelectedObjectName(java.lang.String name)
name
- The default object name to display in the object name text field. Do not pass null
.public java.lang.String getSelectedObjectPathName()
null
if no object has been selected. This method returns null
, for example, if the user clicks the Cancel button.public int getDialogType()
PersistenceObjectChooser
displays.OPEN_DIALOG
, SAVE_DIALOG
public void addPersistenceObjectFilter(PersistenceObjectFilter filter)
PersistenceObjectChooser
. The PersistenceObjectFilter
allows users to determine the types of files to display in this PersistenceObjectChooser
.filter
- The PersistenceObjectFilter
to add.public void removePersistenceObjectFilter(PersistenceObjectFilter filter)
PersistenceObjectChooser
.filter
- The PersistenceObjectFilter
to remove.removePersistenceObjectFilter(oracle.dss.persistence.gui.PersistenceObjectFilter)
public void removePersistenceObjectFilter(java.lang.String filterName)
PersistenceObjectChooser
.filter
- The name of the object filter to remove.removePersistenceObjectFilter(oracle.dss.persistence.gui.PersistenceObjectFilter)
, PersistenceObjectFilter
public void resetPersistenceObjectFilter()
addPersistenceObjectFilter
method. Objects of all types are displayed in the dialog.addPersistenceObjectFilter(oracle.dss.persistence.gui.PersistenceObjectFilter)
, removePersistenceObjectFilter(oracle.dss.persistence.gui.PersistenceObjectFilter)
, PersistenceObjectFilter
public PersistenceObjectFilter[] getPersistenceObjectFilter()
PersistenceObjectChooser
currently uses.PersistenceObjectFilter
objects that this PersistenceObjectChooser
uses.addPersistenceObjectFilter(oracle.dss.persistence.gui.PersistenceObjectFilter)
public void setDefaultPersistenceObjectFilter(java.lang.String filterDisplayName)
PersistenceObjectChooser
. If this is not specified, or if the specified filter name does not match any of the existing filters, then the default filter is set to "All Types", which displays all objects in the folder. If there are two filters with the same display name, the first one on the list is used.filterDisplayName
- The display name of the filter.PersistenceObjectFilter
public void setAttributesToDisplay(java.lang.String[] attrsID, java.lang.String[] attrsName, int[] width)
attrsID
- A list of constants that identify the attributes to display in the details view. Valid constants are defined in the PSRConstants
and PersistableConstants
interfaces.attrsName
- The names to display for each attribute in attrsID
. The strings in this array are the column headings for the details. The length of the attrsName
array must match the length of the attrsID
array.width
- The width, in pixels, of each column for the attribute in the details view. The length of the width
array must match the length of the attrsID
array.PSRConstants
, PersistableConstants
public java.lang.String getHelpContextID()
getHelpContextID
in interface HelpContext
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |