com.dynamide.datatypes
Class Caption

java.lang.Object
  extended by com.dynamide.DynamideObject
      extended by com.dynamide.datatypes.Datatype
          extended by com.dynamide.datatypes.ExpandableDatatype
              extended by com.dynamide.datatypes.Caption
All Implemented Interfaces:
IGet

public class Caption
extends ExpandableDatatype

A simple datatype to wrap a caption string, but adds a key value so you can use internationalized display text (text) and still have one set of keys (key).

Defines the following elements:


Field Summary
 
Fields inherited from class com.dynamide.DynamideObject
m_id
 
Constructor Summary
Caption()
           
Caption(DynamideObject owner, Session session)
           
Caption(java.lang.String key, java.lang.String text)
           
 
Method Summary
 void addXMLContentTo(org.jdom.Element container)
           
 java.lang.String getDotName()
           
 void init(org.jdom.Element element, java.lang.String ownerID)
           
 java.lang.String toString()
           
 ValidationResult validate()
           
 
Methods inherited from class com.dynamide.datatypes.ExpandableDatatype
get
 
Methods inherited from class com.dynamide.datatypes.Datatype
clone, createClone, dump, dumpHTML, finalize, getAsStored, getDatatypeClassName, getDatatypeClassName, getDatatypeClassName, getDatatypeInstance, getProperty, getSession, insertItemDatatype, set, setProperty, setSession
 
Methods inherited from class com.dynamide.DynamideObject
clearProfiler, dump, expand, findParentExpander, findParentPage, findParentSession, findTopParentPage, getCategoryID, getID, getNextGetter, getObjectID, getOwner, getProfiler, isDebugEnabled, isInfoEnabled, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logWarn, logWarn, logWarn, logWarn, popLogContext, printf, printProfiler, profileEnter, profileLeave, pushLogContext, setDotName, setID, setNextGetter, setObjectID, setOwner, sprintf, useProfiler, walkParents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Caption

public Caption()

Caption

public Caption(DynamideObject owner,
               Session session)

Caption

public Caption(java.lang.String key,
               java.lang.String text)
Method Detail

init

public void init(org.jdom.Element element,
                 java.lang.String ownerID)
Overrides:
init in class Datatype

addXMLContentTo

public void addXMLContentTo(org.jdom.Element container)
Specified by:
addXMLContentTo in class Datatype

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public ValidationResult validate()
Overrides:
validate in class Datatype

getDotName

public java.lang.String getDotName()
Overrides:
getDotName in class DynamideObject


Copyright 2001-2013 DYNAMIDE.COM. All Rights Reserved.