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.5 date: 2021/01/20 14:40:21
user: cg
file: GridBagConstraints.st directory: libwidg2
module: stx stc-classLibrary: libwidg2

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.

copyright

COPYRIGHT (c) 1998 by Andreas Vogel COPYRIGHT (c) 1998 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 15:50:20 GMT