Class CTSelection

java.lang.Object
org.xlsx4j.sml.CTSelection
All Implemented Interfaces:
Child

public class CTSelection extends Object implements Child

Java class for CT_Selection complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="CT_Selection">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="pane" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Pane" default="topLeft" />
       <attribute name="activeCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
       <attribute name="activeCellId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
       <attribute name="sqref" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" default="A1" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

    • pane

      protected STPane pane
    • activeCell

      protected String activeCell
    • activeCellId

      protected Long activeCellId
    • sqref

      protected List<String> sqref
  • Constructor Details

    • CTSelection

      public CTSelection()
  • Method Details

    • getPane

      public STPane getPane()
      Gets the value of the pane property.
      Returns:
      possible object is STPane
    • setPane

      public void setPane(STPane value)
      Sets the value of the pane property.
      Parameters:
      value - allowed object is STPane
    • getActiveCell

      public String getActiveCell()
      Gets the value of the activeCell property.
      Returns:
      possible object is String
    • setActiveCell

      public void setActiveCell(String value)
      Sets the value of the activeCell property.
      Parameters:
      value - allowed object is String
    • getActiveCellId

      public long getActiveCellId()
      Gets the value of the activeCellId property.
      Returns:
      possible object is Long
    • setActiveCellId

      public void setActiveCellId(Long value)
      Sets the value of the activeCellId property.
      Parameters:
      value - allowed object is Long
    • getSqref

      public List<String> getSqref()
      Gets the value of the sqref property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the sqref property.

      For example, to add a new item, do as follows:

          getSqref().add(newItem);
       

      Objects of the following type(s) are allowed in the list String

    • getParent

      public Object getParent()
      Gets the parent object in the object tree representing the unmarshalled xml document.
      Specified by:
      getParent in interface Child
      Returns:
      The parent object.
    • setParent

      public void setParent(Object parent)
      Specified by:
      setParent in interface Child
    • afterUnmarshal

      public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, Object parent)
      This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
      Parameters:
      parent - The parent object in the object tree.
      unmarshaller - The unmarshaller that generated the instance.