Interface IField
- All Known Implementing Classes:
AbstractField
,FieldCategory
public interface IField
IField is the definition of fields for marker views.
-
Method Summary
Modifier and TypeMethodDescriptionint
int
Get the default direction for the receiver.int
Get the preferred width of the receiver.boolean
Return whether not the receiver is showing.void
setShowing
(boolean showing) Set whether or not the receiver is showing.
-
Method Details
-
getDescription
String getDescription()- Returns:
- String the description of the field.
-
getDescriptionImage
Image getDescriptionImage()- Returns:
- the image associated with the description of the field or
null
.
-
getColumnHeaderText
String getColumnHeaderText()- Returns:
- The text to be displayed in the column header for this field.
-
getColumnHeaderImage
Image 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.
0
if 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
int getDefaultDirection()Get the default direction for the receiver. Return eitherTableComparator.ASCENDING
orTableComparator.DESCENDING
- Returns:
- int
-
getPreferredWidth
int getPreferredWidth()Get the preferred width of the receiver.- Returns:
- int
-
isShowing
boolean isShowing()Return whether not the receiver is showing.- Returns:
- boolean
-
setShowing
void setShowing(boolean showing) Set whether or not the receiver is showing.
-