Sweet Home 3D 3.4

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(java.lang.String contentName)
          Returns a content object that references a given content name.
 java.lang.String getPresentationName(java.lang.String contentName, ContentManager.ContentType contentType)
          Returns a human readable string for a given content name.
 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 content name chosen by user with an open content dialog.
 java.lang.String showSaveDialog(View parentView, java.lang.String dialogTitle, ContentManager.ContentType contentType, java.lang.String name)
          Returns the content name chosen by user with a save content dialog.
 

Method Detail

getContent

Content getContent(java.lang.String contentName)
                   throws RecorderException
Returns a content object that references a given content name.

Throws:
RecorderException

getPresentationName

java.lang.String getPresentationName(java.lang.String contentName,
                                     ContentManager.ContentType contentType)
Returns a human readable string for a given content name.


isAcceptable

boolean isAcceptable(java.lang.String contentName,
                     ContentManager.ContentType contentType)
Returns true if the content name in parameter is accepted for contentType.


showOpenDialog

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

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

showSaveDialog

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

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

Sweet Home 3D 3.4

? Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License