Class AnnotatedProperty
java.lang.Object
com.jidesoft.grid.AbstractNode
com.jidesoft.grid.AbstractExpandable
com.jidesoft.grid.DefaultExpandable
com.jidesoft.grid.DefaultExpandableRow
com.jidesoft.grid.Property
com.inductiveautomation.reporting.designer.workspace.inspector.AnnotatedProperty
- All Implemented Interfaces:
com.jidesoft.converter.ConverterContextSupport,com.jidesoft.grid.EditorContextSupport,com.jidesoft.grid.EditorStyleSupport,com.jidesoft.grid.Expandable,com.jidesoft.grid.ExpandableCell,com.jidesoft.grid.ExpandableRow,com.jidesoft.grid.Node,com.jidesoft.grid.Row,Serializable,Comparable<com.jidesoft.grid.Property>
public class AnnotatedProperty
extends com.jidesoft.grid.Property
This is a com.jidesoft.grid.Property that represents a beans-style property from an RMShape that has been annotated
with the @ShapeProperty annotation.
Created by carl.gould on 4/22/2015.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAnnotatedProperty.OwnedAnnotation<T extends Annotation>Just a wrapper around an annotation instance to keep track of which method that annotation was found on -
Field Summary
Fields inherited from class com.jidesoft.grid.Property
_category, _converter, _converterContext, _description, _displayName, _editable, _editorContext, _expert, _focusDisplayName, _hidden, _indentNonCategoryRow, _isCategoryRow, _name, _preferred, _required, _type, PROPERTY_CATEGORY, PROPERTY_CONVERTER_CONTEXT, PROPERTY_DEPENDING_PROPERTIES, PROPERTY_DESCRIPTION, PROPERTY_DISPLAY_NAME, PROPERTY_EDITABLE, PROPERTY_EDITOR_CONTEXT, PROPERTY_EXPERT, PROPERTY_FOCUS_DISPLAY_NAME, PROPERTY_HIDDEN, PROPERTY_NAME, PROPERTY_PREFERRED, PROPERTY_REQUIRED, PROPERTY_TYPE, PROPERTY_VALUEFields inherited from class com.jidesoft.grid.DefaultExpandable
_children, EMPTY_ENUMERATION, PROPERTY_CHILDRENFields inherited from class com.jidesoft.grid.AbstractExpandable
_expandable, _expandedFields inherited from class com.jidesoft.grid.AbstractNode
_parent, PROPERTY_PARENTFields inherited from interface com.jidesoft.grid.Expandable
PROPERTY_EXPANDABLE, PROPERTY_EXPANDEDFields inherited from interface com.jidesoft.grid.Node
PROPERTY_ADJUSTING -
Method Summary
Modifier and TypeMethodDescriptiongetRelativeDataKey(String key) getShape()getValue()booleanhasValue()booleanbooleanisBound()booleanstatic List<AnnotatedProperty>loadProperties(ReportingResourceEditor editor, RMShape shape, List<RMObject> others) Reflectively looks at the class of the given object and turns any properties annotated withShapePropertyinto JIDE property table properties.voidnotifyDrivingPropChanged(Object newValue) Called for properties that are dependent on other properties.voidCalled when the underlying shape has fired a change for this property.voidsetBinding(String binding) voidsetOrderBelow(String value) voidsetup()voidMethods inherited from class com.jidesoft.grid.Property
addDependingProperty, addDependingProperty, clearDependingProperties, compareTo, getCategory, getCellEditor, getCellEditor, getConverterContext, getDependingProperties, getDescription, getDisplayName, getEditorContext, getEditorStyle, getFocusDisplayName, getFullName, getLevel, getName, getTableCellRenderer, getTableCellRenderer, getType, getValueAt, isCategoryRow, isEditable, isEditorStyleSupported, isExpert, isHidden, isIndentNonCategoryRow, isPreferred, isRequired, removeDependingProperty, setCategory, setCategoryRow, setCellEditor, setConverterContext, setDescription, setDisplayName, setEditable, setEditorContext, setEditorStyle, setExpert, setFocusDisplayName, setHidden, setIndentNonCategoryRow, setName, setPreferred, setRequired, setTableCellRenderer, setTypeMethods inherited from class com.jidesoft.grid.DefaultExpandableRow
cellUpdated, getCellClassAt, getConverterContextAt, getEditorContextAt, isCellEditable, notifyCellUpdated, rowUpdated, setValueAtMethods inherited from class com.jidesoft.grid.DefaultExpandable
breadthFirstEnumeration, depthFirstEnumeration, getChildren, postorderEnumeration, preorderEnumeration, setChildrenMethods inherited from class com.jidesoft.grid.AbstractExpandable
addChild, addChild, addChildren, getAllChildrenCount, getAllVisibleChildrenCount, getChildAt, getChildIndex, getChildrenCount, getExpandableTreeTableModel, getNumberOfVisibleChildren, getNumberOfVisibleExpandable, getTreeTableModel, hasChildren, hasVisibleChildren, isAdjusting, isExpandable, isExpanded, moveDownChild, moveUpChild, notifyChildDeleted, notifyChildInserted, notifyChildrenDeleted, notifyChildrenInserted, notifyChildrenUpdated, notifyChildUpdated, removeAllChildren, removeChild, removeChildren, setAdjusting, setExpandable, setExpandedMethods inherited from class com.jidesoft.grid.AbstractNode
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getNextSibling, getParent, getPreviousSibling, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jidesoft.grid.Expandable
addChild, addChild, addChildren, getAllVisibleChildrenCount, getChildAt, getChildIndex, getChildren, getChildrenCount, getNumberOfVisibleExpandable, hasChildren, isExpandable, isExpanded, moveDownChild, moveUpChild, notifyChildDeleted, notifyChildInserted, notifyChildrenDeleted, notifyChildrenInserted, notifyChildrenUpdated, notifyChildUpdated, removeAllChildren, removeChild, removeChildren, setChildren, setExpandable, setExpandedMethods inherited from interface com.jidesoft.grid.Node
getNextSibling, getParent, getPreviousSibling, setParent
-
Method Details
-
loadProperties
public static List<AnnotatedProperty> loadProperties(ReportingResourceEditor editor, RMShape shape, List<RMObject> others) Reflectively looks at the class of the given object and turns any properties annotated withShapePropertyinto JIDE property table properties.- Returns:
- List of AnnotatedProperty's, not null
-
getRelativeDataKey
-
setBinding
-
setup
public void setup() -
getShape
-
notifyPropChanged
public void notifyPropChanged()Called when the underlying shape has fired a change for this property. Compound properties use this as a chance to re-build themselves. -
notifyDrivingPropChanged
Called for properties that are dependent on other properties. For example, if a property should only be enabled if another property is true, then this will be called whenever the driving property changes. -
getBindingPropertyName
-
setOrderBelow
-
isBindingCompatible
public boolean isBindingCompatible() -
isDatasetKey
public boolean isDatasetKey() -
isBound
public boolean isBound() -
hasValue
public boolean hasValue()- Overrides:
hasValuein classcom.jidesoft.grid.Property
-
setValue
- Specified by:
setValuein classcom.jidesoft.grid.Property
-
getValue
- Specified by:
getValuein classcom.jidesoft.grid.Property
-