|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.uep.bobclient.controls.RowCoordinatorCalculator
public class RowCoordinatorCalculator
Class to calculate coordinates of controls in a grid layout
Constructor Summary | |
---|---|
RowCoordinatorCalculator(int columns)
Row Layout constructor |
|
RowCoordinatorCalculator(int columns,
int marginWidth,
int marginHeight,
int spacingHorizontal,
int spacingVertical)
|
Method Summary | |
---|---|
void |
addControl(Control control)
Add widget to the row |
boolean |
addControl(Control control,
int colspan)
Add widget to this row |
boolean |
addControl(Control control,
int colspan,
int rowspan,
int controlFontHeight)
Add widget to this row |
void |
fillExisting()
Fill existing unused columns in this row |
Control |
getControl(int controlIndex)
Get a control by the control's index |
int |
getControlHeight(Control control)
Gets a control's height |
java.util.Vector |
getControls()
Get all fields on this row layout manager |
int |
getControlWidth(Control control)
Gets columns' width that a control occupies |
int |
getControlXCoordinator(Control control)
Gets a control's X coordinator in the row |
int |
getControlYCoordinator(Control control)
Gets a control's Y coordinator in the row |
int |
getControlYLocation(int controlXLocation,
int controlYLocation,
com.sybase.uep.bobclient.controls.RowCoordinatorCalculator.CellProperty cellProp,
com.sybase.uep.bobclient.controls.RowCoordinatorCalculator.CellProperty[][] tmpCellProperties)
Get the control Y location position |
int |
getPreferredHeight()
Retrieves this row's preferred height. |
int |
getPreferredWidth()
Retrieves this row's preferred width. |
boolean |
isFull()
Check is the row is full |
void |
layout()
lay out controlled fields appropriately. |
void |
refresh()
Refreshing all the controls |
void |
setBasicRowHeight(int rowHeight)
Set the row height |
void |
setColumnWidths(int[] columnWidths)
Set column widths of a row |
void |
setRowIndex(int rowIndex)
Set the index of a row |
int |
size()
Get the current number of widgets in this row |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RowCoordinatorCalculator(int columns)
columns
- - Maximum number of columns allowed for this rowlayoutContainer
- - Layout Managerbgcolor
- - background color for this rowpublic RowCoordinatorCalculator(int columns, int marginWidth, int marginHeight, int spacingHorizontal, int spacingVertical)
Method Detail |
---|
public void setBasicRowHeight(int rowHeight)
public void setColumnWidths(int[] columnWidths)
columnWidths
- public void setRowIndex(int rowIndex)
rowIndex
- public Control getControl(int controlIndex)
controlIndex
-
public void layout()
public int getPreferredWidth()
public int getPreferredHeight()
public int getControlYLocation(int controlXLocation, int controlYLocation, com.sybase.uep.bobclient.controls.RowCoordinatorCalculator.CellProperty cellProp, com.sybase.uep.bobclient.controls.RowCoordinatorCalculator.CellProperty[][] tmpCellProperties)
controlXLocation
- - control x grid locationcontrolYLocation
- - control y grid locationcellProp
- - cell property informationtmpCellProperties
- - list of cell propoerties to be layed out
public int size()
public void fillExisting()
public java.util.Vector getControls()
result
- - vector to store the fieldspublic void refresh()
public void addControl(Control control)
control
- - the widget to be addedpublic boolean addControl(Control control, int colspan)
control
- - the widget to be addedcolspan
- - the number of columns this widget will take up
public boolean addControl(Control control, int colspan, int rowspan, int controlFontHeight)
control
- - the widget to be addedcolspan
- - the number of columns this widget will take uprowspan
- - the number of rows this widget will take up
public boolean isFull()
public int getControlXCoordinator(Control control)
control
-
public int getControlYCoordinator(Control control)
control
-
public int getControlWidth(Control control)
control
-
public int getControlHeight(Control control)
control
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |