| java.lang.Object net.mygwt.ui.client.widget.layout.BorderLayoutData
Constructor Summary | |
public | BorderLayoutData(int region) Creates a new border layout data. | public | BorderLayoutData(int region, float size) Creates a new border layout data with a given size. | public | BorderLayoutData(int region, float size, int minSize, int maxSize) Creates a new border layout data. |
Method Summary | |
public boolean | getBackground() Returns true if the background should be displayed. | public boolean | getBorders() | public boolean | getExclude() Returns true if the region should be excluded. | public int | getMaximumSize() Returns the region's maximum size. | public int | getMinimumSize() Returns the region's minimum size. | public int | getRegion() Returns the region. | public boolean | getResizeable() Returns true if the region is resizable. | public float | getSize() Returns the region's size. | public void | setBackground(boolean background) Displays the region's background if true , clears otherwise. | public void | setBorders(boolean borders) Sets whether the border should be displayed. | public void | setExclude(boolean exclude) Hides the region if true , shows otherwise. | public void | setMaximumSize(int maximumSize) Sets the regions's max size. | public void | setMinimumSize(int minimumSize) Sets the regions's min size. | public void | setRegion(int region) Specifies the region in the border panel. | public void | setResizeable(boolean resizeable) Enables resizing if true , disables otherwise. | public void | setSize(float size) The regions preferred size. |
background | boolean background(Code) | | |
maximumSize | int maximumSize(Code) | | |
minimumSize | int minimumSize(Code) | | |
resizeable | boolean resizeable(Code) | | |
BorderLayoutData | public BorderLayoutData(int region)(Code) | | Creates a new border layout data.
- Regions:
- NORTH,WEST,SOUTH,EAST,CENTER
Parameters: region - the region |
BorderLayoutData | public BorderLayoutData(int region, float size)(Code) | | Creates a new border layout data with a given size.
- Regions:
- NORTH,WEST,SOUTH,EAST,CENTER
Parameters: region - the region (NORTH, WEST, SOUTH, EAST, CENTER). Parameters: size - the preferred size |
BorderLayoutData | public BorderLayoutData(int region, float size, int minSize, int maxSize)(Code) | | Creates a new border layout data. Region will be resizable using the min
and max values.
- Regions:
- NORTH,WEST,SOUTH,EAST,CENTER
Parameters: region - the region (NORTH, WEST, SOUTH, EAST, CENTER). Parameters: size - the preferred size Parameters: minSize - the minimum size when resizing this region Parameters: maxSize - the maximum size when resizing this region |
getBackground | public boolean getBackground()(Code) | | Returns true if the background should be displayed.
the backgrond state |
getBorders | public boolean getBorders()(Code) | | Returns the border state
true to display the border |
getExclude | public boolean getExclude()(Code) | | Returns true if the region should be excluded.
the exclude state |
getMaximumSize | public int getMaximumSize()(Code) | | Returns the region's maximum size.
the max size |
getMinimumSize | public int getMinimumSize()(Code) | | Returns the region's minimum size.
the minimum size |
getRegion | public int getRegion()(Code) | | Returns the region.
the region |
getResizeable | public boolean getResizeable()(Code) | | Returns true if the region is resizable.
the resizable state |
getSize | public float getSize()(Code) | | Returns the region's size.
the size |
setBackground | public void setBackground(boolean background)(Code) | | Displays the region's background if true , clears otherwise.
Default value is true .
Parameters: background - the background |
setBorders | public void setBorders(boolean borders)(Code) | | Sets whether the border should be displayed.
Parameters: borders - true to show |
setExclude | public void setExclude(boolean exclude)(Code) | | Hides the region if true , shows otherwise. Default value is
false .
Parameters: exclude - the exclude state |
setMaximumSize | public void setMaximumSize(int maximumSize)(Code) | | Sets the regions's max size. Default value is 500.
Parameters: maximumSize - the max size |
setMinimumSize | public void setMinimumSize(int minimumSize)(Code) | | Sets the regions's min size.
Parameters: minimumSize - the minimum size |
setRegion | public void setRegion(int region)(Code) | | Specifies the region in the border panel.
Parameters: region - the region |
setResizeable | public void setResizeable(boolean resizeable)(Code) | | Enables resizing if true , disables otherwise. Default value
is false .
Parameters: resizeable - the resizable state |
setSize | public void setSize(float size)(Code) | | The regions preferred size. Values of 1 or less are treated as percentages.
Parameters: size - the size |
|
|