HyperView2.959 bannerDocumentation
Java.lang.Object
|
Linkable.class

 



Public class Linkable
The purpose of a Linkabke Object is to provide a Link in a HyperLinkedList It is utilized by extending it.

ie:
public class MyClass extends Linkable
{
   // Put whatever references you want
}
Or you could opt to just set the attachment Object;
ie:
Object myReferencesObject = new Object();  // Or whatever object you want to reference

Linkable myLinkable = new Linkable;
myLinkable.attachment =
myReferencesObject;  // Set the reference in the Linkable
                                                                       //

Public class variables
Object attachment       // 
String name
HyperLinkedList parentList // The list this is a member of
volatile Linkable prev; // previous linkable
volatile Linkable next; // next Linkable
volatile long linkNumber; // index in list

Constructors


Linkable();

Instantiate default Linkable.class






Linkable(Object);

Create default Linkable() set attachment to Object
Methods




setName(String)

Set this link name to String. You could also set the reference directly
ie:
Linkable.name = "Some string";



Back