Component GRIDCOL

Overview

The GRIDCOL component represents one column within a FIXGRID grid.

Inside one GRIDCOL you can define exactly one cell control as sub-component (e.g. you arrange a LABEL or a FIELD inside). The cell control itself can be any control, including e.g. a PANE which internally sub-divides into other components. The cell control is arranged as first control inside the GRIDCOL definition.

You may also arrange a second control below the GRIDCOL definition, which is then rendered in the header of the column.

Attribute summary

Typically used attributes

All attributes are

Positioning

Used inside: FIXGRID, GRIDCOLGROUP

Using inside: ACTIVEX, ADAPTIVETILECONTAINER, ADAPTIVETOOLBAR, ANIMATEICON, ARRAYGRID, AUTOCOMPLETE, AVATARICON, AWESOMEFONTICON, BROWSER, BUTTON, BUTTONCOPYPASTEACTIVATION, BUTTONMENU, BUTTONPOPUP, BUTTONPOPUPMENU, BUTTONVERTICAL, CALENDAR, CALENDARFIELD, CAMERA, CAMERARECORDER, CHARTJS, CHECKBOX, CLIENTFILEEXPLORER, CLOCK, CODEEDITOR, COLDISTANCE, COLLINE, COLORFIELD, COLORICON, COMBOBOX, COMBOFIELD, DIRECTHTMLINSERT, DRAWAREA, DYNAMICCONTENT, FIELD, FILECHOOSER, FILEDOWNLOADBUTTON, FILEDOWNLOADLINK, FILEUPLOAD, FILEUPLOADBUTTON, FILEUPLOADBUTTONASYNCHRONOUS, FILEUPLOADLINK, FILEUPLOADLINKASYNCHRONOUS, FIXGRID, FIXGRIDTOUCHBUTTON, FIXGRIDWITHGROUPING, FONTICON, FORMATTEDFIELD, FULLSCREENBUTTON, FXCHART, GRIDHEADERLABEL, GRIDROWSELECTOR, HELPICON, HEXIMAGE, HEXIMAGEMAP, HIDEABLE, HYPERLINK, ICON, ICONSEPTEXT, IFRAMEINCLUDE, IMAGE, IMAGEANONYMIZER, IMAGEANONYMIZERDIRECT, IMAGEMAP, IMAGESHAKER, JRVIEWER, KEYBOARDSCANNER, KEYSELECTOR, LABEL, LABELCONTAINER, LABELMULTILINE, LABELVERTICAL, LINK, LINKVERTICAL, LIST, LONGTEXTFIELD, MEDIAPLAYER, MENUBAR, MULTILABEL, OSMVIEWER, OUTLOOKBAR, PAGEBEANCOMPONENT, PAGEBEANINCLUDE, PANE, PARENTEXIT, PASSWORD, PDFRENDERER, PDFRENDERERVIAURL, PICKLIST, POOLEDBROWSER, PROGRESSBAR, QRCODESCANNERJSQR, RADIAL, RADIOBUTTON, RADIOBUTTONGROUP, REPEAT, RGRAPH, SCANFIELD, SCENEJS, SCHEDULE, SCROLLANCHOR, SCROLLBAR, SCROLLNOTIFIER, SCROLLPANE, SHIFTCONTAINER, SIMPLEHTMLEDITOR, SLIDECONTAINER, SLIDER, SLIDERRANGE, SMARTLABEL, SMARTTEXTAREA, SPANGRID, SPINNER, SUBPAGE, SVGVIEWER, SYSTEMICON, TABBEDLINE, TABBEDLINEVERTICAL, TEXTAREA, TEXTAREAWITHCOMMENT, TEXTEDITOR, TEXTPANE, TEXTPANEVERTICAL, TEXTWITHLINKS, TIMEPICKER, TOGGLE, TOUCHFIELD, TOUCHFIELDNUMERIC, TOUCHSELECTOR, TOUCHSIGNATURE, TOUCHVIRTUALKEYBOARD, TREENODE, VIDEO, WINDOWSIZER, WORKPLACEPERSPECTIVESELECTOR

Attribute details

accessiblename

Text that is passed as control content to the accessible support devices (e.g. screen readers).

actionListener

Binding to server side method that processes the events coming from this component.

The attribute value must be an expression.

#{methodBinding}Method binding

adapterbinding

Special binding to component adapter object instance on server side. The component adapter must be an instance of IComponentAdapterBinding. For some components (e.g. FIXGRID) there is an extended interface (e.g. IFIXGRIDComponentAdapterBinding).

The attribute value must be an expression.

#{tobedefined}Binding to IComponentAdapter instance

align

Horizontal alignment of content.

leftleft (transferred into right when starting client in right to left mode)
left!left (still is left when starting client in right to left mode)
centercenter
rightright (transferred into left when starting client in right to left mode)
right!right! (still is right when starting client in right to left mode)
leadingleading
trailingtrailing

attributemacro

Name of macro that is used for generating certain attributes of this component. Please pay attention: the value of this attribute is read one time for each control and cannot be changed afterwards.

The attribute value must not be changed once the component is created.

avoidexport

By default the data for the grid column can be exported into various formates (e.g. csv, pdf, xml). By using this attribute you can exclude this grid column to be part of any exported data.

falseColumn is exported (default)
trueColumn is not exported

avoidselection

By default a grid row is selected when the user puts the focus into the component that is contained within the column. By defining this attribute you can override this behaviour - there will be no grid selection when focussing this component.

The attribute value must not be changed once the component is created.

falseFocus in component will select row (default)
trueNo row selection

background

Background color of the component. Any RGB value can be chosen using format #rrggbb.

#FFFFFFWhite
#000000Black
#FF0000Red
#00FF00Green
#0000FFBlue
#0000FF30Blue with a transparency of x30.

bgpaint

Background paint commands. There is a sequence of paint commands which can be executed one after the other by listing them as semicolon separated list. - By appending certain suffixes to a command you can define that the command is only executed in a certain situation. Available suffixes are: _empty (content of component is empty), _focus, _nofocus, _enabled, _disabled, _mouseover. Multiple suffixes can be used in parallel (e.g. write_empty_focus).

---------- bgpaint commands for all clients -----
error()Component indicates error.
mandatory()Component indicates mandatory input. Only is shown if component does not have any content yet.
bgbackground(#FF0000)Background with one color
bgbackground(#FF0000,#0000FF,vertical)Background as gradient of two colors
bgimage(left,/images/xyz.png)Image at certain position
bgwrite(left,...text...)Text at certain position
bgwrite(left,...text...,#800000,12)Text at certain position with defined color and size
---------- bgpaint commands for Java clients -----
rectangle(0,0,100%,100%,#FF0000)Red rectangle
rectangle(20,20,100,100,#FF0000)Red rectangle from 20,20 to 120,120
rectangle(20,20,100%-40,100%-40,#FF0000)Minus absolute values is allowed after percentage definitions
rectangle(0,0,100%,100%,#FF0000,#00FF00,vertical)Rectangle with color changing from red to green in vertical direction
roundedrectangle(0,0,100%,100%,10,10,#FF0000,#00FF00,vertical)Rectangle with color changing from red to green in vertical direction
line(0,0,100%,100%,1,#00FF00)Green line crossing the whole rectangle, from coordinate 0,0 to coordinat 100%,100%, thickness of line is 1
image(0,0,/images/xyz.png,lefttop)Image output x,y,image,position (lefttop/centermiddle/rightbottom...)
image(0,0,200,100,/images/xyz.png,lefttop)Image output x,y,width,heigh,image,position (lefttop/centermiddle/rightbottom...)
scaledimage(0,0,200,100,/images/xyz.png,lefttop)Scaled image output, the width/height ration is kept while scaling : x,y,width,heigh,image,position (lefttop/centermiddle/rightbottom...)
heximage(0,0,08FF40324672849CDFE...,lefttop)Image output x,y,hexadecimal image,position (lefttop/centermiddle/rightbottom...)
heximage(0,0,200,100,08FF40324672849CDFE...,lefttop)Image output x,y,width,height,hexadecimal image,position (lefttop/centermiddle/rightbottom...)
scaledheximage(0,0,200,100,08FF40324672849CDFE...,lefttop)Scaled image output x,y,width,height,hexadecimal image,position (lefttop/centermiddle/rightbottom...)
border(0,0,100%,100%,#C0C0C0,2)Rectangular border with thickness 2
roundedborder(0,0,100%,100%,10,10,#C0C0C0,2)Rounded border with thickness 2
write(0,0,Some text,lefttop)Some text in the left top corner
write(50%,50%,Some text,20,#00FF00,centermiddle)Some text in the left center, font size 20, font color green
write(50%,50%,Some text,20,#00FF00,bold,centermiddle)Some text in the left center, font size 20, font color green,bold
write(50%,50%,Some text,20,#00FF00,italic,centermiddle)Some text in the left center, font size 20, font color green,italic
write(50%,50%,Some text,20,#00FF00,normal,centermiddle)Some text in the left center, font size 20, font color green,normal
write(0,100%,Some text,20,#00FF00,default,lefttop,90)Some text in the left bottom corner, font size 20, font color green, 90 degrees rotated
write(20,100%,Some text,20,#00FF00,default,lefttop,90,-1,1)Some text in the left bottom corner, font size 20, font color green, 90 degrees rotated. x scaling -1, y scaling 1
write(20,100%,Some text,20,#00FF00,bold,lefttop,90,-1,1)Some text in the left bottom corner, font size 20, font color green, 90 degrees rotated. x scaling -1, y scaling 1
writeifempty(0,0,Some text,lefttop)Same as write-command, but now only visible if component contains data
writeifempty(50%,50%,Some text,20,#00FF00,centermiddle)Same as write-command, but now only visible if component contains data
writemultiline(0,0,100%,100%,Some text)Some text into the defined rectangle. Only fully supported with FX client, in Swing client the text will be output as one line.
writemultiline(0,0,100%,100%,Some text,20,#FF0000,bold)Some text into the defined rectangle. In additional font size, text color and text style (normal,bold,italic) are passed. Only fully supported with FX client, in Swing client the text will be output as one line.
oval(0,0,100%,100%,#FF0000)Red ellipse
oval(0,0,100%,100%,#FF0000,#00FF00,vertical)Red ellipse with color changing from red to green
ovalborder(0,0,100%,100%,#FF0000,2)Red ellipse border, red, 2 pixels thick
grid(100,#00000020)Grid with line distance 100, black line color - with transparency
nodisabled()Switches off the automated shading of disabled input components
background(#FF0000)Sets the background of the painted area.
backgroundnofocus(#FF0000)Sets the background of the painted area - which is only drawn if the component does not hold the focus.
repeatimage(/images/xyz.png)The image is repeated and drawn all over the available space.

bordercolor

The color of the border that is rendered between the controls of the grid. When no border color is defined then the background will shine through.

#FFFFFFWhite
#000000Black
#FF0000Red
#00FF00Green
#0000FFBlue
#0000FF30Blue with a transparency of x30.

borderwidth

Width of the border between the cells of the grid.

0No border between cells.
1Border of 1 pixel height

clientname

Name that is assigned to the component at client side: there is no specific function associated with the name - but it can be used on client side to describe the component in a clearer way. The name is e.g. used by UI test tools that replay certain user interaction sequences - and that reference components via their name.

columnmovingenabled

Allows the user to move the column and to place other columns in front/behind the column.

trueEnabled (default)
falseNo moving of columns by the user

columnresizerbackground

columnresizingalwaysshowtitle

By default the user can resize the column to any width. This may have the consequence that the tile text and titel content will be abbreviated or cut. By defining true you specify that the user cannot resize the column to a width which is lower than the content of the title/header cell.

false(default) No restrictions during resizing
trueTitle/Header always shown

columnresizingenabled

Allows the user to change the size of the columns.

The attribute value must not be changed once the component is created.

trueEnabled (default)
falseNo sizing of columns by the user

comment

Comment that can be asigned to any component. The comment is not operationally used.

Any textAny text

configinfo

Configuration information that is attached to this component. This information is not functionally used by CaptainCasa, but may be used for any application specific purpose.

dynamicwidthsizing

When switching to true, then the width of a column is dynamically calculated out of the width of its cells on client side. But, pay attention: the client only is aware of these items which actually are shown - so the consequence is, that the size of the column changes with every scroll operation. When setting to true, then the size defined within the WIDTH attribute is treated as minimum size, that is always guaranteed.

falsesizing according to width definition (default)
truedynamic width sizing enabled

exportreference

Reference to the value of the grid column that is explicitly used for export activites. This attribute can be used in addition to the SORTREFERENCE when binding the sorting to some other item properties than the exporting.

exportreferenceformat

Format of the value that is referenced by EXPORTREFERENCE.

intint
longlong
shortshort
floatfloat
doubledouble
datedate
timetime
datetimedate and time
bigintegerbiginteger
bigdecimalbigdecimal
passwordOnly for LABEL-usage: output as password
booleanOnly for LABEL-usage: output of true/false/null with corresponding zapf-dingbat characters

exportreferenceformatmask

Format mask of the value that is referenced by EXPORTREFERENCE.

shortShort format (date/time/datetime only)
mediumMedium format (date/time/datetime only)
longLong format (date/time/datetime only)
dec*Number of decimal digits that are always shown, * any number (float/double/bigdecimal only)
dec11 decimal digit (always)
dec22 decimal digits (always)
dec33 decimal digits (always)
decmax*Number of decimal digits that are shown - if available
decmax11 decimal digit (if not 0)
decmax22 decimal digits (if not 0)
decmax33 decimal digits (if not 0)
...explicit format...Any format string in which the following replacements are done: y=Year,M=month,d=day,H=hour,m=minute,s=second
yyyy-MM-ddExample for military date format
yy-MM-ddExample for military date format, year with 2 digits
E yyyy-MM-ddName of week day, then followed by military date format
HH:mmHour (0-23) with minutes
hh:mm aaHour (0-12) with minutes, am/pm
HH:mm:ssHour with minutes and seconds
...special formats...Special formats for integer input
####No thousands separator
...special formats...Special formats for decimal input
dig*Number of decimal digits depends on value, so that * is the minimum number of digits that is shown in total
dig21.1111 > 1.1, 11.11 > 11, 111.1 > 111
dig31.1111 > 1.11, 11.11 > 11.1, 111.1 > 111
*_adpANY DECIMAL POINT: appendix to all decimal format definitions, the last , or . is interpreted as decimal separator always

exportreferencetimezone

Time zone of the value that is referenced by EXPORTREFERENCE. Only required if value is a Date-value.

LOCALTo be set if using LocalDate/LocalTime on server side
-------------------------
GMTGMT - Greenwich Mean Time (no daylight saving)
UTCUTC - Coordinated Universal Time (no daylight saving)
-------------------------
CETCET - Central European Time
Europe/ParisEurope/Paris
Africa/HarareAfrica/Harare
Asia/Tel_AvivAsia/Tel_Aviv
......

exportwidth

When exporting the grid to PDF or XLS (Excel) then the exporter tries to calculate a column width out of the normal WIDTH attribute. In some cases (e.g. percentage values) this calculation is not really optimal. You can define an explicit export width which overrides any calculation.

 automated calculation (default)
100100
200200
300300

focusable

Defines if the component is focusable. The default depends on the component: typical input components (field, check box, ...) are focusable by default, while typical structure components (pane, label, ...) are not focusable by default.

trueFocusable
falseNot focusable

font

Semicolon separated list of font attributes. Valid attributes are: faces (font family), size (integer number), weight (bold), posture (italic)

family:Arialfamily:Arial
family:Courierfamily:Courier
size:12size:12
weight:boldweight:bold
size:12;weight:boldsize:12;weight:bold
size:12;posture:italicsize:12;posture:italic

foreground

Foreground color of the component. Any RGB value can be chosen using format #rrggbb.

#FFFFFFWhite
#000000Black
#FF0000Red
#00FF00Green
#0000FFBlue
#0000FF30Blue with a transparency of x30.

image

Reference to image within your web application. The image is defined in an absolute way (e.g. /images/abc.png) - the root directory for absolute addressing is the directory of the web application.

/images/abc.pngImage /images/abc.png
/images/svg/def.svgImage /images/svg/def.svg

keepcellborder

If true then the border and the padding of the component is kept. Otherwise border and padding are managed by the grid.

The attribute value must not be changed once the component is created.

falseBorder/padding are removed by grid processing (default)
trueBorder/padding of component are kept.

multiline

If set to true then the text is rendered in multiple lines if required.

falseSingle line (default)
trueMulti line

onlyshowfullcolumnsprio

Only considered if FIXGRID-ONLYSHOWCOLUMNS is set to true: you may define a priority to each column, in case of insufficient screen space these columns with lowest priority are not shown first.

1Highest priority
2...lower than 1...
3...lower than 2...
 lowest priority (default)

persistid

popupmenu

Reference to the id of a POPUPMENU definition that is available either in this page or in a page that includes this page.

reference

Reference to an outside object that is the content behind the component. E.g. a field is representing a certain field of a database table: in this case you could define the value table;column. The reference plays a siginficant role within the attributemacro management.

The attribute value must not be changed once the component is created.

refOne reference
ref1;ref2Two references
ref1;ref2;ref3Three references

rendered

Flag that indicated if this component is rendered at all. If set to false then the component is not rendered - there is no component data sent to the client.

The attribute value must be an expression.

trueComponent is rendered (default)
falseComponent is not rendered

searchenabled

If enabled then the user can open a search field by clicking with the right mouse button onto the header column.

The attribute value must not be changed once the component is created.

trueSearch is enabled.
falseSearch is not enabled (default)

sortenabled

If set to false then no sorting is supported for this grid column.

trueSort is enabled (default).
falseSort is not enabled

sortreference

Reference to the value of the grid column. The value is the one that is referenced within the grid cell (e.g. the field). On GRIDCOL level the reference is required for e.g. sorting and for e.g. export functions (PDF export). Then name is a bit confusing: the first usage of the reference was sorting, so that's the background behind the name SORTREFERENCE. In the meantime, many more functions access this reference, so a better name would be VALUEREFERENCE. Due to compatibility we still keep the name SORTREFERENCE. - If the component inside a GRIDCOL is a straight component (e.g. FIELD, LABEL, ...), and not a composite component (e.g. PANE) then the SORTREFERENCE is determined automtically out of the component. You only need to define in case of complex cell components.

The attribute value must be an expression.

sortreferenceformat

Format of the value that is referenced by SORTREFERENCE.

intint
longlong
shortshort
floatfloat
doubledouble
datedate
timetime
datetimedate and time
bigintegerbiginteger
bigdecimalbigdecimal
passwordOnly for LABEL-usage: output as password
booleanOnly for LABEL-usage: output of true/false/null with corresponding zapf-dingbat characters

sortreferenceformatmask

Format mask of the value that is referenced by SORTREFERENCE.

shortShort format (date/time/datetime only)
mediumMedium format (date/time/datetime only)
longLong format (date/time/datetime only)
dec*Number of decimal digits that are always shown, * any number (float/double/bigdecimal only)
dec11 decimal digit (always)
dec22 decimal digits (always)
dec33 decimal digits (always)
decmax*Number of decimal digits that are shown - if available
decmax11 decimal digit (if not 0)
decmax22 decimal digits (if not 0)
decmax33 decimal digits (if not 0)
...explicit format...Any format string in which the following replacements are done: y=Year,M=month,d=day,H=hour,m=minute,s=second
yyyy-MM-ddExample for military date format
yy-MM-ddExample for military date format, year with 2 digits
E yyyy-MM-ddName of week day, then followed by military date format
HH:mmHour (0-23) with minutes
hh:mm aaHour (0-12) with minutes, am/pm
HH:mm:ssHour with minutes and seconds
...special formats...Special formats for integer input
####No thousands separator
...special formats...Special formats for decimal input
dig*Number of decimal digits depends on value, so that * is the minimum number of digits that is shown in total
dig21.1111 > 1.1, 11.11 > 11, 111.1 > 111
dig31.1111 > 1.11, 11.11 > 11.1, 111.1 > 111
*_adpANY DECIMAL POINT: appendix to all decimal format definitions, the last , or . is interpreted as decimal separator always

sortreferencetimezone

Time zone of the value that is referenced by SORTREFERENCE. Only required if value is a Date-value.

LOCALTo be set if using LocalDate/LocalTime on server side
-------------------------
GMTGMT - Greenwich Mean Time (no daylight saving)
UTCUTC - Coordinated Universal Time (no daylight saving)
-------------------------
CETCET - Central European Time
Europe/ParisEurope/Paris
Africa/HarareAfrica/Harare
Asia/Tel_AvivAsia/Tel_Aviv
......

styleseq

Style class names that are applied to this component.

stylevariant

In CaptainCasa you can define styles definitions for components. A style definition is a definition of a set of default attribute values that are applied to the component. In case you want to differenciate between different usage types of the component you can apply multiple styles - and use the stylevariant attribute to select between.

text

Text that is shown and (dependent from the component type) edited inside the component. The terminator is a decimal byte value.

textabbreviation

Abbreviated text that is shown if there is not sufficient screen space for the normal text.

textcutwidth

Cut the text if no sufficient space available.

trueCut text if not enough space
falseDo not cut text (default)

texttransform

Transformation of text before it is displaeyd

lowercaseDisplay in lowercase
uppercaseDisplay in uppercase
capitalizeTransforms the first character of each word to uppercase

textwidth

Width of the text label that is part of the column header. By default this is 100%, because the label spans the whole column header. But you may set an explicit value when using the possibility to explicitly arrange a component on the right of the text.

100100 Pixels
120120 Pixels
200200 Pixels
50%50 percents
100%Full available width
100%;100Full available width, minimum 100 pixels
100%;100;500Full available width, minimum 100 pixels, maximum 500 pixels
100%;;500Full available width, maximum 500 pixels

tooltip

Text that is shown as hint when the user stays with the mouse on top of the control for a while.

...anytext...Text that is displayed as tooltip.
server:trueIndicator that tooltip for the component is managed on server side. The actionListener will be invokde with events BaseActionEventTooltipStarted and BaseActionEventTooltipEnde. On server side you may implement some modeless popup in order to show some more complex tooltip
server:true;opendelay:1000Duration in milliseconds after which a tooltip event is triggered when the user moves the mouse on top of this component

usesmartlabel

If set to true then a SMARTLABEL is user for rendering the text. This allows you to pass smart text definitions as text.

falseNormal label used (default)
trueSmart label used (single line)
multilineSmart label used (multi line)

width

Width of the control. Either defined as absolute value or as percentage value. Pay attention when using percentage sizing: the size refers to what is given from the components above. When using percentage sizing then you may use an extended syntax: "xxx%;<min>;<max>": in this case the minimum and maximum definitions are respected. - Please note: the sizing may be completely taken over by the parent component (e.g. if a component is used in a grid cell), in this case the size definintions on this component level are obsolete.

The attribute value must not be changed once the component is created.

100100 Pixels
120120 Pixels
200200 Pixels
50%50 percents
100%Full available width
100%;100Full available width, minimum 100 pixels
100%;100;500Full available width, minimum 100 pixels, maximum 500 pixels
100%;;500Full available width, maximum 500 pixels