Sweet Home 3D 4.1

com.eteks.sweethome3d.applet
Class AppletContentManager

java.lang.Object
  extended by com.eteks.sweethome3d.swing.FileContentManager
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.eteks.sweethome3d.viewcontroller.ContentManager
ContentManager.ContentType
 
Constructor Summary
AppletContentManager(HomeRecorder recorder, UserPreferences preferences)
           
 
Method Summary
 String getPresentationName(String contentName, ContentManager.ContentType contentType)
          Returns the name of the content in parameter.
 boolean isAcceptable(String contentName, ContentManager.ContentType contentType)
          Returns true if the content name in parameter is accepted for contentType.
 String showOpenDialog(View parentView, String dialogTitle, ContentManager.ContentType contentType)
          Returns the name chosen by user with an open dialog.
 String showSaveDialog(View parentView, String dialogTitle, ContentManager.ContentType contentType, String name)
          Returns the name chosen by user with a save dialog.
 
Methods inherited from class com.eteks.sweethome3d.swing.FileContentManager
confirmOverwrite, getContent, getDefaultFileExtension, getFileDialogTitle, getFileFilter, getLastDirectory, isDirectory, setLastDirectory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppletContentManager

public AppletContentManager(HomeRecorder recorder,
                            UserPreferences preferences)
Method Detail

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.

Sweet Home 3D 4.1

© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License