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:
- Application
This is the application panel where all applications that do not belong
in the presentation panel & free form region goes.
- Control
A control view means this view should belong in the control panel section
of the visualization engine.
- Free Form
A free form view where the view should be place at a fixed screen location
with a certain size.
- 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:
- "region"
One of the above defined region
- "x"
Only valid in the free form region. Defines the x location to place the
view.
- "y"
Only valid in the free form region. Defines the y location to place the
view.
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.
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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
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.
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"