Class FieldCategory
java.lang.Object
org.eclipse.ui.views.markers.internal.AbstractField
org.eclipse.ui.views.markers.internal.FieldCategory
- All Implemented Interfaces:
IField
FieldCategory is the field for showing categories of markers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintGet the default direction for the receiver.intGet the preferred width of the receiver.Methods inherited from class org.eclipse.ui.views.markers.internal.AbstractField
isShowing, setShowing
-
Constructor Details
-
FieldCategory
public FieldCategory()
-
-
Method Details
-
getDescription
- Returns:
- String the description of the field.
-
getDescriptionImage
- Returns:
- the image associated with the description of the field or
null.
-
getColumnHeaderText
- Returns:
- The text to be displayed in the column header for this field.
-
getColumnHeaderImage
- Returns:
- The image to be displayed in the column header for this field or
null.
-
getValue
- Returns:
- The String value of the object for this particular field to be displayed to the user.
-
getImage
- Returns:
- The image value of the object for this particular field to be displayed to the user
or
null.
-
compare
- Returns:
- Either:
- a negative number if the value of obj1 is less than the value of obj2 for this field.
0if the value of obj1 and the value of obj2 are equal for this field.- a positive number if the value of obj1 is greater than the value of obj2 for this field.
-
getDefaultDirection
public int getDefaultDirection()Description copied from interface:IFieldGet the default direction for the receiver. Return eitherTableComparator.ASCENDINGorTableComparator.DESCENDING- Returns:
- int
-
getPreferredWidth
public int getPreferredWidth()Description copied from interface:IFieldGet the preferred width of the receiver.- Returns:
- int
-