|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.cs.ai.kreator.control.config.ConfigurationObject
public abstract class ConfigurationObject
This abstract class is the common ancestor for configuration category and configuration option and comprises of common methods and attributes.
| Field Summary | |
|---|---|
static int |
IS_EDITABLE
Static constant for a configuration object to be editable. |
static int |
IS_INVISIBLE
Static constant for a configuration object to be invisible. |
static int |
IS_NOT_EDITABLE
Static constant for a configuration object to be not editable. |
static int |
IS_VISIBLE
Static constant for a configuration object to be visible. |
static java.lang.String |
PATHCAPTION_DELIMITER
The delimiter used for path captions. |
static java.lang.String |
PATHID_DELIMITER
The delimiter used for path ids. |
| Constructor Summary | |
|---|---|
protected |
ConfigurationObject()
Standard constructor for compatibility. |
|
ConfigurationObject(java.lang.String id,
java.lang.String caption,
java.lang.String description)
Creates a new configuration object with the given caption and id, that is both visible and editable and has no parent. |
|
ConfigurationObject(java.lang.String id,
java.lang.String caption,
java.lang.String description,
int visible,
int editable)
Creates a new configuration object with the given id, caption, the given visibility, the given editibility, and no parent. |
| Method Summary | |
|---|---|
java.lang.String |
getCaption()
Returns the caption of this configuration object. |
java.lang.String |
getDescription()
Returns the description of this configuration object. |
java.lang.String |
getId()
Returns the id of this configuration object. |
ConfigurationCategory |
getParent()
Returns the parent of this configuration object. |
java.lang.String |
getPathCaption()
Returns the full quantified path caption of this configuration object, e.g., it returns "Cat 1 -> Cat 2 -> Cat 3" if this configuration object is "Cat 1", its parent is "Cat 2", "Cat 2"'s parent is "Cat 1", and "Cat 1" has no parent. |
java.lang.String |
getPathId()
Returns the full quantified path id of this configuration object, e.g., it returns "A.B.C" if this configuration object is "C", its parent is "B", "B"'s parent is "A", and "A" has no parent. |
boolean |
hasParent()
Checks whether this configuration object has a parent. |
boolean |
isEditable()
Checks whether this configuration object is editable. |
boolean |
isVisible()
Checks whether this configuration object is visible. |
protected void |
setParent(ConfigurationCategory parent)
Sets the parent configuration category of this configuration object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int IS_VISIBLE
public static final int IS_INVISIBLE
public static final int IS_EDITABLE
public static final int IS_NOT_EDITABLE
public static final java.lang.String PATHID_DELIMITER
public static final java.lang.String PATHCAPTION_DELIMITER
| Constructor Detail |
|---|
protected ConfigurationObject()
public ConfigurationObject(java.lang.String id,
java.lang.String caption,
java.lang.String description)
id - The id of this configuration object.description - The description of this configuration object.caption - The caption of this configuration object
public ConfigurationObject(java.lang.String id,
java.lang.String caption,
java.lang.String description,
int visible,
int editable)
id - The id of this configuration object.caption - The caption of this configuration object.description - The description of this configuration object.visible - whether this configuration object is visible (one of ConfigurationObject.IS_VISIBLE, ConfigurationObject.IS_INVISIBLE).editable - whether this configuration object is editable (one of ConfigurationObject.IS_EDITABLE, ConfigurationObject.IS_NOT_EDITABLE).| Method Detail |
|---|
protected void setParent(ConfigurationCategory parent)
parent - a configuration category.public java.lang.String getPathId()
public java.lang.String getPathCaption()
public java.lang.String getId()
public java.lang.String getCaption()
public java.lang.String getDescription()
public ConfigurationCategory getParent()
public boolean isVisible()
public boolean isEditable()
public boolean hasParent()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||