Package org.eclipse.rap.rwt.template
Class Template
java.lang.Object
org.eclipse.rap.rwt.template.Template
- All Implemented Interfaces:
- Serializable,- Adaptable
Templates are used to describe how a given data item is presented by a widget.
 
Templates can be applied to multiple widgets within the same UI session.
- Since:
- 2.2
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T> TgetAdapter(Class<T> adapter) IMPORTANT: This method is not part of the RWT public API.getCells()Returns the list of cells included in this template.
- 
Constructor Details- 
Templatepublic Template()Constructs an empty template.
 
- 
- 
Method Details- 
getCellsReturns the list of cells included in this template. Modifications to the returned list will not change the template.- Returns:
- the list of cells in this template, may be empty but never null
 
- 
getAdapterIMPORTANT: This method is not part of the RWT public API. It is marked public only so that it can be shared within the packages provided by RWT. It should never be accessed from application code.- Specified by:
- getAdapterin interface- Adaptable
- Parameters:
- adapter- the lookup class
- Returns:
- an object that can be cast to the given class or nullif there is no adapter associated with the given class.
 
 
-