Class SingleFiledLayout
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.tablelayout.SingleFiledLayout
- All Implemented Interfaces:
- LayoutManager,- Serializable
SingleFiledLayout 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:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intBottom justify componentsstatic final intCenter componentsstatic final intAlign components in a columnstatic intDefault gap -- derived classes may overridestatic final intFull justify componentsprotected intSpace between components in pixelsprotected intLEFT, TOP, CENTER, FULL, BOTTOM, RIGHT -- how should components of different sizes be alignedstatic final intLeft justify componentsprotected intROW or COLUMN -- should the components be aligned in a row or columnstatic final intRight justify componentsstatic final intAlign components in a rowstatic final intTop justify components
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs 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 SummaryModifier and TypeMethodDescriptionvoidaddLayoutComponent(String name, Component component) Adds the specified component with the specified name to the layout.voidlayoutContainer(Container container) To lay out the specified container using this layout.minimumLayoutSize(Container container) Determines the minimum size of the container argument using this layout.preferredLayoutSize(Container container) Determines the preferred size of the container argument using this layout.voidremoveLayoutComponent(Component component) Removes the specified component with the specified name from the layout.
- 
Field Details- 
COLUMNpublic static final int COLUMNAlign components in a column- See Also:
 
- 
ROWpublic static final int ROWAlign components in a row- See Also:
 
- 
LEFTpublic static final int LEFTLeft justify components- See Also:
 
- 
TOPpublic static final int TOPTop justify components- See Also:
 
- 
CENTERpublic static final int CENTERCenter components- See Also:
 
- 
FULLpublic static final int FULLFull justify components- See Also:
 
- 
BOTTOMpublic static final int BOTTOMBottom justify components- See Also:
 
- 
RIGHTpublic static final int RIGHTRight justify components- See Also:
 
- 
DEFAULT_GAPpublic static int DEFAULT_GAPDefault gap -- derived classes may override
- 
orientationprotected int orientationROW or COLUMN -- should the components be aligned in a row or column
- 
justificationprotected int justificationLEFT, TOP, CENTER, FULL, BOTTOM, RIGHT -- how should components of different sizes be aligned
- 
gapprotected int gapSpace between components in pixels
 
- 
- 
Constructor Details- 
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 Details- 
layoutContainerTo 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- LayoutManager
- Parameters:
- container- container being served by this layout manager
 
- 
preferredLayoutSizeDetermines 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- LayoutManager
- Parameters:
- container- container being served by this layout manager
- Returns:
- a dimension indicating the container's preferred size
 
- 
minimumLayoutSizeDetermines 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- LayoutManager
- Parameters:
- container- container being served by this layout manager
- Returns:
- a dimension indicating the container's minimum size
 
- 
addLayoutComponentAdds the specified component with the specified name to the layout.- Specified by:
- addLayoutComponentin interface- LayoutManager
- Parameters:
- name- dummy parameter
- component- component to add
 
- 
removeLayoutComponentRemoves the specified component with the specified name from the layout.- Specified by:
- removeLayoutComponentin interface- LayoutManager
- Parameters:
- component- component being removed
 
 
-