JClass BWT Exposed Properties

Once a JClass BWT component has been installed for use inside Visual Cafe, it can be used like any other component. This section outlines the properties exposed for each component. Note that the properties shown in the tables below are the properties added by BWT; they do not show the Component properties.

•	JCArrowButton

•	JCButton

•	JCCheckbox

•	JCCheckboxGroup

•	JCComboBox

•	JCGroupBox

•	JCLabel

•	JCList

•	JCMultiColumnList

•	JCOutliner

•	JCSlider

•	JCProgressMeter

•	JCScrolledWindow

•	JCSeparator

•	JCSpinBox

•	JCSpinBoxString

•	JCSplitterWindow

•	JCTabManager

•	JCTextArea

•	JCTextField


JCArrowButton

Property Name	Description
Orientation	The direction that the arrow is pointing.
Initial Repeat Delay	Sets the time (in ms) to wait before sending continuous button press events while the button is pressed and held down.
Shadow Thickness	Specifies the shadow thickness.
Traversable	Specifies whether the component can accept keyboard focus.


JCButton

Property Name	Description
Alignment	Sets the position of the value within the label
Highlight Color	Color used to show the component has focus.
Label String	The button's label.
Label Image	The button's image.
Shadow Thickness	Specifies the shadow thickness.
Highlight Thickness	Thickness of the highlight rectangle drawn when the component has focus.
Traversable	Specifies whether the component can accept keyboard focus.


JCCheckbox

Property Name	Description
Highlight Color	Color used to show the component has focus.
Highlight Thickness	Thickness of the highlight rectangle drawn when the component has focus.
Traversable	Specifies whether the component can accept keyboard focus.
Label String	The button's label.
Label Image	The button's image.
Indicator Style	Sets the indicator style
Number of States	Sets the maximum number of states that can be set. The default is to allow the button to be set to 0 and 1.
Selected Color	The color of the indicator background when the button is set. This value only applies to FILL and DIAMOND indicators. All other indicators are filled with a white background.
Unselected Color	The color of the indicator background when the button is not set. This value only applies to FILL and DIAMOND indicators. All other indicators are filled with a white background.
Current State	The button's state.
Indicator Image List	Sets a list of indicator images to be used if Indicator Style is INDICATOR_IMAGE


JCCheckboxGroup

Property Name	Description
Shadow Thickness	Specifies the shadow thickness.
Title	Specifies a string to be used as the panel's title.
Orientation	Sets the layout direction: VERTICAL or HORIZONTAL.
Radio Behavior	If true, radiobox-type behavior is enforced on all checkboxes (only one may be selected at a time).


JCComboBox

Property Name	Description
Items	The items to be displayed in the list when it is displayed. To add an item, press CTRL+ENTER.
Text	The text initially displayed in the text field.
Style	The ComboBox's style: COMBOBOX_SIMPLE - list is always displayed, text field is editable; COMBOBOX_DROPDOWN - list is hidden, text field is editable; COMBOBOX_DROPDOWN_LIST - list is hidden, text field is uneditable


JCGroupBox

Property Name	Description
Shadow Thickness	Specifies the shadow thickness.
Title	Specifies a string to be used as the box's title.


JCLabel

Property Name	Description
Highlight Color	Color used to show the component has focus.
Highlight Thickness	Thickness of the highlight rectangle drawn when the component has focus.
Label String	The label's label.
Label Image	The label's image.
Alignment	Sets the position of the value within the label
Shadow Thickness	Specifies the shadow thickness.
Shadow Style	Sets the shadow style: SHADOW_ETCHED_IN - label appears inset; SHADOW_ETCHED_OUT - label appears raised; SHADOW_FRAME_IN - label appears framed in; SHADOW_FRAME_OUT - label appears framed out; SHADOW_IN - label appears inset; SHADOW_OUT - label appears raised; SHADOW_PLAIN - shadow drawn in foreground color; SHADOW_NONE - no shadow


JCList

Property Name	Description
Scrollbar Display Policy	When to display the scrollbars: DISPLAY_ALWAYS - always displayed; DISPLAY_AS_NEEDED - display as necessary; DISPLAY_VERTICAL_ONLY - always display vertical scrollbar only; DISPLAY_HORIZONTAL_ONLY - always display horizontal scrollbar only; DISPLAY_NONE - don't display scrollbars
Scrollbar Offset	The distance between the scrollbars and the viewport.
Items	The items to be displayed in the list. To add an item, press CTRL+ENTER.
Auto Select	If true, the item which currently has focus is also selected.
Selected Background Color	The background color of selected items.
Selected Foreground Color	The foreground color of selected items.
Visible Rows	The number of visible rows. If set to 0, the list will attempt to resize itself so that all its items are visible.
Top Row	The top-most visible row.
Allow Multiple Selection	Specifies whether to allow multiple selections.
Row Height	The height of each row. If the height is set to -997, the height is set to the height of the current font. If the height is set to -998, the height will be calculated for each row.
Spacing Between Rows	Sets the spacing between items. This value increases the Highlight Thickness value.


JCMultiColumnList

Property Name	Description
Scrollbar Display Policy	Specifies when to display the scrollbars: DISPLAY_ALWAYS - always displayed; DISPLAY_AS_NEEDED - display as necessary; DISPLAY_VERTICAL_ONLY - always display vertical scrollbar only; DISPLAY_HORIZONTAL_ONLY - always display horizontal scrollbar only; DISPLAY_NONE - don't display scrollbars
Scrollbar Offset	The distance between the scrollbars and the viewport.
Column Labels	The column labels. To add a label, press CTRL+ENTER
Column Buttons	The button labels for each column. To add a button, press CTRL+ENTER.
Number of Columns	The current number of columns.
Items	The items to be displayed in the list. The value for each column is separted by a comma. To add an item, press CTRL+ENTER.
Auto Select	If true, the item which currently has focus is also selected.
Selected Background Color	The background color of selected items.
Selected Foreground Color	The foreground color of selected items.
Visible Rows	The number of visible rows. If set to 0, the list will attempt to resize itself so that all its items are visible.
Top Row	The top-most visible row.
Allow Multiple Selection	Specifies whether to allow multiple selections.
Row Height	The height of each row. If the height is set to -997, the height is set to the height of the current font. If the height is set to -998, the height will be calculated for each row.
Spacing Between Rows	Sets the spacing between items. This value increases the Highlight Thickness value.
Column Label Sort	Specifies whether a column is sorted when its button is clicked.


JCOutliner

Property Name	Description
Scrollbar Display Policy	Specifies when to display the scrollbars: DISPLAY_ALWAYS - always displayed; DISPLAY_AS_NEEDED - display as necessary; DISPLAY_VERTICAL_ONLY - always display vertical scrollbar only; DISPLAY_HORIZONTAL_ONLY - always display horizontal scrollbar only; DISPLAY_NONE - don't display scrollbars
Scrollbar Offset	The distance between the scrollbars and the viewport.
Column Labels	The column labels. To add a label, press CTRL+ENTER
Column Buttons	The button labels for each column. To add a button, press CTRL+ENTER.
Number of Columns	The current number of columns.
Nodes	The nodes in the tree. To add a node, press CTRL+ENTER. Press space to indent a level in the hierarchy. Nodes with the same indentation level have the same parent. Nodes without children are assumed to be items. To create a folder without children, append the string "(FOLDER)" to the line.
Auto Select	If true, the node which currently has focus is also selected.
Selected Background Color	The background color of selected nodes.
Selected Foreground Color	The foreground color of selected nodes.
Visible Rows	The number of visible rows. If set to 0, the list will attempt to resize itself so that all its nodes are visible.
Spacing Between Rows	Sets the spacing between nodes. This value increases the Highlight Thickness value.
Root Visible	If true, the root node is drawn.
Node Height	The height of each node in pixels. If 0, the height is determined by using the largest font and image height in the list of node styles.
Auto Select	If true, the node which currently has focus is also selected.
Node Indentation	Sets the indentation of each node relative to its parent.
Spacing	Sets the spacing between nodes. This value increases the Highlight Thickness value.
Visible Rows	The number of visible rows. If set to 0, the list will attempt to resize itself so that all its nodes are visible.


JCSlider

Property Name	Description
Orientation	Sets the layout direction: VERTICAL or HORIZONTAL.
Value	The slider's current value.
Page Increment	Sets the page increment. This is the amount that the thumb will move when the user clicks above/below it.
Auto Tick	If true, a tick mark is drawn at each page increment. This value is ignored if Number of Ticks is non-zero.
Minimum Label	Sets the label to be displayed at the slider's minimum end.
Maximum Label	Sets the label to be displayed at the slider's maximum end.
Minimum	The slider's minimum value.
Maximum	The slider's maximum value.
Number of Ticks	Sets the number of tick marks to be displayed. If this value is non-zero, it overrides the Auto Tick value.


JCProgressMeter

Property Name	Description
Minimum	The meter's minimum value.
Maximum	The meter's maximum value.
Value	The meter's current value.
Label	Sets the label. If set, this value overrides the Auto Label value.
Label Position	Sets the label's position, relative to the bar.
Auto Label	If true, a label will be displayed showing the meter's value as a percentage. If Label is not null, it will be displayed instead. If set to true and Label Width has not been set, its value is set to 4.
Label Width	Sets the maximum number of characters which will be displayed, if Show Label is true (default: 4 if Auto Label is true, 10 otherwise).
Show Label	If true, a label will be displayed.
Bar Color	The bar's color
Bar Count	The number of discrete bars eventually displayed.
Bar Spacing	The space (in pixels) between each bar, if Bar Count is greater than 1.


JCScrolledWindow

Property Name	Description
Scrollbar Display Policy	Specifies when to display the scrollbars: DISPLAY_ALWAYS - always displayed; DISPLAY_AS_NEEDED - display as necessary; DISPLAY_VERTICAL_ONLY - always display vertical scrollbar only; DISPLAY_HORIZONTAL_ONLY - always display horizontal scrollbar only; DISPLAY_NONE - don't display scrollbars
Scrollbar Offset	The distance between the scrollbars and the viewport.


JCSeparator

Property Name	Description
Orientation	The separator's orientation.


JCSpinBox

Property Name	Description
Minimum	The box's minimum value.
Maximum	The box's maximum value.
Value	The box's current value.
Decimal Places	The number of decimal points used when displaying the value.
Auto Arrow Disable	If true, the increment or decrement arrow button is disabled when the end of the range is reached. If set to false, the buttons are always enabled.
Increment	The amount by which to increment or decrement the value.


JCSpinBoxString

Property Name	Description
Position	The position of the currently displayed item (the index in the String List).
String List	The array of values to be displayed. To add an item, press CTRL+ENTER.
Auto Arrow Disable	If true, the increment or decrement arrow button is disabled when the end of the range is reached. If set to false, the buttons are always enabled.


JCSplitterWindow

Property Name	Description
Orientation	The window's orientation.
Minimum Child Size	The minimum size (in pixels) to which a child can be resized by the user.


JCTabManager

Property Name	Description
Alignment	The default position of the tab's label within its shadows.
Tab Labels	The tab's labels. To add an item, press CTRL+ENTER.
Current Tab Font	The current tab's font.
Tab Style	The tab's corner shape.
Tab Side	The side of the tabManager on which to display the tabs.
Tab Spacing	the spacing between tabs in pixels. When set to a negative value, the tabs overlap.
Tab Color Policy	The policy for the tab's colors: COLOR_PAGE - Sets the tab's color to the page's color; COLOR_INHERIT - Sets the tab's color to the tab manager's color
First Visible Tab	The first tab currently visible.
Tab Resize	Specifies whether all tabs should be resized to the width and height of the largest tab in the same row.
Stretch Tabs to Fit	Specifies whether all tabs should be stretched if necessary to fill the entire side. This resource is ignored when scrolling tabs.


JCTextArea

Property Name	Description
Text	The component's text
Editable	Whether this component is editable.
Traversable	Specifies whether the component can accept keyboard focus.
Multiline	If true, the user can break text into multiple lines by hitting Enter.
Overstrike	If false, characters typed by the user are inserted into the current text.
Show Cursor Position	If set to true, the cursor position will be indicated with a vertical I-beam.
Cursor Position	Sets the initial position of the cursor.
Rows	Sets the number of rows. The component will attempt to resize itself to display this number of lines in the current font.
Maximum Length	the maximum number of characters which may be entered by the user. If the user attempts to enter more characters, the values will be ignored and the bell will be sounded. This value is ignored for values set programatically.
Columns	Sets the number of columns. The component will attempt to resize itself to display this number of N's in the current font.
Shadow Thickness	The shadow's thickness.
Top Row	Sets the initial top-most visible row.
Alignment	Sets the position of the text.
Selected Background Color	The background color of selected text.
Selected Foreground Color	The foreground color of selected text.
Case	The case of text entered by the user or set programatically: CASE_AS_IS - No conversion; CASE_LOWER - Convert to lower case; CASE_UPPER - Convert to upper case
Scrollbar Display Policy	Specifies when to display the scrollbars: DISPLAY_ALWAYS - always displayed; DISPLAY_AS_NEEDED - display as necessary; DISPLAY_VERTICAL_ONLY - always display vertical scrollbar only; DISPLAY_HORIZONTAL_ONLY - always display horizontal scrollbar only; DISPLAY_NONE - don't display scrollbars
Scrollbar Offset	The distance between the scrollbars and the viewport.


JCTextField

Property Name	Description
Text	The component's text
Editable	Whether this component is editable.
Traversable	Specifies whether the component can accept keyboard focus.
Highlight Color	Color used to show the component has focus.
Highlight Thickness	Thickness of the highlight rectangle drawn when the component has focus.
Overstrike	If false, characters typed by the user are inserted into the current text.
Show Cursor Position	If set to true, the cursor position will be indicated with a vertical I-beam.
Cursor Position	Sets the initial position of the cursor.
Maximum Length	the maximum number of characters which may be entered by the user. If the user attempts to enter more characters, the values will be ignored and the bell will be sounded. This value is ignored for values set programatically.
Columns	Sets the number of columns. The component will attempt to resize itself to display this number of N's in the current font.
Shadow Thickness	The shadow's thickness.
Alignment	Sets the position of the text.
Selected Background Color	The background color of selected text.
Selected Foreground Color	The foreground color of selected text.
Case	The case of text entered by the user or set programatically: CASE_AS_IS - No conversion; CASE_LOWER - Convert to lower case; CASE_UPPER - Convert to upper case
Echo Character	Sets the echo character. This is useful for fields where the user input shouldn't be echoed to the screen, as in the case of a password. Only the first character is used.