cobaUI
Class ListSent

java.lang.Object
  extended bycobaUI.ListSent

class ListSent
extends java.lang.Object

ListSent is a sentence wrapper. It consists of a reference to the underlying ISent sentence and its string representations in three view formats (default, cnf, dnf).

Author:
Daphne Liu, daphnel@sfu.ca

Field Summary
(package private)  java.lang.String cnf
          The cnf string representation of the underlying ISent.
(package private) static int CNF
          An int representing the cnf view format for sentences.
(package private)  java.lang.String def
          The default string representation of the underlying ISent.
(package private) static int DEFAULT
          An int representing the default view format for sentences.
(package private)  java.lang.String dnf
          The dnf string representation of the underlying ISent.
(package private) static int DNF
          An int representing the dnf view format for sentences.
(package private)  byte listNum
          A byte indicating the index of the enclosing list.
(package private)  ISent s
          A reference to the underlying ISent.
 
Constructor Summary
(package private) ListSent(ISent inputS, int index, javax.swing.JPanel _parent)
          Constructs a new ListSent for the enclosing list _parent.
(package private) ListSent(ISent inputS, java.lang.String defStr, int index, javax.swing.JPanel _parent)
          Constructs a new ListSent for the enclosing list _parent.
 
Method Summary
(package private)  void setParentList(javax.swing.JPanel _parent)
          Sets the enclosing list to _parent.
 java.lang.String toString()
          Returns the string representation of the underlying ISent in the view format selected in enclosing list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

static final int DEFAULT
An int representing the default view format for sentences.

See Also:
Constant Field Values

CNF

static final int CNF
An int representing the cnf view format for sentences.

See Also:
Constant Field Values

DNF

static final int DNF
An int representing the dnf view format for sentences.

See Also:
Constant Field Values

s

ISent s
A reference to the underlying ISent.


def

java.lang.String def
The default string representation of the underlying ISent.


cnf

java.lang.String cnf
The cnf string representation of the underlying ISent.


dnf

java.lang.String dnf
The dnf string representation of the underlying ISent.


listNum

byte listNum
A byte indicating the index of the enclosing list.

Constructor Detail

ListSent

ListSent(ISent inputS,
         int index,
         javax.swing.JPanel _parent)
Constructs a new ListSent for the enclosing list _parent.

Parameters:
inputS - a referece to the underlying ISent sentence.
index - an int indicating the index of the enclosing list _parent.
_parent - a reference to the enclosing list.

ListSent

ListSent(ISent inputS,
         java.lang.String defStr,
         int index,
         javax.swing.JPanel _parent)
Constructs a new ListSent for the enclosing list _parent.

Parameters:
inputS - a referece to the underlying ISent sentence.
defStr - a reference to the default string representation of inputS.
index - an int indicating the index of the enclosing list _parent.
_parent - a reference to the enclosing list.
Method Detail

setParentList

void setParentList(javax.swing.JPanel _parent)
Sets the enclosing list to _parent.

Parameters:
_parent - a reference to the enclosing list.

toString

public java.lang.String toString()
Returns the string representation of the underlying ISent in the view format selected in enclosing list.

Returns:
the selected string representation as specified for the enclosing list.