-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug[TW25783]: Fix Filter DateTime Column
Change-Id: I88e37a6ff8a89fdbaf6a8062327e983e540450b8
- Loading branch information
1 parent
44150cc
commit b3617d6
Showing
6 changed files
with
117 additions
and
65 deletions.
There are no files selected for viewing
75 changes: 45 additions & 30 deletions
75
....nebula.widgets.xviewer/src/org/eclipse/nebula/widgets/xviewer/IXViewerLabelProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,55 @@ | ||
package org.eclipse.nebula.widgets.xviewer; | ||
|
||
import java.util.Date; | ||
import org.eclipse.nebula.widgets.xviewer.core.model.XViewerColumn; | ||
|
||
/** | ||
* @author Juergen Reichl | ||
*/ | ||
public interface IXViewerLabelProvider { | ||
|
||
/** | ||
* Returns the label text for the given column of the given element. | ||
*/ | ||
public abstract String getColumnText(Object element, int columnIndex); | ||
|
||
/** | ||
* Returns the label text for the given column of the given element. | ||
*/ | ||
public abstract String getColumnText(Object element, XViewerColumn xCol, int columnIndex) throws Exception; | ||
|
||
/** | ||
* Returns XViewerColumn of the given index | ||
*/ | ||
public abstract XViewerColumn getTreeColumnOffIndex(int columnIndex); | ||
|
||
/** | ||
* Return value between 0..100 and cell will show bar graph shading that portion of the cell | ||
*/ | ||
public abstract int getColumnGradient(Object element, XViewerColumn xCol, int columnIndex) throws Exception; | ||
|
||
/** | ||
* Returns the backing data object for operations like sorting | ||
*/ | ||
public abstract Object getBackingData(Object element, XViewerColumn xViewerColumn, int columnIndex) throws Exception; | ||
|
||
/** | ||
* When columns get re-ordered, need to clear out this cache so indexing can be re-computed | ||
*/ | ||
public abstract void clearXViewerColumnIndexCache(); | ||
|
||
/** | ||
* Returns the label text for the given column of the given element. | ||
*/ | ||
public abstract String getColumnText(Object element, int columnIndex); | ||
|
||
/** | ||
* Returns the label date for the given column of the given element. | ||
*/ | ||
public default Date getColumnDate(Object element, int columnIndex) { | ||
return null; | ||
}; | ||
|
||
/** | ||
* Returns the label text for the given column of the given element. | ||
*/ | ||
public abstract String getColumnText(Object element, XViewerColumn xCol, int columnIndex) throws Exception; | ||
|
||
/** | ||
* Returns the label date for the given column of the given element. | ||
*/ | ||
public default Date getColumnDate(Object element, XViewerColumn xCol, int columnIndex) throws Exception { | ||
return null; | ||
}; | ||
|
||
/** | ||
* Returns XViewerColumn of the given index | ||
*/ | ||
public abstract XViewerColumn getTreeColumnOffIndex(int columnIndex); | ||
|
||
/** | ||
* Return value between 0..100 and cell will show bar graph shading that portion of the cell | ||
*/ | ||
public abstract int getColumnGradient(Object element, XViewerColumn xCol, int columnIndex) throws Exception; | ||
|
||
/** | ||
* Returns the backing data object for operations like sorting | ||
*/ | ||
public abstract Object getBackingData(Object element, XViewerColumn xViewerColumn, int columnIndex) throws Exception; | ||
|
||
/** | ||
* When columns get re-ordered, need to clear out this cache so indexing can be re-computed | ||
*/ | ||
public abstract void clearXViewerColumnIndexCache(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters