public class AppletContentManager extends FileContentManager
ContentManager.ContentType
Constructor and Description |
---|
AppletContentManager(HomeRecorder recorder,
UserPreferences preferences) |
AppletContentManager(HomeRecorder recorder,
UserPreferences preferences,
ViewFactory viewFactory) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPresentationName(java.lang.String contentName,
ContentManager.ContentType contentType)
Returns the name of the content in parameter.
|
boolean |
isAcceptable(java.lang.String contentName,
ContentManager.ContentType contentType)
Returns
true if the content name in parameter is accepted
for contentType . |
java.lang.String |
showOpenDialog(View parentView,
java.lang.String dialogTitle,
ContentManager.ContentType contentType)
Returns the name chosen by user with an open dialog.
|
java.lang.String |
showSaveDialog(View parentView,
java.lang.String dialogTitle,
ContentManager.ContentType contentType,
java.lang.String name)
Returns the name chosen by user with a save dialog.
|
confirmOverwrite, getContent, getDefaultFileExtension, getFileDialogTitle, getFileExtensions, getFileFilter, getLastDirectory, isDirectory, setLastDirectory
public AppletContentManager(HomeRecorder recorder, UserPreferences preferences, ViewFactory viewFactory)
public AppletContentManager(HomeRecorder recorder, UserPreferences preferences)
public java.lang.String getPresentationName(java.lang.String contentName, ContentManager.ContentType contentType)
getPresentationName
in interface ContentManager
getPresentationName
in class FileContentManager
public boolean isAcceptable(java.lang.String contentName, ContentManager.ContentType contentType)
true
if the content name in parameter is accepted
for contentType
.isAcceptable
in interface ContentManager
isAcceptable
in class FileContentManager
public java.lang.String showOpenDialog(View parentView, java.lang.String dialogTitle, ContentManager.ContentType contentType)
showOpenDialog
in interface ContentManager
showOpenDialog
in class FileContentManager
null
if user canceled its choice.public java.lang.String showSaveDialog(View parentView, java.lang.String dialogTitle, ContentManager.ContentType contentType, java.lang.String name)
showSaveDialog
in interface ContentManager
showSaveDialog
in class FileContentManager
null
if user canceled its choice.
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License