Class Item

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--Item
All Implemented Interfaces:
ItemInterface, java.rmi.Remote, java.io.Serializable

public class Item
extends java.rmi.server.UnicastRemoteObject
implements ItemInterface

Items are files of eighter text/plain or images(gif, jgp).

See Also:
Serialized Form

Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
Item()
          Default constructor of an Item.
Item(javax.swing.ImageIcon image, java.lang.String explanation)
          Constructor of an Item with a image.
Item(java.lang.String text, java.lang.String explanation)
          Constructor of an Item with a text String.
 
Method Summary
 java.lang.String getExplanation()
          Returns an explanation.
 void View()
          Shows the content of the Item in a new Frame.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Item

public Item()
     throws java.rmi.RemoteException
Default constructor of an Item.

Item

public Item(java.lang.String text,
            java.lang.String explanation)
     throws java.rmi.RemoteException
Constructor of an Item with a text String.
Parameters:
text - the String in the item.

Item

public Item(javax.swing.ImageIcon image,
            java.lang.String explanation)
     throws java.rmi.RemoteException
Constructor of an Item with a image.
Parameters:
image - the image in the item.
Method Detail

getExplanation

public java.lang.String getExplanation()
Returns an explanation.
Specified by:
getExplanation in interface ItemInterface

View

public void View()
Shows the content of the Item in a new Frame.
Specified by:
View in interface ItemInterface