|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.wlxt.repository.RepositoryDocumentChooser
The RepositoryDocumentChooser class is modeled after the Swing JFileChooser class and provides Open and Save dialog boxes for the repository.
Field Summary | |
static int |
APPROVE_OPTION
Returned by the showOpenDialog() and showSaveDialog() methods to indicate that the user pressed the OK button. |
static int |
CANCEL_OPTION
Returned by the showOpenDialog() and showSaveDialog() methods to indicate that the user pressed the Cancel button. |
Constructor Summary | |
RepositoryDocumentChooser(RepositoryFolder folder)
Creates a document chooser object with its initial folder set to the passed RepositoryFolder object. |
Method Summary | |
RepositoryDocument |
getDocument()
Returns the selected document. |
RepositoryFolder |
getFolder()
Returns the current folder. |
RepositoryFilter |
getRepositoryFilter()
Retrieve the repository filter currently in use for this chooser. |
boolean |
isUpdatable()
Returns a value indicating of the open and save dialogs are permitted to update information on the repository. |
void |
setApproveButtonText(java.lang.String text)
Set the text that appears in the button used to approve the open or save dialog. |
void |
setCancelButtonText(java.lang.String text)
Sets the text that will appear in the cancel button of the open and save dialogs. |
void |
setChoosableFileType(int fileType)
This method adds a file type to the combo box that displays file type filters on the store as, and retrieve dialogs. |
void |
setChoosableFileType(java.util.Vector fileTypes)
This method adds a group of file types to the combo box that displays file type filters on the store as, and retrieve dialogs. |
void |
setRepositoryFilter(RepositoryFilter filter)
Set the repository filter used by the open and save document dialogs. |
void |
setTitle(java.lang.String title)
Sets the title of the next didplayed dialog. |
void |
setUpdatable(boolean updatable)
Enables or disables the ability of the open/save dialogs to perform updates on the repository. |
int |
showOpenDialog(java.awt.Component parent)
Displays a modal document open dialog allowing the user to navigate the repository and select an existing document. |
int |
showSaveDialog(java.awt.Component parent)
Displays a modal document open dialog allowing the user to navigate the repository and select an existing document or entering the name of a new document. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int APPROVE_OPTION
public static final int CANCEL_OPTION
Constructor Detail |
public RepositoryDocumentChooser(RepositoryFolder folder)
folder
- The folder to be used as the current
folder for the dialogs.
This constructor sets the file filter to the default implementation,
which provides the user with a choice of MFL files only.
If you want your users to receive a file filter/combo box with other
file types, set them with one of the setChoosableFileType() methods.Method Detail |
public RepositoryFilter getRepositoryFilter()
public void setRepositoryFilter(RepositoryFilter filter)
filter
- The repository filter used as a callback
to select the objects that will be available
in the dialog.public int showOpenDialog(java.awt.Component parent) throws RepositoryException
parent
- The parent window for the dialog. This may
be passed as null if no suitable parent exists.public int showSaveDialog(java.awt.Component parent) throws RepositoryException
parent
- The parent window for the dialog. This may
be passed as null if no suitable parent exists.public RepositoryFolder getFolder()
public RepositoryDocument getDocument()
public void setTitle(java.lang.String title)
title
- The new title for the open/save dialog.public void setApproveButtonText(java.lang.String text)
text
- The text string to appear in the approve button.public void setCancelButtonText(java.lang.String text)
text
- The string to appear in the Cancel button.public boolean isUpdatable()
Ability to delete repository objects. Ability to update object description and notes. Ability to create new repository folders.By default this value is true.
public void setUpdatable(boolean updatable)
Ability to delete repository objects. Ability to update object description and notes. Ability to create new repository folders.By default this value is true.
updatable
- If true repository updates are permitted.public void setChoosableFileType(int fileType)
fileType
- (int) should be an int representing a repository file type.
Users should pass a static value from the Repository class, e.g.
Repository.DOC_TYPE_ALL
Repository.DOC_TYPE_MFL
Repository.DOC_TYPE_DTD
Repository.DOC_TYPE_XSD
Repository.DOC_TYPE_XSLT
Repository.DOC_TYPE_CLASS
This method checks the value and will not add duplicates. Nor will it
add a value which is not defined as a static in the Repository class.public void setChoosableFileType(java.util.Vector fileTypes)
fileTypes
- is a Vector that should contain ints representing
a repository file type.
Users should add static values from the Repository class, e.g.,
Repository.DOC_TYPE_DTD to the Vector.
This method checks the value and will not add duplicates. Nor will it
add a value which is not defined as a static in the Repository class.
Futhermore, this method flushes the current list of choices,
and adds only the choices in the fileTypes Vector.
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |