com.eteks.sweethome3d.applet
Class AppletContentManager
java.lang.Object
com.eteks.sweethome3d.swing.FileContentManager
com.eteks.sweethome3d.applet.AppletContentManager
- All Implemented Interfaces:
- ContentManager
public class AppletContentManager
- extends FileContentManager
Content manager for Sweet Home 3D files stored on server.
- Author:
- Emmanuel Puybaret
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppletContentManager
public AppletContentManager(HomeRecorder recorder,
UserPreferences preferences)
getPresentationName
public String getPresentationName(String contentName,
ContentManager.ContentType contentType)
- Returns the name of the content in parameter.
- Specified by:
getPresentationName
in interface ContentManager
- Overrides:
getPresentationName
in class FileContentManager
isAcceptable
public boolean isAcceptable(String contentName,
ContentManager.ContentType contentType)
- Returns
true
if the content name in parameter is accepted
for contentType
.
- Specified by:
isAcceptable
in interface ContentManager
- Overrides:
isAcceptable
in class FileContentManager
showOpenDialog
public String showOpenDialog(View parentView,
String dialogTitle,
ContentManager.ContentType contentType)
- Returns the name chosen by user with an open dialog.
- Specified by:
showOpenDialog
in interface ContentManager
- Overrides:
showOpenDialog
in class FileContentManager
- Returns:
- the name or
null
if user canceled its choice.
showSaveDialog
public String showSaveDialog(View parentView,
String dialogTitle,
ContentManager.ContentType contentType,
String name)
- Returns the name chosen by user with a save dialog.
If this name already exists, the user will be prompted whether
he wants to overwrite this existing name.
- Specified by:
showSaveDialog
in interface ContentManager
- Overrides:
showSaveDialog
in class FileContentManager
- Returns:
- the chosen name or
null
if user canceled its choice.