com.yworks.yfiles.server.graphml.flexio.data
Class ComponentNodeStyle

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.ComponentNodeStyle
All Implemented Interfaces:
INodeStyle, ISharedInstanceProvider

public class ComponentNodeStyle
extends java.lang.Object
implements INodeStyle, ISharedInstanceProvider

yFiles Flex client component node style data object. Either the component object or the componentClassName should be set. For (de)serialization, the component object has a higher priority than the component class name, i.e., the class name will only be set if the component could not be deserialized and the class name will only be written if the component property is null. The (de)serialization of the component instance is delegated to appropriate serializer/deserializer instances.

See Also:
ComponentNodeStyleSerializer, ComponentNodeStyleDeserializer

Constructor Summary
ComponentNodeStyle()
           
 
Method Summary
 java.lang.Object getComponent()
           
 java.lang.String getComponentClassName()
           
 java.util.Collection getSharedInstances()
          Returns an Collection for objects that shall be shared.
 void setComponent(java.lang.Object component)
           
 void setComponentClassName(java.lang.String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentNodeStyle

public ComponentNodeStyle()
Method Detail

getComponent

public java.lang.Object getComponent()

setComponent

public void setComponent(java.lang.Object component)

getComponentClassName

public java.lang.String getComponentClassName()

setComponentClassName

public void setComponentClassName(java.lang.String className)

getSharedInstances

public java.util.Collection getSharedInstances()
Description copied from interface: ISharedInstanceProvider
Returns an Collection for objects that shall be shared.

Specified by:
getSharedInstances in interface ISharedInstanceProvider
Returns:


Copyright © 2000-2013 yWorks GmbH. All rights reserved