com.atomikos.vendor
Class NodeLicensePanel

java.lang.Object
  extended by com.atomikos.vendor.NodeLicensePanel
All Implemented Interfaces:
PropertyListener

public class NodeLicensePanel
extends Object
implements PropertyListener

Copyright © 2003 Guy Pardon, Atomikos. All rights reserved.

Author:
guy A custom panel for node-locked licenses.

Constructor Summary
NodeLicensePanel(String[] products, ResourceBundle resources, int expiryInMonths)
           
 
Method Summary
 void deleteProperty(PropertiesTableModel table, int index)
          Notification that the delete button was pressed, and thus the indicated property should be deleted from the table.
 void editProperty(PropertiesTableModel table, int index)
          Notification that the edit button was pressed, and the user thus wishes to edit the currently selected property in the given table.
protected  long getExpiryDate()
           
protected  long getExpiryDate(int months)
           
protected  Properties getFeatures()
           
protected  JPanel getJPanel()
           
protected  String getOwner()
           
protected  String getProductName()
           
protected  String getResource(String name)
           
protected  String getSecretKey()
           
 void newProperty(PropertiesTableModel table)
          Notification that the new button was pressed, and the user thus wishes to insert a new property in the given table.
protected  void saveToFile(String file)
          This method is called when the user confirms that the license should be saved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeLicensePanel

public NodeLicensePanel(String[] products,
                        ResourceBundle resources,
                        int expiryInMonths)
Parameters:
resources -
Method Detail

getJPanel

protected JPanel getJPanel()

saveToFile

protected void saveToFile(String file)
                   throws IOException
This method is called when the user confirms that the license should be saved.

Parameters:
file - The file where the license should go.
Throws:
IOException - On IO errors.

newProperty

public void newProperty(PropertiesTableModel table)
Description copied from interface: PropertyListener
Notification that the new button was pressed, and the user thus wishes to insert a new property in the given table.

Specified by:
newProperty in interface PropertyListener
Parameters:
table - The table model.

editProperty

public void editProperty(PropertiesTableModel table,
                         int index)
Description copied from interface: PropertyListener
Notification that the edit button was pressed, and the user thus wishes to edit the currently selected property in the given table.

Specified by:
editProperty in interface PropertyListener
Parameters:
table - The table model.
index - Indicates which row to edit.

deleteProperty

public void deleteProperty(PropertiesTableModel table,
                           int index)
Description copied from interface: PropertyListener
Notification that the delete button was pressed, and thus the indicated property should be deleted from the table.

Specified by:
deleteProperty in interface PropertyListener
Parameters:
table - The table model.
index - The index of the row to delete.

getResource

protected String getResource(String name)

getProductName

protected String getProductName()

getSecretKey

protected String getSecretKey()

getExpiryDate

protected long getExpiryDate(int months)

getOwner

protected String getOwner()

getExpiryDate

protected long getExpiryDate()

getFeatures

protected Properties getFeatures()


Copyright © 2012. All Rights Reserved.