public class XMLGridLayout extends Object implements LayoutManager
| Constructor and Description |
|---|
XMLGridLayout(String layoutStringOrFile) |
XMLGridLayout(URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(String name,
Component comp)
Binds a name in the layout to the specified component.
|
GridBagConstraints |
getConstraint(String componentName) |
String |
getLayoutString() |
protected void |
init(String layoutString) |
protected void |
init(URL url) |
void |
layoutContainer(Container parent) |
Dimension |
minimumLayoutSize(Container parent) |
Dimension |
preferredLayoutSize(Container parent) |
void |
removeLayoutComponent(Component comp) |
public XMLGridLayout(String layoutStringOrFile)
public XMLGridLayout(URL url)
protected void init(URL url)
protected void init(String layoutString)
layoutString - string that represente the layoutpublic void addLayoutComponent(String name, Component comp)
addLayoutComponent in interface LayoutManagername - The name in the layout to bind the component tocomp - The component to bind to the specified name.public void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpublic Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerpublic void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerpublic GridBagConstraints getConstraint(String componentName)
public String getLayoutString()
Copyright © 2004–2017 Ultreia.io. All rights reserved.