Package org.dbwiki.data.annotation

Examples of org.dbwiki.data.annotation.AnnotationList


import org.dbwiki.driver.rdbms.RDBMSDatabaseTextNode;

public class ResultAttributeNode extends DatabaseAttributeNode {
  public ResultAttributeNode(AttributeSchemaNode entity, TimeSequence timestamp) {
    // FIXME: Pre/post numbers for result attribute nodes are nonsense and should never be used
    super(entity, null, timestamp, new AnnotationList(),-1,-1);
  }
View Full Code Here


import org.dbwiki.data.time.TimeSequence;

public class ResultGroupNode extends DatabaseGroupNode {
  public ResultGroupNode(GroupSchemaNode entity, TimeSequence timestamp) {
    //FIXME: Pre/post numbers for result nodes are nonsense and should never be used!
    super(entity, null, timestamp, new AnnotationList(),-1,-1);
  }
View Full Code Here

   
    _identifier = new NodeIdentifier(id);
  }

  public RDBMSDatabaseAttributeNode(int id, AttributeSchemaNode schema, DatabaseGroupNode parent, TimeSequence timestamp, int pre, int post) {
    this(id, schema, parent, timestamp, new AnnotationList(), pre, post);
  }
View Full Code Here

   
    this.value().add(new RDBMSDatabaseTextNode(DatabaseConstants.RelDataColIDValUnknown, this, null, value, pre, post));
  }

  public RDBMSDatabaseAttributeNode(int id, AttributeSchemaNode schema, DatabaseGroupNode parent, int pre, int post) {
    this(id, schema, parent, null, new AnnotationList(), pre, post);
  }
View Full Code Here

  public RDBMSDatabaseAttributeNode(int id, AttributeSchemaNode schema, DatabaseGroupNode parent, int pre, int post) {
    this(id, schema, parent, null, new AnnotationList(), pre, post);
  }
 
  public RDBMSDatabaseAttributeNode(int id, AttributeSchemaNode schema, DatabaseGroupNode parent) {
    this(id, schema, parent, null, new AnnotationList(), -1, -1);
  }
View Full Code Here

   
    _identifier = new NodeIdentifier(id);
  }

  public RDBMSDatabaseGroupNode(int id, GroupSchemaNode schema, DatabaseGroupNode parent, TimeSequence timestamp, int pre, int post) {
    this(id, schema, parent, timestamp, new AnnotationList(), pre, post);
  }
View Full Code Here

   
    _identifier = new NodeIdentifier(id);
  }

  public RDBMSDatabaseTextNode(int id, DatabaseAttributeNode parent, TimeSequence timestamp, String value, int pre, int post) {
    this(id, parent, timestamp, value, new AnnotationList(), pre, post);
  }
View Full Code Here

  /*
   * Public Methods
   */
 
  public void print(HtmlLinePrinter body) throws org.dbwiki.exception.WikiException {
    AnnotationList annotations = _request.node().annotation();
   
    if (annotations.size() > 0) {
      body.openTABLE(CSS.CSSAnnotationListing);
      body.openTR();
      body.openTH(CSS.CSSAnnotationListing);
      body.text("Comment");
      body.closeTH();
      body.openTH(CSS.CSSAnnotationListing);
      body.text("User");
      body.closeTH();
      body.openTH(CSS.CSSAnnotationListing);
      body.text("Date");
      body.closeTH();
      body.closeTR();
      for (int iAnnotation = 0; iAnnotation < annotations.size(); iAnnotation++) {
        body.openTR();
        String css = null;
        if ((iAnnotation % 2) == 0) {
          css = CSS.CSSAnnotationRowEven;
        } else {
          css = CSS.CSSAnnotationRowOdd;
        }
        body.openTD(css);
        body.add(annotations.get(iAnnotation).text());
        body.closeTD();
        body.openTD(css);
        if (annotations.get(iAnnotation).user() != null) {
          body.add(annotations.get(iAnnotation).user().fullName());
        } else {
          body.add(User.UnknownUserName);
        }
        body.closeTD();
        body.openTD(css);
        body.add(annotations.get(iAnnotation).date());
        body.closeTD();
        body.closeTR();
      }
      body.closeTABLE();
    } else {
View Full Code Here

TOP

Related Classes of org.dbwiki.data.annotation.AnnotationList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.