# Component Event Property Methods

**URL:** <https://forum.inductiveautomation.com/t/component-event-property-methods/30982>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [December 30, 2019, 9:15pm UTC](https://forum.inductiveautomation.com/t/component-event-property-methods/30982 "2019-12-30T21:15:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 30, 2019, 9:25pm UTC](https://forum.inductiveautomation.com/t/component-event-property-methods/30982/2 "2019-12-30T21:25:58Z")

</div>

The method `putClientProperty` adds a new property to the component it’s called on. In this instance, @witman was adding a property called `singleClick` to the button component and setting its value to `true`.

So `singleClick` was an added custom property. `putClientProperty` and `getClientProperty` are methods available to objects that inherit from the `javax.swing.JComponent` class.

The [javadocs](http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/index.html) will show you what methods and properties are available to all Ignition classes, but these all inherit from standard Java and Java Swing which you’ll need to view their own documentation to see more details.

You’ll need to know the object type that you’re trying to see the methods/properties for, and in Python you can use `type(...)`  
E.g.

```auto
print type(event.source)
> <type 'com.inductiveautomation.factorypmi.application.FPMIWindow'>

```

Then search for the last element `FPMIWindow` in the javadocs

As a side note, you can actually add python function objects themselves to Ignition windows using the `putClientProperty` which is sometimes useful.

---

_[View the full topic](https://forum.inductiveautomation.com/t/component-event-property-methods/30982)._
