i have event in java , need how value of field (for example of columnfootersvisible
).
more info - event vaadin property.valuechangeevent
- event->
- source->
- columnfootersvisible - false
- source->
here screenshot of event:
i know can source object, possible event data visible in debbuger?
ide have shown values of protected (source
, yellow mark) , private (columnfootersvisible
, red mark) fields of objects (event , table). while it's possible access private fields in java through reflection, normal way use public api.
both event's source
, table's columnfootersvisible
fields have proper public accessors: getsource , isfootervisible, correspondingly. so, can use these methods:
if(event.getsource() instanceof table) { table table = (table) event.getsource(); boolean isfootervisible = table.isfootervisible(); }
if, obscure reason, still want access private fields directly, might want take on question:
Comments
Post a Comment