Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ulu.view
Interface Typed  view Typed download Typed.java

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)


Field Summary
static java.lang.String PROP_TYPE
          String that a Propertied object may use to store type information in
 
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)
 

Field Detail

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
Method Detail

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)