Class XViewerComputedColumn

java.lang.Object
org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn
org.eclipse.nebula.widgets.xviewer.XViewerValueColumn
org.eclipse.nebula.widgets.xviewer.XViewerComputedColumn
All Implemented Interfaces:
IXViewerValueColumn
Direct Known Subclasses:
XViewerDaysTillTodayColumn, XViewerDiffsBetweenColumnsColumn

public abstract class XViewerComputedColumn
extends XViewerValueColumn
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn sourceXViewerColumn  
    protected XViewer xViewer  

    Fields inherited from class org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn

    ALIGN, id, ID, name, NAME, preComputedValueMap, SHOW, SORT_FORWARD, WIDTH, XTREECOLUMN_TAG
  • Constructor Summary

    Constructors 
    Constructor Description
    XViewerComputedColumn​(java.lang.String id, java.lang.String name, int width, org.eclipse.nebula.widgets.xviewer.core.model.XViewerAlign align, boolean show, org.eclipse.nebula.widgets.xviewer.core.model.SortDataType sortDataType, boolean multiColumnEditable, java.lang.String description)  
    XViewerComputedColumn​(XViewer viewer, java.lang.String xml)  
  • Method Summary

    Modifier and Type Method Description
    abstract XViewerComputedColumn copy()
    XViewer uses copies of column definitions so originals that are registered are not corrupted.
    abstract XViewerComputedColumn createFromStored​(org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn storedColumn)  
    java.lang.String getSourceColumnId()  
    org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn getSourceXViewerColumn()  
    XViewer getXViewer()  
    abstract boolean isApplicableFor​(java.lang.String storedId)  
    abstract boolean isApplicableFor​(org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xViewerColumn)  
    void setSourceXViewerColumn​(org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn sourceXViewerColumn)  
    void setSourceXViewerColumnFromColumns​(java.util.Collection<org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn> xViewerColumns)  
    void setXViewer​(java.lang.Object xViewer)  

    Methods inherited from class org.eclipse.nebula.widgets.xviewer.XViewerValueColumn

    getBackground, getBackingData, getColumnImage, getColumnText, getFont, getForeground, getStyledText

    Methods inherited from class org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn

    addElapsedTime, averageValues, copy, equals, getAlign, getAlignStoreName, getAlignStoreValue, getColumnId, getDescription, getDisplayName, getElapsedTime, getId, getName, getPreComputedValue, getPreComputedValueMap, getSortDataType, getToolTip, getWidth, hashCode, isMultiColumnEditable, isShow, isSortForward, isSummable, resetElapsedTime, reverseSort, setAlign, setDescription, setElapsedTime, setFromXml, setId, setMultiColumnEditable, setName, setPreComputedValueMap, setShow, setSortDataType, setSortForward, setToolTip, setWidth, sumValues, toString, toXml

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • XViewerComputedColumn

      public XViewerComputedColumn​(java.lang.String id, java.lang.String name, int width, org.eclipse.nebula.widgets.xviewer.core.model.XViewerAlign align, boolean show, org.eclipse.nebula.widgets.xviewer.core.model.SortDataType sortDataType, boolean multiColumnEditable, java.lang.String description)
    • XViewerComputedColumn

      public XViewerComputedColumn​(XViewer viewer, java.lang.String xml)
  • Method Details

    • getSourceXViewerColumn

      public org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn getSourceXViewerColumn()
    • setSourceXViewerColumn

      public void setSourceXViewerColumn​(org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn sourceXViewerColumn)
    • getSourceColumnId

      public java.lang.String getSourceColumnId()
    • setSourceXViewerColumnFromColumns

      public void setSourceXViewerColumnFromColumns​(java.util.Collection<org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn> xViewerColumns)
    • isApplicableFor

      public abstract boolean isApplicableFor​(org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn xViewerColumn)
    • isApplicableFor

      public abstract boolean isApplicableFor​(java.lang.String storedId)
    • createFromStored

      public abstract XViewerComputedColumn createFromStored​(org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn storedColumn)
    • getXViewer

      public XViewer getXViewer()
      Overrides:
      getXViewer in class org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn
    • setXViewer

      public void setXViewer​(java.lang.Object xViewer)
      Overrides:
      setXViewer in class org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn
    • copy

      public abstract XViewerComputedColumn copy()
      Description copied from class: XViewerValueColumn
      XViewer uses copies of column definitions so originals that are registered are not corrupted. Classes extending XViewerValueColumn MUST extend this constructor so the correct sub-class is created
      Overrides:
      copy in class XViewerValueColumn