fi.hut.tml.xsmiles.mlfc.xforms.ui
Class CSSMessageImpl

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.ui.CSSMessageImpl
All Implemented Interfaces:
PseudoElementContainerService

public class CSSMessageImpl
extends java.lang.Object
implements PseudoElementContainerService

Author:
honkkis This class implements the element so that the CSS renderer is used to display the message It can only be used when the host document is rendered by CSS # if ref node exists || src Create pseudoElement: o ContentPseudoElement + if ref # Place a new output element with ref="." there + if src # Place the content of the file in there + ?? If src is HTML/XML document, should we launch a new browser window with that content? Copy possible original content to memory and remove from DOM # if ref node does not exist Copy possible original content back to DOM # Create a pseudoElement with a button "Close" when clicked, it will turn the pseudoclass off

Field Summary
protected  java.lang.Thread closeThread
           
protected static long EPHEMERAL_TIME
           
protected  MessageElement messageElem
           
 java.lang.String PSEUDOCLASS_PARENTSHOW
           
 java.lang.String PSEUDOCLASS_SHOW
           
 
Constructor Summary
CSSMessageImpl()
           
 
Method Summary
 void closeWindow()
           
protected  void closeWindow(long msecs)
           
protected  void createContentPseudo()
           
 MessageContentPseudoElement getContentPseudo()
           
protected  PopupHandler getPopupHandler()
           
 java.util.Vector getPseudoElements()
          get the vector containing all pseudoelements of this element.
 void notifyPseudoRemoved(org.w3c.dom.Element elem)
          since the pseudoelement removals are not catched by the xsmilesvisualelement, this method can be used to notify a remove
 void setMessage(MessageElement message)
           
 void show()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageElem

protected MessageElement messageElem

PSEUDOCLASS_SHOW

public final java.lang.String PSEUDOCLASS_SHOW
See Also:
Constant Field Values

PSEUDOCLASS_PARENTSHOW

public final java.lang.String PSEUDOCLASS_PARENTSHOW
See Also:
Constant Field Values

EPHEMERAL_TIME

protected static final long EPHEMERAL_TIME
See Also:
Constant Field Values

closeThread

protected java.lang.Thread closeThread
Constructor Detail

CSSMessageImpl

public CSSMessageImpl()
Method Detail

setMessage

public void setMessage(MessageElement message)

getContentPseudo

public MessageContentPseudoElement getContentPseudo()

closeWindow

public void closeWindow()

show

public void show()

getPopupHandler

protected PopupHandler getPopupHandler()

closeWindow

protected void closeWindow(long msecs)

createContentPseudo

protected void createContentPseudo()

getPseudoElements

public java.util.Vector getPseudoElements()
Description copied from interface: PseudoElementContainerService
get the vector containing all pseudoelements of this element. null or empty vector means that there are no pseudoelements

Specified by:
getPseudoElements in interface PseudoElementContainerService

notifyPseudoRemoved

public void notifyPseudoRemoved(org.w3c.dom.Element elem)
Description copied from interface: PseudoElementContainerService
since the pseudoelement removals are not catched by the xsmilesvisualelement, this method can be used to notify a remove

Specified by:
notifyPseudoRemoved in interface PseudoElementContainerService
Parameters:
elem -


X-Smiles 1.2