thinwire.ui.layout
Class AbstractLayout

java.lang.Object
  extended by thinwire.ui.layout.AbstractLayout
All Implemented Interfaces:
Layout
Direct Known Subclasses:
SplitLayout, TableLayout

public abstract class AbstractLayout
extends java.lang.Object
implements Layout


Field Summary
protected  boolean autoLayout
           
protected  java.lang.String[] autoLayoutProps
           
protected  Container<Component> container
           
protected  boolean limitLayout
           
protected  int margin
           
protected  int spacing
           
 
Constructor Summary
protected AbstractLayout(java.lang.String... autoLayoutProps)
           
 
Method Summary
protected  void addComponent(Component comp)
           
 void apply()
           
 Container<Component> getContainer()
           
protected  java.lang.Object getFormalLimit(Component comp)
           
 int getMargin()
           
 int getSpacing()
           
 boolean isAutoApply()
           
protected  void limitChanged(Component comp, java.lang.Object oldLimit)
           
protected  void removeComponent(Component comp)
           
 void setAutoApply(boolean autoLayout)
           
 void setContainer(Container<Component> container)
           
 void setMargin(int margin)
           
 void setSpacing(int spacing)
           
protected  void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

protected Container<Component> container

autoLayoutProps

protected java.lang.String[] autoLayoutProps

autoLayout

protected boolean autoLayout

limitLayout

protected boolean limitLayout

margin

protected int margin

spacing

protected int spacing
Constructor Detail

AbstractLayout

protected AbstractLayout(java.lang.String... autoLayoutProps)
Method Detail

addComponent

protected void addComponent(Component comp)

removeComponent

protected void removeComponent(Component comp)

limitChanged

protected void limitChanged(Component comp,
                            java.lang.Object oldLimit)

getFormalLimit

protected java.lang.Object getFormalLimit(Component comp)

setContainer

public void setContainer(Container<Component> container)
Specified by:
setContainer in interface Layout

getContainer

public Container<Component> getContainer()
Specified by:
getContainer in interface Layout

isAutoApply

public boolean isAutoApply()
Specified by:
isAutoApply in interface Layout

setAutoApply

public void setAutoApply(boolean autoLayout)
Specified by:
setAutoApply in interface Layout

getMargin

public int getMargin()
Specified by:
getMargin in interface Layout

setMargin

public void setMargin(int margin)
Specified by:
setMargin in interface Layout

getSpacing

public int getSpacing()
Specified by:
getSpacing in interface Layout

setSpacing

public void setSpacing(int spacing)
Specified by:
setSpacing in interface Layout

update

protected void update()

apply

public void apply()
Specified by:
apply in interface Layout


ThinWire® is a registered of Custom Credit Systems  Copyright © 2007 All rights reserved.
ThinWire_is_Open_Source_under_the_terms_of_the_LGPLv2.1 SourceForge.net_Project_Page java.net_Member Support_ThinWire,_Digg_our_Story