public final class PsLicense extends PsObject implements java.awt.event.ActionListener
HAS_BOUNDARY_PANEL, 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 and Description |
---|
PsLicense() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
java.util.Calendar |
getLicenseDate()
Get license expiration date.
|
java.lang.String |
getLicensee()
Get name of licensee.
|
static PsAuthorInfo |
getLicenseeInfo()
Get information about current licensee of JavaView.
|
java.lang.String |
getLicenseId()
Get license identification number.
|
java.lang.String |
getLicenseType()
Get license type.
|
PsXmlSrc |
getXml()
Fills an XML tree with data from this instance, for example, to print to file.
|
void |
init()
Initialize and reset license.
|
boolean |
read(java.lang.String licFile)
Read an XML file and create a tree structure of instances of type
PsXmlNode . |
void |
setXml(PsXmlSrc src)
Fill this instance with data from an XML source, for example, previously read from file.
|
void |
showInfoPanel()
Show dialog with info panel.
|
boolean |
update(java.lang.Object object)
Handle update events sent from children or update events.
|
boolean |
write(java.lang.String licFile)
Write an XML file and create a tree structure of instances of type
PsXmlNode . |
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, updatePanels
public boolean update(java.lang.Object object)
update
in interface PsUpdateIf
update
in class PsObject
object
- carries a lot of informationPsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
public static PsAuthorInfo getLicenseeInfo()
public final java.util.Calendar getLicenseDate()
public java.lang.String getLicenseId()
public java.lang.String getLicenseType()
public java.lang.String getLicensee()
public void showInfoPanel()
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public boolean read(java.lang.String licFile)
PsXmlNode
.licFile
- full name of license filetrue
if loading was successfulpublic boolean write(java.lang.String licFile)
PsXmlNode
.licFile
- full name of license filetrue
if loading was successfulpublic PsXmlSrc getXml()
public void setXml(PsXmlSrc src)
src
- XML source used to fill this instance with data."