public class ObjectInspector extends Object
Constructor and Description |
---|
ObjectInspector()
Constructs a new object inspector.
|
ObjectInspector(Object object)
Constructs a new ObjectInspector that is visible and initially inspects a
given object.
|
Modifier and Type | Method and Description |
---|---|
void |
inspect(Object object)
Adds a new object for inspection into the object inspector.
|
void |
inspect(Object object,
Class<?> stopClass)
Adds a new object for inspection into the object inspector.
|
void |
inspect(Object object,
Class<?> stopClass,
String alias)
Adds a new object for inspection into the object inspector.
|
void |
inspect(Object object,
String alias)
Adds a new object for inspection into the object inspector.
|
boolean |
isVisible()
Gets the visibility of the Object Inspector window.
|
void |
remove(Object object)
Removes the object from inspection of the object inspector.
|
void |
setVisible(boolean visible)
Sets the visibility of the Object Inspector window.
|
public ObjectInspector()
public ObjectInspector(Object object)
object
- the inspected objectpublic void inspect(Object object, Class<?> stopClass, String alias)
object
- the inspected objectstopClass
- the stop class for inspection. The stop class is a super of
the object's class. All properties and methods defined in this
class and its super classes will not be displayed in the
object inspector.alias
- the alias name for the object. Alias is displayed in the
ComboBox for choosing the currently inspected object.public void inspect(Object object)
object
- the inspected object.public void inspect(Object object, Class<?> stopClass)
object
- the inspected object.stopClass
- the stop class for inspection. The stop class is a super of
the object's class. All properties and methods defined in this
class and its super classes will not be displayed in the
object inspector.public void inspect(Object object, String alias)
object
- the inspected object.alias
- the alias name for the object. Alias is displayed in the
ComboBox for choosing the currently inspected object.public void remove(Object object)
object
- the desired objectpublic void setVisible(boolean visible)
visible
- if true, shows Object Inspector; otherwise, hides it.public boolean isVisible()
Copyright © 2017. All rights reserved.