net.sf.doolin.gui.layout
Class TableLayoutService

java.lang.Object
  extended by net.sf.doolin.gui.layout.TableLayoutService
All Implemented Interfaces:
LayoutService

public class TableLayoutService
extends Object
implements LayoutService

Layouts component using a two-columns table.

Author:
Damien Coraboeuf

Constructor Summary
TableLayoutService()
           
 
Method Summary
 void add(JPanel panel, JComponent component, Object constraint)
          Adds a component to a panel using the given constraint.
protected  JComponent decorate(JComponent component)
          Decorates a component before it is put in the layout.
 String getColumnSpecs()
          Gets the column specifications for a row
 void init(JPanel panel)
          Initializes a panel for layout
 void setColumnSpecs(String columnSpecs)
          Sets the column specifications for a row
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableLayoutService

public TableLayoutService()
Method Detail

add

public void add(JPanel panel,
                JComponent component,
                Object constraint)
Description copied from interface: LayoutService
Adds a component to a panel using the given constraint.

Specified by:
add in interface LayoutService
Parameters:
panel - Container
component - Component to add
constraint - Constraint for the position

decorate

protected JComponent decorate(JComponent component)
Decorates a component before it is put in the layout.

Parameters:
component - Component to decorate
Returns:
Decorated component

init

public void init(JPanel panel)
Description copied from interface: LayoutService
Initializes a panel for layout

Specified by:
init in interface LayoutService
Parameters:
panel - Panel to initialize.

getColumnSpecs

public String getColumnSpecs()
Gets the column specifications for a row

Returns:
Column specification
See Also:
FormLayout

setColumnSpecs

public void setColumnSpecs(String columnSpecs)
Sets the column specifications for a row

Parameters:
columnSpecs - Column specification
See Also:
FormLayout


Copyright © 2011. All Rights Reserved.