Class pmr.cml.XHTMLNode
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pmr.cml.XHTMLNode

java.lang.Object
   |
   +----pmr.sgml.SGMLNode
           |
           +----pmr.sgml.DrawableSGMLNode
                   |
                   +----pmr.cml.DrawableX_Node
                           |
                           +----pmr.cml.XHTMLNode

public class XHTMLNode
extends DrawableX_Node
encapsulates an HTML (or similar) hypertext subtree. Experimental!
Author:
Copyright P. Murray-Rust, 1966

Variable Index

 o BOLD
 o ITALIC
 o NULL
flags for markup
 o SUP

Constructor Index

 o XHTMLNode(String, SGMLTree)

Method Index

 o display(Graphics)
called from the display() routine of DrawableX_Node
 o getColor()
this hardcoding is temporary ...
 o getContent(String)
get content as a string - no guarantees about its structure as HTML; This is just to fulfil the simplest applications.
 o getTitle()
get title from SECTION attribute if possible, else default
 o mayContain(SGMLNode)
can this node contain others.
 o process()
complex objects may require processing; override this.
 o setContent(String)
add content as a string - no guarantees about its structure as HTML; This is just to fulfil the simplest applications.
 o setMarkup(String, String)
set new markup (e.g.
 o setMultipleDisplay(boolean)
 o setReferredNode(SGMLNode)
create this as a copy of an SGMLNode elsewhere whose children are HTML nodes (e.g.
 o showHelp()
display Help

Variables

 o NULL
  public final static String NULL
flags for markup
 o ITALIC
  public final static String ITALIC
 o BOLD
  public final static String BOLD
 o SUP
  public final static String SUP

Constructors

 o XHTMLNode
  public XHTMLNode(String giName,
                   SGMLTree tree)

Methods

 o setReferredNode
  public void setReferredNode(SGMLNode node)
create this as a copy of an SGMLNode elsewhere whose children are HTML nodes (e.g. P, BODY, etc.) This is a very shallowCopy (i.e. only the node reference is used). deactivated by using an argument of null
 o setMarkup
  public static void setMarkup(String giName,
                               String style)
set new markup (e.g. if "IT" is to be used for italic,
         setMarkup("IT", "ITALIC");
The currently supported actions are "ITALIC", "BOLD", "SUP"
 o getTitle
  public String getTitle()
get title from SECTION attribute if possible, else default
Overrides:
getTitle in class DrawableX_Node
 o getColor
  public Color getColor()
this hardcoding is temporary ...
Overrides:
getColor in class SGMLNode
 o setContent
  public void setContent(String s)
add content as a string - no guarantees about its structure as HTML; This is just to fulfil the simplest applications.
Overrides:
setContent in class SGMLNode
 o getContent
  public String getContent(String s)
get content as a string - no guarantees about its structure as HTML; This is just to fulfil the simplest applications.
 o showHelp
  public void showHelp()
display Help
Overrides:
showHelp in class DrawableX_Node
 o mayContain
  public boolean mayContain(SGMLNode n)
can this node contain others.
Overrides:
mayContain in class DrawableX_Node
 o process
  public void process()
complex objects may require processing; override this.
Overrides:
process in class DrawableSGMLNode
 o display
  public void display(Graphics g)
called from the display() routine of DrawableX_Node
Overrides:
display in class DrawableX_Node
 o setMultipleDisplay
  public void setMultipleDisplay(boolean m)

All Packages  Class Hierarchy  This Package  Previous  Next  Index