Global

Members

bondTypes

Which types of bond can be considered as an edge of ring. [] means no bond is allowed in ring (as no ring can actually be found. Null means all bond type can be included in ring.
Source:

Methods

flashMessage(msg, msgType, flashTime, className) → {Kekule.Widget.MsgPanel}

Add a flash message to message reporter of widget. If flashTime param is not set, default value will be used.
Parameters:
Name Type Description
msg String
msgType String
flashTime Int
className String Additional HTML class name need to add to new message panel widget.
Source:
Returns:
New message panel added to reporter.
Type
Kekule.Widget.MsgPanel

jsonToValue(jsonStr) → {Variant}

Convert a JSON string to value. JSON serializer may be used if the value is a complex one (Object, Array, ObjectEx, etc.).
Parameters:
Name Type Description
jsonStr String
Source:
Returns:
Type
Variant

loadObj(srcNode, serializerOrName)

load object from srcNode.
Parameters:
Name Type Description
srcNode Object Storage node to load object. Different serializer requires different node.
serializerOrName Variant A ObjSerializer instance or name registered in ObjSerializerFactory. Can be null to use the default serializer.
Source:

removeMessage(msgPanel)

Remove a message from reporter.
Parameters:
Name Type Description
msgPanel
Source:

reportMessage(msg, msgType, flashTime, className) → {Kekule.Widget.MsgPanel}

Add a message to message reporter of widget. If flashTime is not set, the message will always be shown in reporter.
Parameters:
Name Type Description
msg String
msgType String
flashTime Int
className String Additional HTML class name need to add to new message panel widget.
Source:
Returns:
New message panel added to reporter.
Type
Kekule.Widget.MsgPanel

saveObj(obj, destNode, serializerOrName, options)

Save an object to destNode.
Parameters:
Name Type Description
obj Variant
destNode Object Storage node to save object. Different serializer requires different node.
serializerOrName Variant A ObjSerializer instance or name registered in ObjSerializerFactory. Can be null to use the default serializer.
options Hash
Source:

valueToJson(value, options) → {String}

Convert a value to JSON string. If value is a complex type (Object, Array, ObjectEx), JSON serializer will be used.
Parameters:
Name Type Description
value Variant
options Hash JSON serializer options
Source:
Returns:
Type
String