|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjv.object.PsObject
jv.rsrc.PsAuthorInfo
Information on one or more authors used throughout JavaView to tag resources files, licensee, creators of geometry objects etc.
| Field Summary | |
static int |
ADDRESS
Code to access mailing address of authors with topics separated by '\n'. |
static int |
EMAIL
Code to access email address of authors. |
static int |
FIRST_NAME
Code to access first name of authors. |
static int |
LAST_NAME
Code to access last name of authors. |
static int |
ORGANIZATION
Code to access organization of authors where they are employed. |
static int |
URL
Code to access url of home page of authors. |
| Fields inherited from class jv.object.PsObject |
HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS |
| Constructor Summary | |
PsAuthorInfo()
Information about authors with one array for each info topic. |
|
| Method Summary | |
java.lang.Object |
clone()
Duplicate object by recursively cloning all instance variables except inspector panels and lists of registered listeners. |
void |
copy(PsObject object)
Copy argument object into this object by recursively copying all instance variables. |
java.lang.String |
getInfo(int ind,
int code)
Get information of author with given index. |
int |
getMaxNumAuthors()
Get the allowable maximal number of authors. |
int |
getNumAuthors()
Get number of authors. |
java.lang.String |
getProfession()
Get the profession of a person, for example, the profession may be author, user, licensee. |
int |
getSelectedAuthor()
Get index of currently selected author. |
PsXmlNode |
getXmlNode()
Fills an XML subtree with data from this instance, for example, to print to file. |
void |
init()
If instance has missing name then assign default name 'Object_NUMBER' where number is the total number of already created instances. |
void |
setInfo(int ind,
int code,
java.lang.String name)
Set information of author with given index. |
void |
setMaxNumAuthors(int num)
Constrain the maximal number of authors. |
void |
setNumAuthors(int num)
Set number of authors and allocate space use get/set methods for accessing instance variables. |
void |
setProfession(java.lang.String profession)
Assign the profession of a person to appear as title in front of his personal information. |
void |
setSelectedAuthor(int ind)
Select currently active author. |
void |
setXmlNode(PsXmlNode node)
Fill this instance with data from an XML node, for example, previously read from file. |
java.lang.String |
toString()
Returns a string representation of all authors. |
| Methods inherited from class jv.object.PsObject |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, update, updatePanels |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int FIRST_NAME
public static final int LAST_NAME
public static final int ORGANIZATION
public static final int ADDRESS
public static final int EMAIL
public static final int URL
| Constructor Detail |
public PsAuthorInfo()
| Method Detail |
public void init()
PsObject
init in class PsObjectpublic java.lang.Object clone()
clone in class PsObjectPsObject.copy(PsObject)public void copy(PsObject object)
copy in class PsObjectPsObject.clone()public int getSelectedAuthor()
public void setSelectedAuthor(int ind)
public int getMaxNumAuthors()
public void setMaxNumAuthors(int num)
public int getNumAuthors()
public void setNumAuthors(int num)
public java.lang.String getProfession()
public void setProfession(java.lang.String profession)
profession - profession of a person
public java.lang.String getInfo(int ind,
int code)
public void setInfo(int ind,
int code,
java.lang.String name)
ind - must be in range [0,numAuthors-1].code - must be one of the code tags defined in PsAuthorInfo.name - new information given as string.public java.lang.String toString()
toString in class PsObjectpublic PsXmlNode getXmlNode()
public void setXmlNode(PsXmlNode node)
node - XML node of element type 'authors' used to fill this instance with data.
|
JavaView© v3.95.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||