com.anabas.sharedlet
Class ViewConstraints

java.lang.Object
  |
  +--com.anabas.sharedlet.ViewConstraints
Direct Known Subclasses:
JavaViewConstraints

public class ViewConstraints
extends java.lang.Object

The based class for all view constraints that each SharedletView would have.


Constructor Summary
ViewConstraints()
           
 
Method Summary
 java.lang.Object getConstraint(java.lang.String name)
           
 java.awt.Dimension getMaximumSize()
           
 java.awt.Dimension getMinimumSize()
           
 java.awt.Dimension getPreferredSize()
           
 void setConstraint(java.lang.String name, java.lang.Object value)
           
 void setMaximumSize(java.awt.Dimension d)
           
 void setMinimumSize(java.awt.Dimension d)
           
 void setPreferredSize(java.awt.Dimension d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewConstraints

public ViewConstraints()
Method Detail

setConstraint

public void setConstraint(java.lang.String name,
                          java.lang.Object value)
Parameters:
name - The name of the constraint to set.
Returns:
The value of a particular constraint. null if the constraint does not exist.

getConstraint

public java.lang.Object getConstraint(java.lang.String name)
Parameters:
name - The name of the constraint to return the value for.
Returns:
The value of a particular constraint. null if the constraint does not exist.

getPreferredSize

public java.awt.Dimension getPreferredSize()
Returns:
The preferred size in pixles of the view. null if no preferredsize

getMinimumSize

public java.awt.Dimension getMinimumSize()
Returns:
The minimum size in pixles of the view. null if no minimum size

getMaximumSize

public java.awt.Dimension getMaximumSize()
Returns:
The maximum size in pixles of the view. null if no maximum size

setPreferredSize

public void setPreferredSize(java.awt.Dimension d)
Parameters:
d - The dimension to set preferred size to.

setMinimumSize

public void setMinimumSize(java.awt.Dimension d)
Parameters:
d - The dimension to set minimum size to.

setMaximumSize

public void setMaximumSize(java.awt.Dimension d)
Parameters:
d - The dimension to set maximum size to.