Package system.windows.forms
Class FileDialog
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.windows.forms.CommonDialog
-
- system.windows.forms.FileDialog
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
- Direct Known Subclasses:
OpenFileDialog,SaveFileDialog
public class FileDialog extends CommonDialog
The base .NET class managing System.Windows.Forms.FileDialog, System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Forms.FileDialog
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Windows.Formsstatic java.lang.StringclassNameQualified class name: System.Windows.Forms.FileDialogstatic org.mases.jcobridge.JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description FileDialog()FileDialog(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFileOk(CancelEventHandler handler)static FileDialogcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoFileDialog, a cast assert is made to check if types are compatible.booleangetAddExtension()booleangetAddToRecent()booleangetAutoUpgradeEnabled()booleangetCheckFileExists()booleangetCheckPathExists()FileDialogCustomPlacesCollectiongetCustomPlaces()java.lang.StringgetDefaultExt()booleangetDereferenceLinks()java.lang.StringgetFileName()java.lang.String[]getFileNames()java.lang.StringgetFilter()intgetFilterIndex()java.lang.StringgetInitialDirectory()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectorg.mases.jcobridge.JCTypegetJCOType()Returns the instantiated class TypebooleangetOkRequiresInteraction()booleangetRestoreDirectory()booleangetShowHelp()booleangetShowHiddenFiles()booleangetShowPinnedPlaces()booleangetSupportMultiDottedExtensions()java.lang.StringgetTitle()booleangetValidateNames()voidremoveFileOk(CancelEventHandler handler)voidReset()voidsetAddExtension(boolean AddExtension)voidsetAddToRecent(boolean AddToRecent)voidsetAutoUpgradeEnabled(boolean AutoUpgradeEnabled)voidsetCheckFileExists(boolean CheckFileExists)voidsetCheckPathExists(boolean CheckPathExists)voidsetDefaultExt(java.lang.String DefaultExt)voidsetDereferenceLinks(boolean DereferenceLinks)voidsetFileName(java.lang.String FileName)voidsetFilter(java.lang.String Filter)voidsetFilterIndex(int FilterIndex)voidsetInitialDirectory(java.lang.String InitialDirectory)voidsetJCOInstance(org.mases.jcobridge.JCObject instance)voidsetOkRequiresInteraction(boolean OkRequiresInteraction)voidsetRestoreDirectory(boolean RestoreDirectory)voidsetShowHelp(boolean ShowHelp)voidsetShowHiddenFiles(boolean ShowHiddenFiles)voidsetShowPinnedPlaces(boolean ShowPinnedPlaces)voidsetSupportMultiDottedExtensions(boolean SupportMultiDottedExtensions)voidsetTitle(java.lang.String Title)voidsetValidateNames(boolean ValidateNames)-
Methods inherited from class system.windows.forms.CommonDialog
addHelpRequest, getTag, removeHelpRequest, setTag, ShowDialog, ShowDialog
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Windows.Forms- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Forms.FileDialog- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classCommonDialog- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classCommonDialog- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classCommonDialog- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classCommonDialog- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstancein classCommonDialog
-
getJCOType
public org.mases.jcobridge.JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classCommonDialog- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static FileDialog cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoFileDialog, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
FileDialoginstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Reset
public void Reset() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException- Overrides:
Resetin classCommonDialog- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchException
-
getAddExtension
public boolean getAddExtension() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setAddExtension
public void setAddExtension(boolean AddExtension) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getAddToRecent
public boolean getAddToRecent() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setAddToRecent
public void setAddToRecent(boolean AddToRecent) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getAutoUpgradeEnabled
public boolean getAutoUpgradeEnabled() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setAutoUpgradeEnabled
public void setAutoUpgradeEnabled(boolean AutoUpgradeEnabled) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getCheckFileExists
public boolean getCheckFileExists() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setCheckFileExists
public void setCheckFileExists(boolean CheckFileExists) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getCheckPathExists
public boolean getCheckPathExists() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setCheckPathExists
public void setCheckPathExists(boolean CheckPathExists) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getDereferenceLinks
public boolean getDereferenceLinks() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setDereferenceLinks
public void setDereferenceLinks(boolean DereferenceLinks) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getOkRequiresInteraction
public boolean getOkRequiresInteraction() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
setOkRequiresInteraction
public void setOkRequiresInteraction(boolean OkRequiresInteraction) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
getRestoreDirectory
public boolean getRestoreDirectory() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setRestoreDirectory
public void setRestoreDirectory(boolean RestoreDirectory) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getShowHelp
public boolean getShowHelp() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setShowHelp
public void setShowHelp(boolean ShowHelp) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getShowHiddenFiles
public boolean getShowHiddenFiles() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setShowHiddenFiles
public void setShowHiddenFiles(boolean ShowHiddenFiles) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getShowPinnedPlaces
public boolean getShowPinnedPlaces() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
setShowPinnedPlaces
public void setShowPinnedPlaces(boolean ShowPinnedPlaces) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
getSupportMultiDottedExtensions
public boolean getSupportMultiDottedExtensions() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setSupportMultiDottedExtensions
public void setSupportMultiDottedExtensions(boolean SupportMultiDottedExtensions) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getValidateNames
public boolean getValidateNames() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setValidateNames
public void setValidateNames(boolean ValidateNames) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getFilterIndex
public int getFilterIndex() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setFilterIndex
public void setFilterIndex(int FilterIndex) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getDefaultExt
public java.lang.String getDefaultExt() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setDefaultExt
public void setDefaultExt(java.lang.String DefaultExt) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
getFileName
public java.lang.String getFileName() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setFileName
public void setFileName(java.lang.String FileName) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getFilter
public java.lang.String getFilter() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setFilter
public void setFilter(java.lang.String Filter) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, InvalidOperationException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationException
-
getInitialDirectory
public java.lang.String getInitialDirectory() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setInitialDirectory
public void setInitialDirectory(java.lang.String InitialDirectory) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getTitle
public java.lang.String getTitle() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setTitle
public void setTitle(java.lang.String Title) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getFileNames
public java.lang.String[] getFileNames() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedException
-
getCustomPlaces
public FileDialogCustomPlacesCollection getCustomPlaces() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addFileOk
public void addFileOk(CancelEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeFileOk
public void removeFileOk(CancelEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-