cz.zcu.fav.kiv.jsim.gui
Class JSimPair

java.lang.Object
  extended bycz.zcu.fav.kiv.jsim.gui.JSimPair

public class JSimPair
extends java.lang.Object

The JSimPair holds information about two objects -- a name and a value. Use this class if you want to add a new new pair to the detailed info window of your class implementing JSimDisplayable.

Since:
J-Sim version 0.2.0
Version:
J-Sim version 0.3.0
Author:
Pavel DOMECKÝ

Constructor Summary
JSimPair(java.lang.String name, java.lang.Object value)
          Creates a new JSimPair object, holding information about the name and the value of an object's characteristics.
 
Method Summary
 java.lang.String getName()
          Returns the characteristic's name.
 java.lang.Object getValue()
          Returns the characteristic's value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSimPair

public JSimPair(java.lang.String name,
                java.lang.Object value)
Creates a new JSimPair object, holding information about the name and the value of an object's characteristics.

Parameters:
name - The characteristic's name.
value - The characteristic's value.
Method Detail

getName

public java.lang.String getName()
Returns the characteristic's name.

Returns:
The characteristic's name.

getValue

public java.lang.Object getValue()
Returns the characteristic's value.

Returns:
The characteristic's value.