com.anabas.sharedlet
Class JavaViewConstraints

java.lang.Object
  |
  +--com.anabas.sharedlet.ViewConstraints
        |
        +--com.anabas.sharedlet.JavaViewConstraints

public class JavaViewConstraints
extends ViewConstraints

Supports the application/java view type. This constraint specifies where in the sharedlet visualization framework the SharedletView should be rendered. There are basically three different types of locations in the visualization engine:

  1. Application
    This is the application panel where all applications that do not belong in the presentation panel & free form region goes.
  2. Control
    A control view means this view should belong in the control panel section of the visualization engine.
  3. Free Form
    A free form view where the view should be place at a fixed screen location with a certain size.
  4. Presentation
    A presentation view means this view should be in the presentation area or the center of attention for the user. This region is normally reserved for presentation of documents and have a fixed size region to render into.

Currently defined constraint properties are:

NOTE: This class is meant to be replace by a XML based configurable sharedlet info in the future thus does not have support for setProperty() method.


Field Summary
static java.lang.String VIEWREGION_APPLICATION
           
static java.lang.String VIEWREGION_CONTROL
           
static java.lang.String VIEWREGION_CONTROL_FIXED
           
static java.lang.String VIEWREGION_FREEFORM
           
static java.lang.String VIEWREGION_PRESENTATION
           
static java.lang.String VIEWREGION_TOOL
           
 
Constructor Summary
JavaViewConstraints(int x, int y, java.awt.Dimension pref)
          Create a free form constraint that places the view in a fixed locaiton on the screen.
JavaViewConstraints(java.lang.String region)
          Create a view contrainst that places the view in a specific region as supported by the layout service.
 
Method Summary
 java.lang.String getFormatType()
           
 java.lang.String getProperty(java.lang.String name)
          Get the constraint properties.
 
Methods inherited from class com.anabas.sharedlet.ViewConstraints
getConstraint, getMaximumSize, getMinimumSize, getPreferredSize, setConstraint, setMaximumSize, setMinimumSize, setPreferredSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEWREGION_FREEFORM

public static final java.lang.String VIEWREGION_FREEFORM

VIEWREGION_TOOL

public static final java.lang.String VIEWREGION_TOOL

VIEWREGION_CONTROL

public static final java.lang.String VIEWREGION_CONTROL

VIEWREGION_CONTROL_FIXED

public static final java.lang.String VIEWREGION_CONTROL_FIXED

VIEWREGION_PRESENTATION

public static final java.lang.String VIEWREGION_PRESENTATION

VIEWREGION_APPLICATION

public static final java.lang.String VIEWREGION_APPLICATION
Constructor Detail

JavaViewConstraints

public JavaViewConstraints(java.lang.String region)
Create a view contrainst that places the view in a specific region as supported by the layout service.
Parameters:
region - One of VIEWREGION_FREEFORM, VIEWREGION_CONTROL, VIEWREGION_PRESENTATION, VIEWREGOIN_APPLICATION.

JavaViewConstraints

public JavaViewConstraints(int x,
                           int y,
                           java.awt.Dimension pref)
Create a free form constraint that places the view in a fixed locaiton on the screen.
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String name)
Get the constraint properties.
Parameters:
The - name of the constraint property to return the value for.
Returns:
null if no such constraint property exists. Otherwise, the value of the property.

getFormatType

public java.lang.String getFormatType()
Returns:
"application/java"