Component BCOBJECTSELECTION

Attribute summary

Typically used attributes

All attributes are

General attributes are

Attribute details

accessiblename

activationhotkey

Hotkey definition that is used to activat the function that the component provides. The acitivation hotkey is only applied if the user does focus the component. Example: you many define an own hot key within a COMBOFIELD so that the COMBOFIELD activates its value help.

 No keyboard association (default)
ctrl-83Control key + s
alt-83Alt key + s
shift-83Shift key + s
ctrl-shift-83Control key + Shift key + s
10return
32space
37cursor left
38cursor up
39cursor right
40cursor down
33page up
34page down
36Begin
35End
27escape
127Del
65a
66b
67c
68d
69e
70f
71g
72h
73i
74j
75k
76l
77m
78n
79o
80p
81q
82r
83s
84t
85u
86v
87w
88x
89y
90z
480
491
502
513
524
535
546
557
568
579
112F1
113F2
114F3
115F4
116F5
117F6
118F7
119F8
120F9
121F10
122F11
123F12

adapterbinding

Special binding to componet adapter object instance on server side.

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

animatechangeofsize

If set to true then changes of the width/height of the component are animated.

trueWith animation
falseWithout animation (default)

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.

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.

border

Defintion of border of control. Either defined as straight color value, with then having a border of 1 pixel. Or: an explicit per-side definition as comma separated list of border definition values.

#8080801 pixel border in color dark gray.
top:1;color:#808080top:1;color:#808080 : border only on top, 1 pixel height, color #808080
top:1;bottom:1;left:1;right:1;color:#FF0000top:1;bottom:1;left:1;right:1;color:#FF0000 : red border of 1 pixel size
top:1;bottom:1;left:1;right:1;color:#FF0000;dashing:5,2top:1;bottom:1;left:1;right:1;color:#FF0000 : red border of 1 pixel size, dashed with segments of 5 pixesl and 2 pixels; dashing only supported with FX Client!
noborderDefines that no border is painted - esp. in cases when empty borders are normally added (e.g. in grid cells)

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.

colspan

Spanning of columns if used inside a COLSYNCHEDROW.

1Control spans one column (default)
22 columns
33 columns

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.

convertemptystringtonull

dragsend

Description of object that can be dragged from this component. The description consists out of a type and and id. A component may have multiple objects that can be associated.

article:4711Example: article
file:harry.txt;content:Hello world!Example: Multiple object descriptions

dropreceive

Semicolon separated list of object types that can be dropped onto this component.

articleExample: articles can be dropped
article;customerExample: articles and customers can be dropped

enabled

Indicator if component is enabled or not.

trueComponent is enabled.
falseComponent is not enabled.

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

focusdrawborder

By default a border is drawn aroudn a focussed element. This can be switched off by setting this attribute to false.

trueDraw border when focussed (default)
falseNo border when focussed

focussequence

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.

fxstyleseq

Semicolon separated sequence of style class names that are applied to this component.

height

Height 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 components within a grid (FIXGRID) then the sizing of the component is completely managed by the grid, you do not need to specify any height in this case.

100100 Pixels
120120 Pixels
200200 Pixels
50%50 percents
100%Full available height

helpid

Help id that is part of the online help management.

helpidId pointing to a server side online help file.
ccnof1helpExplicitly switching off default F1 help. This is sometimes required in case you want to explicitly react on F1-key as hotkey.

image

Reference to image within your web application. The image either needs to be defined relative to the current page (e.g. ../images/abc.png) or needs to be 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
abc.pngImage abc.png
../images/abc.pngImage ../images/abc.png

imagepressed

Pressed image.

/images/abc.pngImage /images/abc.png
abc.pngImage abc.png
../images/abc.pngImage ../images/abc.png

imagerollover

Rollover image.

/images/abc.pngImage /images/abc.png
abc.pngImage abc.png
../images/abc.pngImage ../images/abc.png

invokeevent

Client side event that triggers a server invoke.

clickMouse click (both mouse buttons)
leftclickMouse click (left mouse button)
rightclickMouse click (right mouse button)
doubleclickMouse double click
leftanyclickBoth click and double click are transferred, check event BaseActionEventInvoke on server side for click count

lowercase

If set to true then all data input will be transferred into lowercase.

truelowercase only
falselower and uppercase (default)

maxlength

Maximum number of characters that a user can input.

 Unlimited (default)
1010 characters
2020 characters

mouseclickarea

Defines the click-sensitive area that triggers the value help event.

iconThe user clicks the icon in order to open the value help (default)
fieldandiconThe user may click onto the whole control in order to open the value help

objectbinding

Binding to server side object property that represents the component on server side. The type of the property needs to fit to the component type. Example: for FIXGRID components the server side property needs to be of type FIXGRIDListBinding or FIXGRIDTreeBinding.

#{xyz.xyz}Binding definition

popupmenu

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

popupmenuloadroundtrip

If set to true, then an explicit roundtrip is triggered when the user presses the right mouse button in order to open a popup menu. As result you can define the popup menu dynamically (using DYNAMICCONTENT) and prepare the popup menu at this point of time when the user want to open it.

falseMenu is already defined in layout, no roundtrip (default)
trueMenu is dynamically created, roundtrip is triggered

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

regex

Regular expression that is used for checking the input while the user updates the content.

[01]+Only 0 and 1, any number
[01]{5}Exactly 5 occurances of 0 or 1

regexhint

regexmode

Mode that controls how the field content is treated in case the user inputs wrong values.

0Component shows error, input value is kept
1Component shows error, input value is reset to previous valid value

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

requestfocus

Indicator, by which you can control the focus to be moved into this component.

creationComponent requests focus when created.
...int value...Counter coming from server side. Please check Developers Guide.

restricttokeys

Limit the input to certain keys only.

 All keys allowed
0123456789Only numbers can be input
aAbBcCOnly a,A,b,B,c,C can be input

rounding

Rounding radius of edges of border/background. This is optical rounding - so has nothing to do with mathematical rounding...

0Straight edges
5Rounding with radius 5
10Rounding with radius 10

rowalignmenty

If more than one component is arranged within one row, then components need to decide how they want to be aligned vertically inside the row - in case the height of the row exceeds the height of the component itself.

topTop
centerCenter (default)
bottomBottom

selectallwhenfocussed

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.

tabonenter

If enabled then the return-key will switch the focus to the next component.

trueSwitch focus on return-key
falseSwitch focus on tab-key only (default)

tabonenteralwaysflush

By default a flushing of a component is only executed if there was a value change of the user. If setting this property to true then a flush event is sent when the user presses the return key, regardless if the value has changed ord not.

trueAlways send flush event on return key
falseOnly send flush event on changes (default)

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;closedelay:1000Duration in milliseconds (in this case: 1000ms) that the client waits before sending a close event to the server side
server:true;opendelay:1000Duration in milliseconds after which a tooltip event is triggered when the user moves the mouse on top of this component
server:true;keeppopup:trueIf the server side processing opens up a modeless popup then this popup is NOT closed when the user moves the mouse into the popup

uppercase

If set to true then all data input will be transferred into uppercase.

trueuppercase only
falselower and uppercase (default)

userhint

Text that is shown as hint below the component. The text appears when the user steps into the component, i.e. when the component is focussed. It automatically disappears when the user steps into the next component. - Please note: the user hint is only activiated by the user if the component is focusable!

userhinttrigger

Trigger for showing the user hint. The user hint is shown in the same way as if the user focused the component.

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 components within a grid (FIXGRID) then the sizing of the component is completely managed by the grid, you do not need to specify any width in this case.

100100 Pixels
120120 Pixels
200200 Pixels
50%50 percents
100%Full available width

x

y