com.anabas.sharedlet
Class SharedletViewInfoImpl
java.lang.Object
|
+--com.anabas.sharedlet.SharedletViewInfoImpl
- public class SharedletViewInfoImpl
- extends java.lang.Object
- implements SharedletViewInfo
A default implement of SharedletView. For convenience, the sharedlet
developer can extend this class to provide a view info for its views.
This default implementation only supports the "application/java" rendering
surface.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SharedletViewInfoImpl
public SharedletViewInfoImpl(java.lang.String name,
JavaViewConstraints vc)
- Parameters:
name
- The unique id of the sharedlet viewvc
- The view constraint for this view.
getID
public java.lang.String getID()
- Specified by:
- getID in interface SharedletViewInfo
- Returns:
- The unique name of this view within this sharedlet. Must match the
name returned by SharedletView.getName();
getConstraints
public ViewConstraints getConstraints(java.lang.String format)
- Description copied from interface: SharedletViewInfo
- The view constraints for a particular rendering "surface".
- Specified by:
- getConstraints in interface SharedletViewInfo
- Returns:
- The view constraints for a particular format. null if the format
is not "application/java".
getSupportedRenderingTypes
public java.lang.String[] getSupportedRenderingTypes()
- Description copied from interface: SharedletViewInfo
- A list of supported rendering "surfaces" MIME Types. For example:
- text/html
- image/gif
- application/java
Are all valid rendering surfaces. In the text/html case, the view
can generate a web page that displays the view. In image/gif, the view
can generate an image, etc.
- Specified by:
- getSupportedRenderingTypes in interface SharedletViewInfo
- Returns:
- A list of 1 element: "application/java"