Compiere 3.1

org.compiere.apps
Class ALayoutConstraint

java.lang.Object
  extended by org.compiere.apps.ALayoutConstraint
All Implemented Interfaces:
Comparable<ALayoutConstraint>

public class ALayoutConstraint
extends Object
implements Comparable<ALayoutConstraint>

Application Layout Constraint to indicate grid position (immutable)

Version:
$Id: ALayoutConstraint.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
Author:
Jorg Janke

Constructor Summary
ALayoutConstraint(int row, int col)
          Layout Constraint to indicate grid position
 
Method Summary
 int compareTo(ALayoutConstraint comp)
          Compares this object with the specified object for order.
 ALayoutConstraint createNext()
          Create Next in Row
 boolean equals(Object o)
          Is Object Equal
 int getCol()
          Get Column
 int getRow()
          Get Row
 String toString()
          To String
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ALayoutConstraint

public ALayoutConstraint(int row,
                         int col)
Layout Constraint to indicate grid position

Parameters:
row - row 0..x
col - column 0..x
Method Detail

createNext

public ALayoutConstraint createNext()
Create Next in Row

Returns:
ALayoutConstraint for additional column in same row

getRow

public int getRow()
Get Row

Returns:
roe no

getCol

public int getCol()
Get Column

Returns:
col no

compareTo

public int compareTo(ALayoutConstraint comp)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Specified by:
compareTo in interface Comparable<ALayoutConstraint>
Parameters:
o - the Object to be compared.
Returns:
a negative integer if this object is less than the specified object, zero if equal, or a positive integer if this object is greater than the specified object.

equals

public boolean equals(Object o)
Is Object Equal

Overrides:
equals in class Object
Parameters:
o -
Returns:
true if equal

toString

public String toString()
To String

Overrides:
toString in class Object
Returns:
info

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.