rocky的空间

Wednesday Sep 01, 2010

应用程序向导

In the previous four modules, you learned to create, debug and deploy a Flex application. In this module, you'll learn how to change the appearance of the application using styling and skinning. With styling, you set component styles inline in MXML or preferably in a style sheet, using selectors. Each component has a limited number of styles defined for it. If you want to change the appearance of a component more drastically than possible with component styles, you need to create or edit the associated component skin, the file specifying what the component should look like. By following the steps below, you'll learn to create a style sheet and to find style rules that you apply to your application. You'll start by creating a style sheet and defining global styles for the application. To do this, you'll need to be in design view, and then select the appearance panel. With the appearance panel selected, you can make changes to the global application styles, such as the font, the text size and then colors used in the application. You'll need to make changes to the chrome color, the selection color, the rollover color and the focus color for the application. Whilst you've been making changes to the global application styles, Flash Builder has created a new TestDrive.css file and referenced it from your application MXML file. You should open up the TestDrive.css file in the Package Explorer to see the code that Flash Builder has written for you. In addition to specifying global application styles, you can also define styles for types of component or individual instances of a component. In this application, we want to change the value for the corner radius of all the buttons. To do this, you'll return to design view and select a button on the design surface. With the button selected, you'll use the properties view to specify the corner radius value. This change will only affect the currently selected button. You'll then need to use the convert to CSS button and in the dialog, select the selector type and specific component. With this applied, Flash Builder will create a new style property in the CSS file that specifies the corner radius for all buttons in the application. Back in design view, you can see the change has been made, and all buttons now have a corner radius of the value 5. To specify additional style properties for the button component, you'll return to the CSS file and make changes to the CSS selector for the button. Here you'll specify the font weight and also the color of the text for the button. After making changes in the CSS file for your application, you'll need to save the file before the changes will show up in Flash Builder's design view. You've now seen how to define global and type CSS styles for your application. By completing the tutorial, you'll also learn about class, pseudo and ID selectors that you can apply to components. In the next tutorial, you'll learn how to change the appearance of a component more drastically by extending a default component skin and adding additional components to it.

在前四个模块中,您学习了怎样创建,调试与配置Flex应用程序。 在这一模块中,您将学习怎样通过造型与皮肤设置来改变应用程序的外观。 在造型设置中,您可以通过选择器来将组件样式内嵌入MXML或者样式表中。 每一个组件都由有限的样式来定义它。 如果您想更彻底的改变组件外观,而不是单纯依靠组件样式,您需要创建或者编辑相关的组件皮肤的文件,这个文件指定了组件的样式。 按照下面的步骤,您将学习怎样创建样式表,并找到您提供给应用程序的样式规则。 您将从创建样式表以及为应用程序定义通用样式开始。 要做到这些,您需要处于设计视图中,然后选择外观面板。 当外观面板被选中以后,您可以改变通用样式,例如应用程序中的字体,字号及文字颜色。 您需要改变应用程序的边框颜色,选择颜色,滚动条颜色以及焦点颜色。 与此同时,您已经改变了通用样式,Flash Builder已经创建了一个新的TestDrive.css文件并从您的应用MXML文件中进行了引用。 您应该打开在Package Explorer中的TestDrive.css文件来查看Flash Builder为您编写的代码。 除了指定通用样式以外,您也可以对组件类型或者组件个别实例的样式进行定义。 在这一应用程序中,我们想要改变所有按钮角半径的数值。 要做到这些,您需要回到设计视图并选择在设计页面的一个按钮。 当这个按钮被选中以后,您将使用属性视图来指定角半径数值。 这一改变只对当前选中的按钮有效。 然后,您需要使用转换为CSS按钮,在对话框中选择选择器类型并指定组件。 这些改变提交以后,Flash Builder将会在CSS文件中创建一个新的样式属性,这一CSS文件指定了应用程序中所有按钮的角半径。 回到设计视图中,您会发现所有按钮的角半径数值都变成了5 如果需要指定按钮组件的额外样式属性,您需要回到CSS文件中改变按钮的CSS选择器。 这里您将指定按钮的字体粗细以及字体颜色。 在改变了应用程序的CSS文件以后,您将需要在这些改变显示在Flash Builder的设计视图以前保存文件。 您现在已经知道了怎样在您的应用程序中定义通用样式以及典型CSS样式。 通过完成本向导,您也可以学习有关类,伪类及ID选择器的知识,而这些选择器均可被添加进组件内。 在下一个向导中,您将学习怎样通过扩展默认组件皮肤以及增加额外组件来更加彻底的改变组件外观。

Thursday Jul 29, 2010

有关肝纤维化

Liver fibrosis is a consequence of chronic hepatitis and involves the abnormal accumulation of extracellular matrix proteins, particularly collagen. Hydroxyproline is an essential component of collagen. The amount of collagen can be estimated by determining the content of hydroxyproline and can be used to reflect the extent of fibrosis.

 

肝纤维化是由慢性肝炎发展而来的,并且与异常的细胞外基质蛋白,尤其是胶原的积累有关。羟脯氨酸是胶原的主要成分,它的含量可以用来估计胶原的含量,因而可以用来反映肝纤维化的程度。

 

Reactive oxygen species (ROS), such as superoxide anions and H2O2, are produced throughout cells during normal aerobic metabolism.The intracellular concentration of ROS is a consequence of both their production and their removal by various antioxidants. A major component of the antioxidant system in mammaliancells consists of three enzymes, namely, superoxide dismutase (SOD), catalase (CAT) and glutathione peroxidase (GPx).

 

    在细胞的正常有氧代谢中会产生活性氧簇(ROS),例如超氧负离子和过氧化氢(H2O2)。细胞内活性氧簇的浓度是由它们的产物以及抗氧化剂的去除作用共同决定的。哺乳动物细胞中的抗氧化系统主要是由三种酶组成的,分别是超氧化物歧化酶(SOD),过氧化氢酶(CAT)以及谷胱甘肽过氧化物酶(GPx)。

 

The antioxidant enzyme system plays an important role in the defence of cells against oxidative insults. These enzymes work in concert to detoxify superoxide anion and H2O2 in cells. ROS are believed to mediate hepatocellular damage and fibrosis. The proposed mechanism for the hepatoxicity of CCl4 involves the bioactivation of CCl4 to yield reactive free radicals. When liver is in the toxic condition with excess of the carbon-centered trichloromethyl radical, the activity of the enzyme xanthine oxidase, which produces superoxide anions and hydrogen peroxide, increases with the progression of cell damage. In addition, many studies have shown that the ROS induced by CCl4 are also produced by Kupffer cells.

 

抗氧化酶系统在细胞的抗氧化损伤中起着至关重要的作用。这些酶协同作用,共同抵御超氧负离子与过氧化氢对细胞的毒害作用。活性氧簇被认为介导了肝细胞损伤与肝纤维化。由CCL4导致的肝毒性,其可能的机制牵扯到了CCL4产生活性自由基的生物效应上来。当肝脏处于过量的碳中心三氯甲基毒性环境中时,黄嘌呤氧化酶的活性随着细胞损伤的发展而升高,而该酶可以产生超氧负离子和过氧化氢。另外,许多研究指出由CCL4诱导的活性氧簇在星状细胞中也会产生。

 

Therefore, reducing oxidative stress may be an effective therapeutic strategy for preventing and treating hepatic fibrosis.

 

因此,减少氧化应激可能是预防和治疗肝纤维化的一条有效治疗途径。

日志归档日历

新闻种子设置

搜索网志

链接

导航

引用