Oracle® WebCenter Interaction Development Kit 10.3.3.0.0

ISciElement Interface

Root interface for all

SciElement
s. This includes SciCheckboxElement, SciPasswordElement, SciRadioElement, SciSelectElement and SciTreeElement. Developers wanting to add other elements to an SCI page should implement this interface and set the xmlns attribute on the root xml node to "http://www.w3.org/1999/xhtml"

For a list of all members of this type, see ISciElement Members.

public interface ISciElement

Types that implement ISciElement

Type Description
SciCheckboxElement Represents a checkbox control.
SciHiddenElement Represents a hidden field (equivalent to type=hidden in HTML).
SciLabelElement Represents a label control.
SciPasswordElement Represents a password control with confirmation box.
SciRadioElement Represents a radio element.
SciSelectElement Represents a select (drop-down) control.
SciTextElement Represents a textbox with a label and validation.
SciTreeElement Represents an element that displays a tree view of directories (for example, a file system or database).

Example

 //nested class implementing ISciElement
 class LinkElement implements ISciElement
 {
  private XmlDocument m_doc;
 public Node GetRootNode()
 {
 return m_doc.DocumentElement;
 }
 public LinkElement()
 {
   m_doc = new XmlDocument();
 //make an anchor element
 XmlElement link = m_doc.CreateElement("a");
 //set the correct namespace so the portal will treat it as raw html
 link.SetAttribute("xmlns","http://www.w3.org/1999/xhtml");
 //set the href
 link.SetAttribute("href", "http://www.google.com");
 //create a text node for the link text
 XmlNode textNode = m_doc.CreateTextNode("google");
 link.AppendChild(textNode);
 m_doc.AppendChild(link);
 }
 }
 // use this in getPageContent:
 public String GetContent(int pageNumber, NamedValueMap pageInfo) throws ServiceException
 {
 SciPage page = new SciPage();
 ISciElement linkElement = new LinkElement();
 page.Add(linkElement);
 return page.ToString();
 }

Requirements

Namespace: Plumtree.Remote.Sci

Assembly: idk (in idk.dll)

See Also

ISciElement Members | Plumtree.Remote.Sci Namespace