Eclipse Remote Application Platform

Class Template

  extended by org.eclipse.rap.rwt.template.Template
All Implemented Interfaces:, Adaptable

public class Template
extends java.lang.Object
implements, 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.

See Also:
RWT.ROW_TEMPLATE, Serialized Form

Constructor Summary
          Constructs an empty template.
Method Summary
<T> T
getAdapter(java.lang.Class<T> adapter)
          IMPORTANT: This method is not part of the RWT public API.
 java.util.List<Cell<?>> getCells()
          Returns the list of cells included in this template.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public Template()
Constructs an empty template.

Method Detail


public java.util.List<Cell<?>> getCells()
Returns the list of cells included in this template. Modifications to the returned list will not change the template.

the list of cells in this template, may be empty but never null


public <T> T getAdapter(java.lang.Class<T> adapter)
IMPORTANT: 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:
getAdapter in interface Adaptable
adapter - the lookup class
an object that can be cast to the given class or null if there is no adapter associated with the given class.

Eclipse Remote Application Platform

Copyright (c) EclipseSource and others 2002, 2013. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0