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

java.lang.Object
  extended by cz.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.6.0
Author:
Pavel DOMECKÝ

Field Summary
private  java.lang.String name
          The characteristic's name.
private  java.lang.Object value
          The characteristic's current value.
 
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
 

Field Detail

name

private java.lang.String name
The characteristic's name.


value

private java.lang.Object value
The characteristic's current value.

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.


Copyright © 2000-2006 University of West Bohemia. Licensed under the Academic Free License v. 2.1. Build date 20060812.