de.kleopatra.forms.description.jgoodies
Class JGoodiesConstraint

java.lang.Object
  extended byde.kleopatra.forms.description.jgoodies.JGoodiesConstraint
All Implemented Interfaces:
Constraint

public final class JGoodiesConstraint
extends java.lang.Object
implements Constraint

Implementation of Constraint for JGoodies Forms.

NOTE: this class is public and has public constructors as an implementation side-effect, only. Don't instantiate/access directly from code.

Version:
$Revision: 1.2 $ $Date: 2004/09/30 10:18:20 $
Author:
(C) 2003 Jeanette Winzenburg, Berlin

Constructor Summary
JGoodiesConstraint()
          ussed by XMLDecoder: needed to ensure proper instantiation of wrapped constraint.
JGoodiesConstraint(CellConstraints constraint)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void extend(int rowDelta, int columnDelta)
           
 void extendHeight(int delta)
           
 void extendWidth(int delta)
           
 CellConstraints getCellConstraints()
           
 java.lang.String getComponentClassName()
           
 java.lang.Object getComponentID()
           
 java.lang.String getDescription()
           
 java.lang.String getEncodedString()
          a String representation capable of instantiating a valid constraint.
 int getFirstColumn()
           
 int getFirstRow()
           
 java.lang.Object getHAlignment()
           
 java.util.List getHAlignmentTypes()
           
 int getHeight()
           
 int getLastColumn()
           
 int getLastRow()
           
 java.lang.Object getVAlignment()
           
 java.util.List getVAlignmentTypes()
           
 int getWidth()
           
 boolean isAnchor(int row, int column)
           
 boolean isInside(int row, int column)
           
 void moveTo(int row, int column)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void setComponentClassName(java.lang.String className)
           
 void setComponentID(java.lang.Object componentID)
           
 void setEncodedString(java.lang.String encodedString)
          set all properties.
 void setHAlignment(java.lang.Object alignment)
           
 void setVAlignment(java.lang.Object alignment)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JGoodiesConstraint

public JGoodiesConstraint()
ussed by XMLDecoder: needed to ensure proper instantiation of wrapped constraint.


JGoodiesConstraint

public JGoodiesConstraint(CellConstraints constraint)
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Specified by:
addPropertyChangeListener in interface Constraint

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Specified by:
removePropertyChangeListener in interface Constraint

getHAlignmentTypes

public java.util.List getHAlignmentTypes()

getVAlignmentTypes

public java.util.List getVAlignmentTypes()

getHAlignment

public java.lang.Object getHAlignment()
Specified by:
getHAlignment in interface Constraint

setHAlignment

public void setHAlignment(java.lang.Object alignment)
Specified by:
setHAlignment in interface Constraint

getVAlignment

public java.lang.Object getVAlignment()
Specified by:
getVAlignment in interface Constraint

setVAlignment

public void setVAlignment(java.lang.Object alignment)
Specified by:
setVAlignment in interface Constraint

setEncodedString

public void setEncodedString(java.lang.String encodedString)
set all properties. The encodedString has the same syntax as JGoodies CellConstraints.

Note: this method is meant mainly for handling persistence and will not fire any event.

Specified by:
setEncodedString in interface Constraint

getEncodedString

public java.lang.String getEncodedString()
Description copied from interface: Constraint
a String representation capable of instantiating a valid constraint.

Note: this method is meant mainly for handling persistence and will not fire any event. Hmmm...

Specified by:
getEncodedString in interface Constraint

getComponentID

public java.lang.Object getComponentID()
Specified by:
getComponentID in interface Constraint

setComponentID

public void setComponentID(java.lang.Object componentID)
Specified by:
setComponentID in interface Constraint

getComponentClassName

public java.lang.String getComponentClassName()
Specified by:
getComponentClassName in interface Constraint

setComponentClassName

public void setComponentClassName(java.lang.String className)
Specified by:
setComponentClassName in interface Constraint

getCellConstraints

public CellConstraints getCellConstraints()

getFirstRow

public int getFirstRow()
Specified by:
getFirstRow in interface Constraint

getFirstColumn

public int getFirstColumn()
Specified by:
getFirstColumn in interface Constraint

getLastRow

public int getLastRow()
Specified by:
getLastRow in interface Constraint

getLastColumn

public int getLastColumn()
Specified by:
getLastColumn in interface Constraint

getHeight

public int getHeight()
Specified by:
getHeight in interface Constraint

getWidth

public int getWidth()
Specified by:
getWidth in interface Constraint

extendHeight

public void extendHeight(int delta)

extendWidth

public void extendWidth(int delta)

extend

public void extend(int rowDelta,
                   int columnDelta)
Specified by:
extend in interface Constraint

moveTo

public void moveTo(int row,
                   int column)
Specified by:
moveTo in interface Constraint

isAnchor

public boolean isAnchor(int row,
                        int column)
Specified by:
isAnchor in interface Constraint

isInside

public boolean isInside(int row,
                        int column)
Specified by:
isInside in interface Constraint

toString

public java.lang.String toString()

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Constraint


Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.