From 4db531c05de83ff150f5dcd707d14c7259e5d363 Mon Sep 17 00:00:00 2001 From: Olivier Aubert Date: Thu, 23 Feb 2012 11:46:22 +0100 Subject: [PATCH] Obsel skins: handle visible style property --- src/com/ithaca/timeline/skins/IconSkin.mxml | 7 +++++++ src/com/ithaca/timeline/skins/IconTextSkin.mxml | 8 ++++++++ src/com/ithaca/timeline/skins/MarkerSkin.mxml | 8 ++++++++ 3 files changed, 23 insertions(+) diff --git a/src/com/ithaca/timeline/skins/IconSkin.mxml b/src/com/ithaca/timeline/skins/IconSkin.mxml index ec020a7..ba8c850 100644 --- a/src/com/ithaca/timeline/skins/IconSkin.mxml +++ b/src/com/ithaca/timeline/skins/IconSkin.mxml @@ -71,6 +71,13 @@ { icon.toolTip = obsel.props[hostComponent.getStyle("tooltipProp")]; } + + if (hostComponent.getStyle("visible") == 'false') + { + icon.visible = false; + } + else + icon.visible = true; } ]]> diff --git a/src/com/ithaca/timeline/skins/IconTextSkin.mxml b/src/com/ithaca/timeline/skins/IconTextSkin.mxml index f71a357..1626f39 100644 --- a/src/com/ithaca/timeline/skins/IconTextSkin.mxml +++ b/src/com/ithaca/timeline/skins/IconTextSkin.mxml @@ -87,6 +87,14 @@ { icon.toolTip = obsel.props[hostComponent.getStyle("tooltipProp")]; } + + if (hostComponent.getStyle("visible") == 'false') + { + icon.visible = false; + } + else + icon.visible = true; + } protected function onTextChange(event: Event): void diff --git a/src/com/ithaca/timeline/skins/MarkerSkin.mxml b/src/com/ithaca/timeline/skins/MarkerSkin.mxml index 190256f..3e646cc 100644 --- a/src/com/ithaca/timeline/skins/MarkerSkin.mxml +++ b/src/com/ithaca/timeline/skins/MarkerSkin.mxml @@ -123,6 +123,14 @@ { icon.toolTip = obsel.props[hostComponent.getStyle("tooltipProp")]; } + + if (hostComponent.getStyle("visible") == 'false') + { + icon.visible = false; + } + else + icon.visible = true; + } protected function onToolTipShow(event: ToolTipEvent): void