Class representing a property that links to another property defined on an attached child widget.
More...
Public Member Functions |
| PropertyLinkDefinition (const String &propertyName, const String &widgetNameSuffix, const String &targetProperty, const String &initialValue, bool redrawOnWrite, bool layoutOnWrite) |
void | addLinkTarget (const String &widget, const String &property) |
| add a new link target to property on widget (name suffix).
|
void | clearLinkTargets () |
| clear all link targets from this link definition.
|
String | get (const PropertyReceiver *receiver) const |
| Return the current value of the Property as a String.
|
void | set (PropertyReceiver *receiver, const String &value) |
| Sets the value of the property.
|
| PropertyDefinitionBase (const String &name, const String &help, const String &initialValue, bool redrawOnWrite, bool layoutOnWrite) |
virtual void | writeXMLToStream (XMLSerializer &xml_stream) const |
| Writes an xml representation of the PropertyDefinitionBase based object to out_stream.
|
| Property (const String &name, const String &help, const String &defaultValue="", bool writesXML=true) |
| Creates a new Property object.
|
virtual | ~Property (void) |
| Destructor for Property objects.
|
const String & | getHelp (void) const |
| Return a String that describes the purpose and usage of this Property.
|
const String & | getName (void) const |
| Return a the name of this Property.
|
virtual bool | isDefault (const PropertyReceiver *receiver) const |
| Returns whether the property is at it's default value.
|
virtual String | getDefault (const PropertyReceiver *receiver) const |
| Returns the default value of the Property as a String.
|
virtual void | writeXMLToStream (const PropertyReceiver *receiver, XMLSerializer &xml_stream) const |
| Writes out an XML representation of this class to the given stream.
|
Protected Member Functions |
void | writeXMLElementType (XMLSerializer &xml_stream) const |
| Write out the text of the XML element type. Note that you should not write the opening '<' character, nor any other information such as attributes in this function. The writeExtraAttributes function can be used for writing attributes.
|
void | writeXMLAttributes (XMLSerializer &xml_stream) const |
| Write out any xml attributes added in a sub-class. Note that you should not write the closing '/>' character sequence, nor any other information in this function. You should always call the base class implementation of this function when overriding.
|
const Window * | getTargetWindow (const PropertyReceiver *receiver) const |
| return a pointer to the window containing the target property to be accessed.
|
Window * | getTargetWindow (PropertyReceiver *receiver) |
const Window * | getTargetWindow (const PropertyReceiver *receiver, const String &name_suffix) const |
| Return a pointer to the target window with the given suffix.
|
Window * | getTargetWindow (PropertyReceiver *receiver, const String &name_suffix) |
| Return a pointer to the target window with the given suffix.
|
Class representing a property that links to another property defined on an attached child widget.