Code example for Hashtable

Methods: get, put

0
        PageType="PageType",
        NoTitle="No Title"
        ; 
 
    /* ----------------------------------------------------------------- */ 
    protected Hashtable properties = new Hashtable(10);
 
    /* ----------------------------------------------------------------- */ 
    Hashtable sections = new Hashtable(10);
    private Composite head= new Composite();
    private String base="";
    private boolean writtenHtmlHead = false;
    private boolean writtenBodyTag = false;
 
    /* ----------------------------------------------------------------- */ 
    public Page() 
    { 
        this(NoTitle);
    } 
 
    /* ----------------------------------------------------------------- */ 
    public Page(String title)
    { 
        title(title);
    } 
 
    /* ----------------------------------------------------------------- */ 
    public Page(String title, String attributes)
    { 
        title(title);
        attribute(attributes);
    } 
 
    /* ----------------------------------------------------------------- */ 
    /** Set page title. 
     * @return This Page (for chained commands) 
     */ 
    public Page title(String title)
    { 
        properties.put(Title,title);
        String heading = (String)properties.get(Heading);
        if (heading==null||heading.equals(NoTitle))
            properties.put(Heading,title);
        return this;
    } 
 
    /* ----------------------------------------------------------------- */ 
    /** Add element or object to the page header.