eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'GridBagConstraints':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: GridBagConstraints


Inheritance:

   Object
   |
   +--GridBagConstraints

Package:
stx:libwidg2
Category:
Views-Support
Version:
rev: 1.4 date: 2006/03/13 15:55:25
user: cg
file: GridBagConstraints.st directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Andreas Vogel

Description:


The GridBagConstraints class holds the constraints for each child under control of the layouter
GridBagLayoutView. In addition to just be a placeholder for the constraints and some
temporary information during the layout process, the GridBagConstraints class also supports
the decoding and encoding its instance information from and into a literal array. This is
necessary in order to be used as a winSpec element.

For the valid values of each public instance variable see the documentation of the GridBagLayoutView.


Related information:

    GridBagLayoutView

Class protocol:

instance creation
o  new
Create an initialized instance of myself.


Instance protocol:

accessing
o  anchor

o  anchor: something

o  fill

o  fill: something

o  gridHeight

o  gridHeight: something
set the value of the instance variable 'gridHeight'

o  gridWidth

o  gridWidth: something
set the value of the instance variable 'gridWidth'

o  gridX

o  gridX: something
set the value of the instance variable 'gridX'

o  gridY

o  gridY: something
set the value of the instance variable 'gridY'

o  insets

o  insets: something

o  ipadX

o  ipadX: something

o  ipadY

o  ipadY: something

o  minHeight

o  minHeight: something

o  minWidth

o  minWidth: something

o  tempHeight

o  tempHeight: something

o  tempWidth

o  tempWidth: something

o  tempX

o  tempX: something

o  tempY

o  tempY: something

o  weightX

o  weightX: something

o  weightY

o  weightY: something

converting
o  fromLiteralArrayEncoding: encoding
Read my values from an encoding. The encoding is supposed to be of the form:
(GridBagConstraints
insets: (Insets left: 1 right: 1 top: 1 bottom: 1)
gridX: 1 gridY: 1 gridWidth: 1 gridHeight: 1
weightX: 1.0 weightY: 1.0 ipadX: 1 ipadY: 1 anchor: #CENTER fill: #BOTH
)
This is the reverse to literalArrayEncoding.
usage example(s):
      GridBagConstraints new fromLiteralArrayEncoding:#(GridBagConstraints 
	insets: #(Insets 96 97 98 99)
	gridX:  101 
      )

      #(#GridBagConstraints anchor: #CENTER fill: #BOTH) decodeAsLiteralArray 

o  fromLiteralArrayEncodingOld: encoding
Read my values from an encoding. This is the reverse to literalArrayEncoding.

o  literalArrayEncoding
Encode myself as an array, from which a copy of the receiver can be
reconstructed with #decodeAsLiteralArray.
usage example(s):
	GridBagConstraints new literalArrayEncoding

o  literalArrayEncodingOld
Encode myself as an array, from which a copy of the receiver can be
reconstructed with #decodeAsLiteralArray.
The encoding is:
(GridBagConstraints
#( Insets left right top bottom )
gridX gridY gridWidth gridHeight weightX weightY ipadX ipadY anchor fill
)

initialization
o  initialize
Set all non-temporary instance variables to default values.
Warning: no application should depend on this default settings and should always initilize
the constraints themselves.



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Mon, 12 Nov 2018 22:13:09 GMT