public static class InstanceDialog.Item extends Object implements Comparable<InstanceDialog.Item>
| Constructor and Description |
|---|
Item(Class<?> targetClass,
Object factory) |
Item(Class<?> targetClass,
Object factory,
String path,
String name,
String description)
Constructs an
Item. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(InstanceDialog.Item other) |
boolean |
equals(Object other) |
String |
getDescription() |
Object |
getFactory() |
String |
getName() |
String |
getPath() |
int |
hashCode() |
public Item(Class<?> targetClass, Object factory, String path, String name, String description)
Item.targetClass - Type of the target object the InstanceDialog is supposed to create.factory - Object that is used to create the target.path - Path to this item in the tree displayed by the dialog (slash-separated).name - Name of this item.description - Description of this item.IllegalArgumentException - if there is no valid way to construct an
instance of targetClass from factory.public String getName()
public String getPath()
public String getDescription()
public Object getFactory()
public int compareTo(InstanceDialog.Item other)
compareTo in interface Comparable<InstanceDialog.Item>Copyright © 2023 LSST. All rights reserved.