com.fatwire.cs.ui.model.bo.asset
Class AttributeEditor

java.lang.Object
  extended by com.fatwire.cs.ui.model.bo.asset.AttributeEditor
All Implemented Interfaces:
java.io.Serializable

public class AttributeEditor
extends java.lang.Object
implements java.io.Serializable

Creates an Attribute Editor to edit and set attribute's data. Edit mode is determined by the RenderDataContext Rendering is done in memory and the resulting component is returned back to caller. It is the callers responsibility to eventually use the return value to paint the screen.

See Also:
Serialized Form

Nested Class Summary
static class AttributeEditor.EnumOption
           
 
Constructor Summary
AttributeEditor(java.lang.String name)
          Creates an attribute Editor
AttributeEditor(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> props)
          Creates an attribute Editor
 
Method Summary
 java.util.Set<java.lang.String> getKeys()
          Get the keys associated with the Editor properties map
 java.lang.String getName()
          Gets the name of the attribute for the editor
 IPresentationObject getPresentationObject()
          For flex attribute editor, PresentationObject is stored in the map and this method returns it
 java.lang.Object getProperty(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeEditor

public AttributeEditor(java.lang.String name)
Creates an attribute Editor

Parameters:
name - of the attribute

AttributeEditor

public AttributeEditor(java.lang.String name,
                       java.util.Map<java.lang.String,java.lang.Object> props)
Creates an attribute Editor

Parameters:
name - of the attribute
props - Map of properties read from attribute xml properties file
Method Detail

getName

public java.lang.String getName()
Gets the name of the attribute for the editor

Returns:
the name of the attribute

getPresentationObject

public IPresentationObject getPresentationObject()
For flex attribute editor, PresentationObject is stored in the map and this method returns it

Returns:
the IPresentationObject, null if this attribute is not flex attribute, or does not have an attribute editor specified

getKeys

public java.util.Set<java.lang.String> getKeys()
Get the keys associated with the Editor properties map

Returns:
List of keys associated with the properties map

getProperty

public java.lang.Object getProperty(java.lang.String key)


Copyright (c) 2003 - 2011 FatWire Corporation All Rights Reserved.