Professional Documents
Culture Documents
Jaya's
Technical Posts, Links and Good Quotes
FR I D A Y , J A N U A R Y 15 , 2 01 0
Total Visitors
GroupBox / FieldSet Legend Component / Spark Skin in Flex 4
I have written a new custom component/spark skin for Group Box. I tried with many of the GroupBox components that are developed in
Flex 3. But somehow, I was not able to get it working as I expected. So, I ended up creating a Spark Skin and custom component for this
Group Box.
Archives
Here is the sample look and feel of the component. It can be rendered with out label as well. ▼ 2010 (2)
► May (1)
▼ January (1)
GroupBox / FieldSet Legend
Component / Spark Skin ...
► 2009 (2)
About Me
Jayachandra / Jagadish
Adusumalli
Guntur, Tirupati, Andhra
Pradesh, India
View my complete profile
1. Create a Custom Component called GroupBox which has a Property called "label"
2. Create a GroupBox Spark Skin which accepts arguments for Label. (Can add more arguments for background shadow)
3. Make use of the new GroupBox component with the GroupBoxSkin in your component mxml
01 package com.edsoft.flex.controls
02 {
03 import spark.components.SkinnableContainer;
04
05 public class GroupBox extends SkinnableContainer
06 {
07 private var _label : String;
08
09 public function GroupBox()
10 {
12
11 }super();
13
14 public function get label():String
15 {
16 return _label;
17 }
18
19 public function set label(value:String):void
20 {
21 _label = value;
22 }
23 }
24 }
…blogspot.com/…/groupbox-fieldset-lege… 2/2