Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright 2010-2013, Plutext Pty Ltd.
   *   
   *  This file is part of xlsx4j, a component of docx4j.
  
      docx4j is licensed under the Apache License, Version 2.0 (the "License"); 
      you may not use this file except in compliance with the License. 
  
      You may obtain a copy of the License at 
 
         http://www.apache.org/licenses/LICENSE-2.0 
 
     Unless required by applicable law or agreed to in writing, software 
     distributed under the License is distributed on an "AS IS" BASIS, 
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     See the License for the specific language governing permissions and 
     limitations under the License.
 
  */
 package org.xlsx4j.sml;
 
 import java.util.List;

Java class for CT_SheetView complex type.

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

 <complexType name="CT_SheetView">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="pane" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Pane" minOccurs="0"/>
         <element name="selection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Selection" maxOccurs="4" minOccurs="0"/>
         <element name="pivotSelection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotSelection" maxOccurs="4" minOccurs="0"/>
         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
       </sequence>
       <attribute name="windowProtection" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="showFormulas" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="showGridLines" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="showRowColHeaders" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="showZeros" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="rightToLeft" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="tabSelected" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="showRuler" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="showOutlineSymbols" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="defaultGridColor" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="showWhiteSpace" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="view" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_SheetViewType" default="normal" />
       <attribute name="topLeftCell" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
       <attribute name="colorId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="64" />
       <attribute name="zoomScale" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="100" />
       <attribute name="zoomScaleNormal" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
       <attribute name="zoomScaleSheetLayoutView" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
       <attribute name="zoomScalePageLayoutView" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
       <attribute name="workbookViewId" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_SheetView", propOrder = {
     "pane",
     "selection",
     "pivotSelection",
     "extLst"
 })
 @XmlRootElement(name = "sheetView")
 public class SheetView implements Child
 {
 
     protected CTPane pane;
     protected List<CTSelectionselection;
     protected List<CTPivotSelectionpivotSelection;
     protected CTExtensionList extLst;
     @XmlAttribute(name = "windowProtection")
     protected Boolean windowProtection;
     @XmlAttribute(name = "showFormulas")
     protected Boolean showFormulas;
     @XmlAttribute(name = "showGridLines")
     protected Boolean showGridLines;
     @XmlAttribute(name = "showRowColHeaders")
     protected Boolean showRowColHeaders;
     @XmlAttribute(name = "showZeros")
    protected Boolean showZeros;
    @XmlAttribute(name = "rightToLeft")
    protected Boolean rightToLeft;
    @XmlAttribute(name = "tabSelected")
    protected Boolean tabSelected;
    @XmlAttribute(name = "showRuler")
    protected Boolean showRuler;
    @XmlAttribute(name = "showOutlineSymbols")
    protected Boolean showOutlineSymbols;
    @XmlAttribute(name = "defaultGridColor")
    protected Boolean defaultGridColor;
    @XmlAttribute(name = "showWhiteSpace")
    protected Boolean showWhiteSpace;
    @XmlAttribute(name = "view")
    protected STSheetViewType view;
    @XmlAttribute(name = "topLeftCell")
    protected String topLeftCell;
    @XmlAttribute(name = "colorId")
    @XmlSchemaType(name = "unsignedInt")
    protected Long colorId;
    @XmlAttribute(name = "zoomScale")
    @XmlSchemaType(name = "unsignedInt")
    protected Long zoomScale;
    @XmlAttribute(name = "zoomScaleNormal")
    @XmlSchemaType(name = "unsignedInt")
    protected Long zoomScaleNormal;
    @XmlAttribute(name = "zoomScaleSheetLayoutView")
    @XmlSchemaType(name = "unsignedInt")
    protected Long zoomScaleSheetLayoutView;
    @XmlAttribute(name = "zoomScalePageLayoutView")
    @XmlSchemaType(name = "unsignedInt")
    protected Long zoomScalePageLayoutView;
    @XmlAttribute(name = "workbookViewId", required = true)
    @XmlSchemaType(name = "unsignedInt")
    protected long workbookViewId;
    private Object parent;

    
Gets the value of the pane property.

Returns:
possible object is
    public CTPane getPane() {
        return ;
    }

    
Sets the value of the pane property.

Parameters:
value allowed object is
    public void setPane(CTPane value) {
        this. = value;
    }

    
Gets the value of the selection 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 selection property.

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

    getSelection().add(newItem);
 

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

    public List<CTSelectiongetSelection() {
        if ( == null) {
             = new ArrayList<CTSelection>();
        }
        return this.;
    }

    
Gets the value of the pivotSelection 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 pivotSelection property.

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

    getPivotSelection().add(newItem);
 

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

        if ( == null) {
             = new ArrayList<CTPivotSelection>();
        }
        return this.;
    }

    
Gets the value of the extLst property.

Returns:
possible object is
    public CTExtensionList getExtLst() {
        return ;
    }

    
Sets the value of the extLst property.

Parameters:
value allowed object is
    public void setExtLst(CTExtensionList value) {
        this. = value;
    }

    
Gets the value of the windowProtection property.

Returns:
possible object is
    public boolean isWindowProtection() {
        if ( == null) {
            return false;
        } else {
            return ;
        }
    }

    
Sets the value of the windowProtection property.

Parameters:
value allowed object is
    public void setWindowProtection(Boolean value) {
        this. = value;
    }

    
Gets the value of the showFormulas property.

Returns:
possible object is
    public boolean isShowFormulas() {
        if ( == null) {
            return false;
        } else {
            return ;
        }
    }

    
Sets the value of the showFormulas property.

Parameters:
value allowed object is
    public void setShowFormulas(Boolean value) {
        this. = value;
    }

    
Gets the value of the showGridLines property.

Returns:
possible object is
    public boolean isShowGridLines() {
        if ( == null) {
            return true;
        } else {
            return ;
        }
    }

    
Sets the value of the showGridLines property.

Parameters:
value allowed object is
    public void setShowGridLines(Boolean value) {
        this. = value;
    }

    
Gets the value of the showRowColHeaders property.

Returns:
possible object is
    public boolean isShowRowColHeaders() {
        if ( == null) {
            return true;
        } else {
            return ;
        }
    }

    
Sets the value of the showRowColHeaders property.

Parameters:
value allowed object is
    public void setShowRowColHeaders(Boolean value) {
        this. = value;
    }

    
Gets the value of the showZeros property.

Returns:
possible object is
    public boolean isShowZeros() {
        if ( == null) {
            return true;
        } else {
            return ;
        }
    }

    
Sets the value of the showZeros property.

Parameters:
value allowed object is
    public void setShowZeros(Boolean value) {
        this. = value;
    }

    
Gets the value of the rightToLeft property.

Returns:
possible object is
    public boolean isRightToLeft() {
        if ( == null) {
            return false;
        } else {
            return ;
        }
    }

    
Sets the value of the rightToLeft property.

Parameters:
value allowed object is
    public void setRightToLeft(Boolean value) {
        this. = value;
    }

    
Gets the value of the tabSelected property.

Returns:
possible object is
    public boolean isTabSelected() {
        if ( == null) {
            return false;
        } else {
            return ;
        }
    }

    
Sets the value of the tabSelected property.

Parameters:
value allowed object is
    public void setTabSelected(Boolean value) {
        this. = value;
    }

    
Gets the value of the showRuler property.

Returns:
possible object is
    public boolean isShowRuler() {
        if ( == null) {
            return true;
        } else {
            return ;
        }
    }

    
Sets the value of the showRuler property.

Parameters:
value allowed object is
    public void setShowRuler(Boolean value) {
        this. = value;
    }

    
Gets the value of the showOutlineSymbols property.

Returns:
possible object is
    public boolean isShowOutlineSymbols() {
        if ( == null) {
            return true;
        } else {
            return ;
        }
    }

    
Sets the value of the showOutlineSymbols property.

Parameters:
value allowed object is
    public void setShowOutlineSymbols(Boolean value) {
        this. = value;
    }

    
Gets the value of the defaultGridColor property.

Returns:
possible object is
    public boolean isDefaultGridColor() {
        if ( == null) {
            return true;
        } else {
            return ;
        }
    }

    
Sets the value of the defaultGridColor property.

Parameters:
value allowed object is
    public void setDefaultGridColor(Boolean value) {
        this. = value;
    }

    
Gets the value of the showWhiteSpace property.

Returns:
possible object is
    public boolean isShowWhiteSpace() {
        if ( == null) {
            return true;
        } else {
            return ;
        }
    }

    
Sets the value of the showWhiteSpace property.

Parameters:
value allowed object is
    public void setShowWhiteSpace(Boolean value) {
        this. = value;
    }

    
Gets the value of the view property.

Returns:
possible object is
    public STSheetViewType getView() {
        if ( == null) {
            return .;
        } else {
            return ;
        }
    }

    
Sets the value of the view property.

Parameters:
value allowed object is
    public void setView(STSheetViewType value) {
        this. = value;
    }

    
Gets the value of the topLeftCell property.

Returns:
possible object is
    public String getTopLeftCell() {
        return ;
    }

    
Sets the value of the topLeftCell property.

Parameters:
value allowed object is
    public void setTopLeftCell(String value) {
        this. = value;
    }

    
Gets the value of the colorId property.

Returns:
possible object is
    public long getColorId() {
        if ( == null) {
            return  64L;
        } else {
            return ;
        }
    }

    
Sets the value of the colorId property.

Parameters:
value allowed object is
    public void setColorId(Long value) {
        this. = value;
    }

    
Gets the value of the zoomScale property.

Returns:
possible object is
    public long getZoomScale() {
        if ( == null) {
            return  100L;
        } else {
            return ;
        }
    }

    
Sets the value of the zoomScale property.

Parameters:
value allowed object is
    public void setZoomScale(Long value) {
        this. = value;
    }

    
Gets the value of the zoomScaleNormal property.

Returns:
possible object is
    public long getZoomScaleNormal() {
        if ( == null) {
            return  0L;
        } else {
            return ;
        }
    }

    
Sets the value of the zoomScaleNormal property.

Parameters:
value allowed object is
    public void setZoomScaleNormal(Long value) {
        this. = value;
    }

    
Gets the value of the zoomScaleSheetLayoutView property.

Returns:
possible object is
    public long getZoomScaleSheetLayoutView() {
        if ( == null) {
            return  0L;
        } else {
            return ;
        }
    }

    
Sets the value of the zoomScaleSheetLayoutView property.

Parameters:
value allowed object is
    public void setZoomScaleSheetLayoutView(Long value) {
        this. = value;
    }

    
Gets the value of the zoomScalePageLayoutView property.

Returns:
possible object is
    public long getZoomScalePageLayoutView() {
        if ( == null) {
            return  0L;
        } else {
            return ;
        }
    }

    
Sets the value of the zoomScalePageLayoutView property.

Parameters:
value allowed object is
    public void setZoomScalePageLayoutView(Long value) {
        this. = value;
    }

    
Gets the value of the workbookViewId property.
    public long getWorkbookViewId() {
        return ;
    }

    
Sets the value of the workbookViewId property.
    public void setWorkbookViewId(long value) {
        this. = value;
    }

    
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
    public Object getParent() {
        return this.;
    }
    public void setParent(Object parent) {
        this. = 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.
    public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
        setParent(parent);
    }
New to GrepCode? Check out our FAQ X