Class TextComponentTagDropHandler
java.lang.Object
com.inductiveautomation.factorypmi.designer.beaninfo.tags.AbstractBindingTagDropHandler
com.inductiveautomation.factorypmi.designer.beaninfo.tags.DefaultTagDropHandler
com.inductiveautomation.factorypmi.designer.beaninfo.tags.TextComponentTagDropHandler
- All Implemented Interfaces:
TagDropHandler
A special drop handler for components who are setting the tag value to a text property.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.factorypmi.designer.beaninfo.tags.DefaultTagDropHandler
DefaultTagDropHandler.BasicBindConfiguration, DefaultTagDropHandler.BindConfiguration, DefaultTagDropHandler.MultiBindConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
processValueBinding
(DesignerContext context, NodeBrowseInfo tag, JComponent bean, DefaultTagDropHandler.BindConfiguration config) We override the binding of the value property for standard value drops to: Set the horizontal alignment based on the type of the tag Bind the text property to an expression involving the format string for numeric/date typesMethods inherited from class com.inductiveautomation.factorypmi.designer.beaninfo.tags.DefaultTagDropHandler
addBinding, addBinding, addBinding, addOneWayBinding, createBasicBindConfig, handleDrop, handlePropertyPathDrop, handleValueDrop, processBinding, processBinding, removeBinding
Methods inherited from class com.inductiveautomation.factorypmi.designer.beaninfo.tags.AbstractBindingTagDropHandler
findController, findProperty
-
Constructor Details
-
TextComponentTagDropHandler
-
-
Method Details
-
processValueBinding
public boolean processValueBinding(DesignerContext context, NodeBrowseInfo tag, JComponent bean, DefaultTagDropHandler.BindConfiguration config) We override the binding of the value property for standard value drops to:- Set the horizontal alignment based on the type of the tag
- Bind the text property to an expression involving the format string for numeric/date types
- Overrides:
processValueBinding
in classDefaultTagDropHandler
-