nl.gx.webmanager.wcb.mediaitemtype.impl
Class MediaItemComponentDefinitionImpl

java.lang.Object
  extended by nl.gx.webmanager.wcb.foundation.ComponentDefinitionImpl
      extended by nl.gx.webmanager.wcb.mediaitemtype.impl.MediaItemComponentDefinitionImpl
All Implemented Interfaces:
ComponentDefinition, MediaItemComponentDefinition

public class MediaItemComponentDefinitionImpl
extends ComponentDefinitionImpl
implements MediaItemComponentDefinition

This class implements additional properties for media items to the default componentdefinition.

Author:
Ivo Ladage

Field Summary
 
Fields inherited from class nl.gx.webmanager.wcb.foundation.ComponentDefinitionImpl
LOG
 
Constructor Summary
MediaItemComponentDefinitionImpl(boolean isLicensed, java.lang.Class mediaClass)
          Creates a new MediaItemComponentDefinitionImpl instance.
 
Method Summary
 java.lang.String getContentType()
          Returns the unique content type of this media item type.
 java.lang.String getContentTypeLabelId()
          Return the label id to be assosiated with the contenttype.
 java.lang.String getIcon()
          Return the name of the icon assosiated with this content type.
 boolean isArticle()
          Returns if this media item type is of type article.
 void setContentType(java.lang.String contentType)
          Setter for the content type.
 void setContentTypeLabelId(java.lang.String labelId)
          Set the label id to be assosiated with the content type.
 void setIcon(java.lang.String icon)
          Set the icon with which the content type is identified.
 void setIsArticle(boolean isArticle)
          Setter for is article indication.
 
Methods inherited from class nl.gx.webmanager.wcb.foundation.ComponentDefinitionImpl
getComponentBundleDefinition, getControllerClassName, getDependencies, getDescription, getDisplayLanguage, getEntityClassNames, getEntityFactoryClassName, getExtensions, getId, getImplementationClassName, getInstanceClassName, getInterfaceClassNames, getLanguageResourceMessage, getLanguageResourceMessages, getLanguageResources, getName, getNameSpace, getNodeType, getPermissionCategory, getPermissionsForPermissionGroups, getPersistenceManagerClassName, getProperties, getTypeId, getWrapperClassNames, isLicensed, setComponentBundleDefinition, setControllerClassName, setDependencies, setDescription, setEntityClassNames, setEntityFactoryClassName, setExtensions, setId, setImplementationClassName, setInstanceClassName, setInterfaceClassNames, setLanguageResources, setName, setNameSpace, setNodeType, setPermissionCategory, setPermissionsForPermissionGroup, setPersistenceManagerClassName, setProperties, setTypeId, setWrapperClassNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.gx.webmanager.wcb.mediaitemtype.MediaItemComponentDefinition
getDescription, getName, getNodeType
 
Methods inherited from interface nl.gx.webmanager.wcb.ComponentDefinition
getComponentBundleDefinition, getControllerClassName, getDependencies, getDisplayLanguage, getEntityClassNames, getEntityFactoryClassName, getExtensions, getId, getImplementationClassName, getInstanceClassName, getInterfaceClassNames, getLanguageResourceMessage, getLanguageResourceMessages, getLanguageResources, getNameSpace, getPermissionCategory, getPermissionsForPermissionGroups, getPersistenceManagerClassName, getProperties, getTypeId, getWrapperClassNames, isLicensed, setComponentBundleDefinition, setExtensions
 

Constructor Detail

MediaItemComponentDefinitionImpl

public MediaItemComponentDefinitionImpl(boolean isLicensed,
                                        java.lang.Class mediaClass)
Creates a new MediaItemComponentDefinitionImpl instance.

Parameters:
isLicensed - Indicates whether the MediaComponent requires a license.
mediaClass - The implementation class for the media item
Method Detail

setIsArticle

public void setIsArticle(boolean isArticle)
Setter for is article indication. An article may contain elements.

Parameters:
isArticle - Indicates if this media type is of type article

isArticle

public boolean isArticle()
Returns if this media item type is of type article. An article media item type may contain elements.

Specified by:
isArticle in interface MediaItemComponentDefinition
Returns:
true is this is an article type of media item

setContentType

public void setContentType(java.lang.String contentType)
Setter for the content type.

Parameters:
contentType - The content type

getContentType

public java.lang.String getContentType()
Returns the unique content type of this media item type.

Specified by:
getContentType in interface MediaItemComponentDefinition
Returns:
The content type

setIcon

public void setIcon(java.lang.String icon)
Set the icon with which the content type is identified.

Parameters:
icon - Name of the icon to identify the content type with

getIcon

public java.lang.String getIcon()
Return the name of the icon assosiated with this content type.

Specified by:
getIcon in interface MediaItemComponentDefinition
Returns:
Name of the icon to identify the content type with

setContentTypeLabelId

public void setContentTypeLabelId(java.lang.String labelId)
Set the label id to be assosiated with the content type.

Parameters:
labelId - Label id to be assosiated with the content type

getContentTypeLabelId

public java.lang.String getContentTypeLabelId()
Return the label id to be assosiated with the contenttype.

Specified by:
getContentTypeLabelId in interface MediaItemComponentDefinition
Returns:
Label id of the contenttype


Copyright © 2007-2011 GX Software BV. All Rights Reserved.