Class SingleFiledLayout
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.util.gui.tablelayout.SingleFiledLayout
 
- 
- All Implemented Interfaces:
- java.awt.LayoutManager,- java.io.Serializable
 
 public class SingleFiledLayout extends java.lang.Object implements java.awt.LayoutManager, java.io.SerializableSingleFiledLayout lays out components singled filed. This layout manager is like FlowLayout except that all components are placed in a single row or column.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intBOTTOMBottom justify componentsstatic intCENTERCenter componentsstatic intCOLUMNAlign components in a columnstatic intDEFAULT_GAPDefault gap -- derived classes may overridestatic intFULLFull justify componentsprotected intgapSpace between components in pixelsprotected intjustificationLEFT, TOP, CENTER, FULL, BOTTOM, RIGHT -- how should components of different sizes be alignedstatic intLEFTLeft justify componentsprotected intorientationROW or COLUMN -- should the components be aligned in a row or columnstatic intRIGHTRight justify componentsstatic intROWAlign components in a rowstatic intTOPTop justify components
 - 
Constructor SummaryConstructors Constructor Description SingleFiledLayout()Constructs an instance of SingleFiledLayout that will align components in a column using the default gap and LEFT justification.SingleFiledLayout(int orientation)Constructs an instance of SingleFiledLayout using the default gap and LEFT or TOP justification.SingleFiledLayout(int orientation, int justification, int gap)Constructs an instance of SingleFiledLayout.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLayoutComponent(java.lang.String name, java.awt.Component component)Adds the specified component with the specified name to the layout.voidlayoutContainer(java.awt.Container container)To lay out the specified container using this layout.java.awt.DimensionminimumLayoutSize(java.awt.Container container)Determines the minimum size of the container argument using this layout.java.awt.DimensionpreferredLayoutSize(java.awt.Container container)Determines the preferred size of the container argument using this layout.voidremoveLayoutComponent(java.awt.Component component)Removes the specified component with the specified name from the layout.
 
- 
- 
- 
Field Detail- 
COLUMNpublic static final int COLUMN Align components in a column- See Also:
- Constant Field Values
 
 - 
ROWpublic static final int ROW Align components in a row- See Also:
- Constant Field Values
 
 - 
LEFTpublic static final int LEFT Left justify components- See Also:
- Constant Field Values
 
 - 
TOPpublic static final int TOP Top justify components- See Also:
- Constant Field Values
 
 - 
CENTERpublic static final int CENTER Center components- See Also:
- Constant Field Values
 
 - 
FULLpublic static final int FULL Full justify components- See Also:
- Constant Field Values
 
 - 
BOTTOMpublic static final int BOTTOM Bottom justify components- See Also:
- Constant Field Values
 
 - 
RIGHTpublic static final int RIGHT Right justify components- See Also:
- Constant Field Values
 
 - 
DEFAULT_GAPpublic static int DEFAULT_GAP Default gap -- derived classes may override
 - 
orientationprotected int orientation ROW or COLUMN -- should the components be aligned in a row or column
 - 
justificationprotected int justification LEFT, TOP, CENTER, FULL, BOTTOM, RIGHT -- how should components of different sizes be aligned
 - 
gapprotected int gap Space between components in pixels
 
- 
 - 
Constructor Detail- 
SingleFiledLayoutpublic SingleFiledLayout() Constructs an instance of SingleFiledLayout that will align components in a column using the default gap and LEFT justification.
 - 
SingleFiledLayoutpublic SingleFiledLayout(int orientation) Constructs an instance of SingleFiledLayout using the default gap and LEFT or TOP justification.- Parameters:
- orientation- ROW or COLUMN -- should the components be aligned in a row or column
 
 - 
SingleFiledLayoutpublic SingleFiledLayout(int orientation, int justification, int gap)Constructs an instance of SingleFiledLayout.- Parameters:
- orientation- ROW or COLUMN -- should the components be aligned in a row or column
- justification- LEFT, TOP, CENTER, FULL, BOTTOM, RIGHT -- how should components of different sizes be aligned
- gap- space between components in pixels
 
 
- 
 - 
Method Detail- 
layoutContainerpublic void layoutContainer(java.awt.Container container) To lay out the specified container using this layout. This method repositions the components in the specified target container.User code should not have to call this method directly. - Specified by:
- layoutContainerin interface- java.awt.LayoutManager
- Parameters:
- container- container being served by this layout manager
 
 - 
preferredLayoutSizepublic java.awt.Dimension preferredLayoutSize(java.awt.Container container) Determines the preferred size of the container argument using this layout. The preferred size is the smallest size that, if used for the container's size, will ensure that no component is truncated when the component is its preferred size.- Specified by:
- preferredLayoutSizein interface- java.awt.LayoutManager
- Parameters:
- container- container being served by this layout manager
- Returns:
- a dimension indicating the container's preferred size
 
 - 
minimumLayoutSizepublic java.awt.Dimension minimumLayoutSize(java.awt.Container container) Determines the minimum size of the container argument using this layout. The minimum size is the smallest size that, if used for the container's size, will ensure that no component is truncated. The minimum size is the preferred size.- Specified by:
- minimumLayoutSizein interface- java.awt.LayoutManager
- Parameters:
- container- container being served by this layout manager
- Returns:
- a dimension indicating the container's minimum size
 
 - 
addLayoutComponentpublic void addLayoutComponent(java.lang.String name, java.awt.Component component)Adds the specified component with the specified name to the layout.- Specified by:
- addLayoutComponentin interface- java.awt.LayoutManager
- Parameters:
- name- dummy parameter
- component- component to add
 
 - 
removeLayoutComponentpublic void removeLayoutComponent(java.awt.Component component) Removes the specified component with the specified name from the layout.- Specified by:
- removeLayoutComponentin interface- java.awt.LayoutManager
- Parameters:
- component- component being removed
 
 
- 
 
-