Component PAINTAREALINEITEM

Overview

The PAINTAREALINEITEM component represents a line item within a PAINTAREA component.

Attribute summary

Typically used attributes

All attributes are

General attributes are

Positioning

Used inside: PAINTAREA

Attribute details

actionListener

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

#{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).

#{tobedefined}Binding to IComponentAdapter instance

arrowfrom

From arrow shape.

0No arrow (default)
1Filled arrow
2Filled arrow, double
3Lined arrow
4Lined arrow, double
5Filled lozenge
6Filled square
7Filled circle
8Unfilled arrow
9Unfilled arrow, double
10Unfilled lozenge
11Unfilled square
12Unfilled circle
13Slash
14Backslash

arrowto

To arrow shape.

0No arrow (default)
1Filled arrow
2Filled arrow, double
3Lined arrow
4Lined arrow, double
5Filled lozenge
6Filled square
7Filled circle
8Unfilled arrow
9Unfilled arrow, double
10Unfilled lozenge
11Unfilled square
12Unfilled circle
13Slash
14Backslash

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.

bounds

Position and size of a component. Format: x;y;width;height;z. Width and height are optional - if undefined then the corresponding value is automatically derived. The z value is optional as well.

0;0;100;100At 0,0, width 100, height 100
0;0;100;100;10At 0,0, width 100, height 100. The z-position is 10.
0;0At 0,0 - width and height are derived from the size of the component.

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.

enabled

Indicator if component is enabled or not.

trueComponent is enabled.
falseComponent is not enabled.

fixinterimpointfirst

Defines that the first interim point can not be edited.

truefix point
falsenormal point (default)

fixinterimpointlast

Defines that the last interim point can not be edited.

truefix point
falsenormal point (default)

flush

Indicator if data changed in the component are transferred immediately to the server, causing a normal round trip processing from client to server.

trueFlush is done on data change.
falseNo flush. Data is transferred to server with next round trip.

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.

interimpoints

Interim points: the BOUNDS property contains the start and end point. The IMTRIMPOINTS attribute contains additional points that the line will take before reaching to the end point. The value is a semicolon separated string of x- and y-coordinates. The coordinates are relative to the starting point of the line.

 (default) no interim points
100;50;200;100From begin of line move to 100;50 then to 200;100 then to the end of line

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
mousedownLeft mouse button down

linecolor

Color of line.

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

linedash

Dashing of line. Semicolon separated string with a series of numbers: 1st number is defining the number of pixels that are dranw, 2nd number is defining the number of spaces that are left. This can be continued by adding additional pairs of numbers.

 Straight line
1;1Fine dotted line
5;2Dashed line

lineid

Id of line - which is used to identify the line in the scope of the current PAINTAREA. The LINEID is referenced by PAINTAREAITEM-LINEIDSSTARTING and PAINTAREAITEM-LINEIDSENDING.

linesize

Size / thickness of lines in pixels.

11 pixel
22 pixels
55 pixels

linestyle

Style of drawing the line

default(default) The line is drawn is direct line between two points
edgedThe line is drawn by only using horizontal/vertical lines between two points

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.

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.

trueComponent is rendered (default)
falseComponent is not rendered

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.

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

witheditingofinterimpoints

When true then the user can define the interim points him/herself. In this case the update of interim points will be written back into the property that is assigned to attribute INTERIMPOINTS.

false(default)
trueWith editing of interim points

zindex