Questions tagged [objectname]

49 questions
15
votes
2 answers

How to find an object by name in pyqt?

I have a list of dictionaries: globalParams = [{'attr':'enabled','ctrl':'checkBoxEnabled','type':'checkBox'}, {'attr':'colorMode','ctrl':'comboBoxColorMode','type':'comboBox'}] 'ctrl' - name of the control in the Qt window.…
Massimo
  • 836
  • 3
  • 17
  • 38
8
votes
5 answers

jquery: get the object name?

I am trying to retrieve the clicked object name through the code below, but I get [object object] only, how can I get the object name? click $('.clickme').click(function(){ alert($(this)); return…
Run
  • 54,938
  • 169
  • 450
  • 748
8
votes
1 answer

How does JConsole decide what order to use JMX keys to render a tree?

When viewing JMX beans in JConsole it renders all the beans under a given domain part as a hierarchy. (JVisualVM has the same behaviour with the JConsole MBeans plugin.) I realise that JMX object names are not hierarchical, but nevertheless JConsole…
dty
  • 18,795
  • 6
  • 56
  • 82
5
votes
3 answers

SQL Server Object Names

I am wondering if someone can explain the concept of uniquely identifying sql server objects in a join. In my example there are 2 schemas and 2 tables (but with same name). My assumption was that even though table name might be same between 2…
5
votes
1 answer

can't access mbean when objectname uses a wildcard

I am having an issue accessing an mbean using ObjectName expression matching. The following code successfully sets boolean b: ObjectName objName = new ObjectName("UnifiedSystem-search Cluster Control l-c:class=myclass"); boolean b =…
Kreg
  • 647
  • 1
  • 6
  • 17
4
votes
1 answer

NSLog - How to print object name?

Consider, NSString *myString = @"Welcome"; NSLog(@"%@",myString); will print Welcome in console. Can I print the string like "myString: Welcome"? I mean, can I get the object name("myString") along with object value("Welcome")?
Confused
  • 3,846
  • 7
  • 45
  • 72
3
votes
4 answers

Is it possible to print the name of an object?

I already know that it's not possible to print the name of a variable, neither in C or in C++, this is mentioned in other StackOverflow posts. However I know that in other languages, like Delphi, it is possible to print the classname of an object. I…
Dominique
  • 16,450
  • 15
  • 56
  • 112
2
votes
2 answers

get name of element under mouse cursor on mouse click

I am trying to make a method where i can get the element that was clicked. In App.xaml.cs i have method OnPreviewMouseDown that is activated for each click in application. Now i need some help with getting element name from sender (if this is even…
Pajkec
  • 67
  • 3
  • 12
2
votes
3 answers

how can i get an object name when it is created in java?

when an object is created how can i get the name of that object ?? for example let's consider a class Book: public class Book { private String name; private int pages; public Book(String name, int pages) { this.name = name; …
rainman
  • 2,551
  • 6
  • 29
  • 43
2
votes
2 answers

How to find the weblogic jmx attributes for a objectname

I am writing simple client application to connect to weblogic and list all the libraries that a webapp is depending on.However, I am having difficulty in finding the right attributes for a objectname. For example, If you look at the below sample…
Praveen Reddy Katta
  • 183
  • 1
  • 1
  • 11
1
vote
1 answer

Access name of the object that "i" represents when it iterates in a for-loop through a list of objects in R

I have: directories (let's say two: A and B) that contain files; two character objects storing the directories (dir_A, dir_B); a function that takes the directory as argument and returns the list of the names of the files found there (in a…
Matteo
  • 2,774
  • 1
  • 6
  • 22
1
vote
0 answers

Changing the console-visible name of an object in js, via chrome

When an object is created via the new function(){} method, the object inherits the constructors name: new function(){this.x=616}; // Object {x: 616} new function Func(){this.x=616}; // Func {x: 616} What I want to know is how to change…
Lex
  • 11
  • 3
1
vote
1 answer

C3P0Registry mbean is not being registered with MBeanServer. Getting InstanceNotFoundException

I am trying to get dbpool details using my function named getdbPoolStatistics() which returns a hashmap of all the metrices that i'm gonna monitor. In getdbPoolStatistics(), i use C3P0Registry.getPooledDataSources() which returns 2 db pools and…
1
vote
4 answers

How to access javaScript object property NAME not VALUE

I have a an object me = { name: "Mo", age: 28, } And I want to see if this object has the property "height" for example. (which it doesn't) How can i do this? So for example if it has the property "height" I can give it a value of…
zzgooloo
  • 75
  • 3
  • 9
1
vote
4 answers

How to get access to existing objects with string input (Convert string input to objectname)

I am creating a lot of objects called: Obj1, Obj2.... ObjX Object Obj1 = new Object(); Object Obj2 = new Object(); Object ObjX = new Object(); Now I am having a function where I want to get access to one of this objects. public void useObject(int…
basti12354
  • 2,490
  • 4
  • 24
  • 43
1
2 3 4