xelem.3.0

nl.fountain.xelem.excel.ss
Class SSNamedRange

java.lang.Object
  extended by nl.fountain.xelem.excel.AbstractXLElement
      extended by nl.fountain.xelem.excel.ss.SSNamedRange
All Implemented Interfaces:
NamedRange, XLElement

public class SSNamedRange
extends AbstractXLElement
implements NamedRange

An implementation of the XLElement NamedRange.


Field Summary
 
Fields inherited from interface nl.fountain.xelem.excel.XLElement
PREFIX_HTML, PREFIX_O, PREFIX_SS, PREFIX_X, XMLNS, XMLNS_HTML, XMLNS_O, XMLNS_SS, XMLNS_X
 
Constructor Summary
SSNamedRange(String name, String refersTo)
          Creates a new SSNamedRange.
 
Method Summary
 Element assemble(Element parent, GIO gio)
          Assembles the state of this XLElement and all of it's children into an Element.
 String getName()
           
 String getNameSpace()
          Gets the namespace of this XLElement.
 String getPrefix()
          Gets the prefix of this XLElement.
 String getRefersTo()
           
 String getTagName()
          Gets the tagname (localName) of this XLElement.
 boolean isHidden()
           
 void setAttributes(Attributes attrs)
          Does effectively nothing.
 void setHidden(boolean hide)
          Sets whether this named range will be displayed in the drop-down box of the Excel application.
 
Methods inherited from class nl.fountain.xelem.excel.AbstractXLElement
addElementComment, assemble, createAttributeNS, createAttributeNS, createElementNS, createElementNS, createElementNS, createElementNS, getElementComments, setChildElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.fountain.xelem.excel.XLElement
addElementComment, getElementComments, setChildElement
 

Constructor Detail

SSNamedRange

public SSNamedRange(String name,
                    String refersTo)
Creates a new SSNamedRange.

See Also:
Workbook.addNamedRange(String, String)
Method Detail

getName

public String getName()
Specified by:
getName in interface NamedRange

getRefersTo

public String getRefersTo()
Specified by:
getRefersTo in interface NamedRange

setHidden

public void setHidden(boolean hide)
Description copied from interface: NamedRange
Sets whether this named range will be displayed in the drop-down box of the Excel application. The default is false: do not hide the name.

Specified by:
setHidden in interface NamedRange

isHidden

public boolean isHidden()
Specified by:
isHidden in interface NamedRange

getTagName

public String getTagName()
Description copied from interface: XLElement
Gets the tagname (localName) of this XLElement.

Specified by:
getTagName in interface XLElement
Returns:
qualified name

getNameSpace

public String getNameSpace()
Description copied from interface: XLElement
Gets the namespace of this XLElement.

Specified by:
getNameSpace in interface XLElement
Returns:
namespace

getPrefix

public String getPrefix()
Description copied from interface: XLElement
Gets the prefix of this XLElement.

Specified by:
getPrefix in interface XLElement
Returns:
prefix

assemble

public Element assemble(Element parent,
                        GIO gio)
Description copied from interface: XLElement
Assembles the state of this XLElement and all of it's children into an Element. Attaches the new element to it's parent-element if needed.

Specified by:
assemble in interface XLElement
Parameters:
parent - the parent-element to which the new formed element will be appended
gio - a global information object
Returns:
the newly assembled element. may be null.

setAttributes

public void setAttributes(Attributes attrs)
Description copied from class: AbstractXLElement
Does effectively nothing.

Specified by:
setAttributes in interface XLElement
Overrides:
setAttributes in class AbstractXLElement
Parameters:
attrs - the attributes found on the element

xelem.3.0