- All Known Subinterfaces:
- Item, JAFable, View
- All Known Implementing Classes:
- ItemImpl, ViewImpl
- public interface Typed
simple interface denoting an object that can have a type assigned to it. At present, there is no
distinction between the display name and internal representation of a type - it might prove useful to
do so in future to provide faster indexing or several underlying types with the same display name
(thinking here of java.util.Date and java.sql.Date). On the other hand, it might be a pain in the neck
(thinking again of the same example)
|
Method Summary |
java.lang.String |
getType()
denote the type of this item, used in the UI to differentiate between
different sorts (e.g. |
void |
setType(java.lang.String str)
set the type of this item (or at least attempt to, its OK to ignore it if
the type is deemed immutable) |
PROP_TYPE
public static final java.lang.String PROP_TYPE
- String that a Propertied object may use to store type information in
- See Also:
- Constant Field Values
getType
public java.lang.String getType()
- denote the type of this item, used in the UI to differentiate between
different sorts (e.g. by assigning icons, allowing grouping by type, etc.)
Will generally default to class name, but can be overridden in the item constructor
or elsewher
setType
public void setType(java.lang.String str)
- set the type of this item (or at least attempt to, its OK to ignore it if
the type is deemed immutable)