Sweet Home 3D 4.1

com.eteks.sweethome3d.viewcontroller
Interface ContentManager

All Known Implementing Classes:
AppletContentManager, FileContentManager

public interface ContentManager

Content manager.

Author:
Emmanuel Puybaret

Nested Class Summary
static class ContentManager.ContentType
           
 
Method Summary
 Content getContent(String contentLocation)
          Returns a content object that references a given content location.
 String getPresentationName(String contentLocation, ContentManager.ContentType contentType)
          Returns a human readable string for a given content location.
 boolean isAcceptable(String contentLocation, ContentManager.ContentType contentType)
          Returns true if the content location in parameter is accepted for contentType.
 String showOpenDialog(View parentView, String dialogTitle, ContentManager.ContentType contentType)
          Returns the content location chosen by user with an open content dialog.
 String showSaveDialog(View parentView, String dialogTitle, ContentManager.ContentType contentType, String location)
          Returns the content location chosen by user with a save content dialog.
 

Method Detail

getContent

Content getContent(String contentLocation)
                   throws RecorderException
Returns a content object that references a given content location.

Throws:
RecorderException

getPresentationName

String getPresentationName(String contentLocation,
                           ContentManager.ContentType contentType)
Returns a human readable string for a given content location.


isAcceptable

boolean isAcceptable(String contentLocation,
                     ContentManager.ContentType contentType)
Returns true if the content location in parameter is accepted for contentType.


showOpenDialog

String showOpenDialog(View parentView,
                      String dialogTitle,
                      ContentManager.ContentType contentType)
Returns the content location chosen by user with an open content dialog.

Returns:
the chosen content location or null if user canceled its choice.

showSaveDialog

String showSaveDialog(View parentView,
                      String dialogTitle,
                      ContentManager.ContentType contentType,
                      String location)
Returns the content location chosen by user with a save content dialog. If the returned location already exists, this method should have confirmed if the user wants to overwrite it before return.

Returns:
the chosen content location 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