org.PingOO.DLAI.lib.PWidget
Class FormLayout.ColumnLeader

java.lang.Object
  |
  +--org.PingOO.DLAI.lib.PWidget.FormColumnLayout
        |
        +--org.PingOO.DLAI.lib.PWidget.FormLayout.ColumnLeader

private class FormLayout.ColumnLeader
extends FormColumnLayout

oversees and coordinates FormColumnLayout`s


Inner Class Summary
private  class FormLayout.ColumnLeader.InvisibleGhost
           
 
Inner classes inherited from class org.PingOO.DLAI.lib.PWidget.FormColumnLayout
FormColumnLayout.SegmentLayout
 
Field Summary
private  FormLayout.ExtendedVector m_invisibleGhosts
           
 
Fields inherited from class org.PingOO.DLAI.lib.PWidget.FormColumnLayout
m_columnIndex, m_containingLayout, m_currLocation, m_labelWidth, m_minLocation, m_prefLocation, m_segments
 
Constructor Summary
FormLayout.ColumnLeader(FormLayout containingLayout)
           
 
Method Summary
 void add(java.awt.Component label, java.awt.Component field, int row, int column, double pct)
           
 void add(java.awt.Component label, java.awt.Component field, int row, int column, int mode, double pct)
           
 void add(java.awt.Component component, int row, int column, double pct)
           
 void addMultiRow(java.awt.Component label, java.awt.Component field, int startRow, int endRow, int column, double pct)
           
 void addMultiRow(java.awt.Component label, java.awt.Component field, int startRow, int endRow, int column, int mode, double pct)
           
 void addMultiRow(java.awt.Component component, int startRow, int endRow, int column, double pct)
           
private  void addMultiRows(java.awt.Component field, int startRow, int endRow, int column, int mode)
           
private  FormColumnLayout.SegmentLayout findSegment(int row)
           
 int getMinimumLocation()
           
 int getPreferredLocation()
           
 FormColumnLayout.SegmentLayout getSegment(FormColumnLayout columnLayout, int row)
          create new if not found
 void layoutColumns(int room)
           
(package private)  void recalcMinimumLocations()
          Recalculate the minimum locations of each Column.
(package private)  void recalcPreferredLocations()
          Recalculate the preferred locations of each Column.
 void removeLayoutComponent(java.awt.Component component)
           
protected  void setMinimumLocation(int minLoc)
           
protected  void setPreferredLocation(int prefLoc)
           
 
Methods inherited from class org.PingOO.DLAI.lib.PWidget.FormColumnLayout
addSegment, calculateLabelWidth, doLayout, findIntermediateLocation, findMinimumLocation, findPreferredLocation, getCurrentLocation, getIndex
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

m_invisibleGhosts

private FormLayout.ExtendedVector m_invisibleGhosts
Constructor Detail

FormLayout.ColumnLeader

public FormLayout.ColumnLeader(FormLayout containingLayout)
Parameters:
containingLayout -  
Method Detail

add

public void add(java.awt.Component component,
                int row,
                int column,
                double pct)

add

public void add(java.awt.Component label,
                java.awt.Component field,
                int row,
                int column,
                double pct)

add

public void add(java.awt.Component label,
                java.awt.Component field,
                int row,
                int column,
                int mode,
                double pct)

addMultiRow

public void addMultiRow(java.awt.Component component,
                        int startRow,
                        int endRow,
                        int column,
                        double pct)

addMultiRow

public void addMultiRow(java.awt.Component label,
                        java.awt.Component field,
                        int startRow,
                        int endRow,
                        int column,
                        double pct)

addMultiRow

public void addMultiRow(java.awt.Component label,
                        java.awt.Component field,
                        int startRow,
                        int endRow,
                        int column,
                        int mode,
                        double pct)

addMultiRows

private void addMultiRows(java.awt.Component field,
                          int startRow,
                          int endRow,
                          int column,
                          int mode)

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component component)

getSegment

public FormColumnLayout.SegmentLayout getSegment(FormColumnLayout columnLayout,
                                                 int row)
create new if not found

findSegment

private FormColumnLayout.SegmentLayout findSegment(int row)

layoutColumns

public void layoutColumns(int room)

getPreferredLocation

public int getPreferredLocation()
Overrides:
getPreferredLocation in class FormColumnLayout

getMinimumLocation

public int getMinimumLocation()
Overrides:
getMinimumLocation in class FormColumnLayout

setMinimumLocation

protected void setMinimumLocation(int minLoc)
Overrides:
setMinimumLocation in class FormColumnLayout

setPreferredLocation

protected void setPreferredLocation(int prefLoc)
Overrides:
setPreferredLocation in class FormColumnLayout

recalcMinimumLocations

void recalcMinimumLocations()
Recalculate the minimum locations of each Column.
Call this every time m_minLocation and m_prefLocation are accessed, because the componentry may have changed in some relevant way since the last time this was called.

recalcPreferredLocations

void recalcPreferredLocations()
Recalculate the preferred locations of each Column.
Call this every time m_minLocation and m_prefLocation are accessed, because the componentry may have changed in some relevant way since the last time this was called.