Main Page | Packages | Class Tree | Index | Help

xp.system

class SystemResources

Object
  |
  +--xp.system.SystemResources


class SystemResources
extends Object

SystemResources
Global system level application resources


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public static
ActiveBorder: Number
Window colors

public static
ActiveCaption: Number


public static
ActiveCaptionText: Number


public static
alternateColor: IBrush
Row Background Alternate

public static
AppWorkspace: Number


public static
backgroundColor: IBrush
<<<<<<<<<<<<<>>>>>>>>>>\\ RowBackground

public static
Brush3D: ThreeDBrush
A 3D Border Bursh

public static
BrushCellBackground: IBrush
Cell background

public static
BrushControl: IBrush
Brush used to paint the face of controls

public static
BrushControlFocus: IBrush


public static
BrushMenuIconBarBG: IBrush
Brush used to paint the background of a menu when it is not visible

public static
BrushScrollBarBG: IBrush
Brush used to paint the background of a scrollbar when it is not visible

static
brushStyles: Object


public static
BrushToolTip: IBrush
Tooltip background

public static
cancelLabel: String
Cancel Button label

public static
ColorControlFocus: IBrush
Theme focus color

public static
ColorTextDisabled: Number
Color of disabled text

public static
Control: Number
Standard Control face color

public static
ControlBorder: Number


public static
ControlDark: Number
Standard Dark Border Color

public static
ControlDarkDark: Number
Standard DarkDark Border Color

public static
ControlLight: Number
Standard Light Border Color

public static
ControlLightLight: Number
Standard LightLight Border Color

public static
ControlText: Number


public static
cursorSize: Number
The height/width of a standard cursor

public static
DBL_CLICK_DELAY: Number
delay for double click

public static
DefaultSortOptions: Number
List/Grid column sort options

public static
Desktop: Number


public static
dropShadow: IBrush
Brush used to paint dropshadows

public static
GradientActiveCaption: Number


public static
GradientInactiveCaption: Number


public static
GrayText: Number


public static
GridlineColor: Number


public static
hGridLineColor: IBrush
Horizontal gridline color

public static
Highlight: Number


public static
highlightColor: IBrush
Row Background Highlight

public static
HighlightText: Number


public static
HotTrack: Number


public static
InactiveBorder: Number


public static
InactiveCaption: Number


public static
InactiveCaptionText: Number


public static
Info: Number


public static
InfoBorder: Number


public static
InfoText: Number


static
InheritableTextFormatProperties: Object
clonable font properties-becuase you cant "see" these properties in a loop

public static
Menu: Number


public static
MenuBar: Number


public static
MenuBarIconWidth: Number
Width of a menubar icon

public static
MenuHighlight: Number


public static
MenuIconBarWidth: Number
Width of the vertical icon bar in a menu

public static
MenuText: Number


public static
ModalBGBrush: IBrush
Brush used to paint the modal background

public static
noLabel: String
No Button label

public static
okLabel: String
standard button labels OK Button label

public static
resources: Object
Where we store all styles and other system level resources

public static
ScrollBar: Number


public static
ScrollBarWidth: Number
Width of a scrollbar

public static
selectColor: IBrush
Row Background Select

public static
textHighlightColor: Number
Row Text Highlight

public static
textSelectColor: Number
Row Text Select

public static
ThemeFont: TextFormat
Theme font

public static
ThemeFontColor: Number
Theme font color

public static
ThemeFontFace: String
these must go last so that the var the ref are properly setup by this point Theme font face

public static
ThemeFontSize: Number
Theme font size

public static
vGridLineColor: IBrush
Vertical gridline color

public static
Window: Number


public static
WindowFrame: Number


public static
WindowText: Number


public static
yesLabel: String
Yes Button label

Method Summary

public static
addPropertyTrigger ( style: Object, propertyName: String, propertyValue: Object, properties: Object ): Object
Creates a new trigger and adds it to the current object

public static
addStyle ( styleName: String, styleObj: Object ): Object
Adds the named style

public static
addStyleTree ( style: Object, className: String, properties: Object ): Object
Creates a new empty style sub class and returns a ref to it Does nothing if the style sub class already exists

public static
cloneStyle ( src: Object ): Object
Deep clones a style object

public static
copyFont ( oldfont: Object, newfont: Object ): Object
Construct a new font object

public static
createClassStyle ( className: String, properties: Object ): Object
creates a style object that also specifies the class of object to be created*

public static
createFont ( initObj: Object, oldfont: Object ): Object
Creates a new TextFormat

public static
getResource ( styleName: String ): Object
Retreives the named resource

public static
getStyle ( styleName: String, create: Boolean ): Object
Retreives the named style

public static
getSystemProperty ( name: String, defaultValue: Object ): Object
Gets the value of a system property

public static
removeStyle ( styleName: String )
Removes the named style

public static
replaceStyle ( styleName: String, styleObj: Object ): Object
Replaces the named style

public static
setSystemProperty ( name: String, value: Object ): Void
Sets the value of a system property



Field Documentation

ActiveBorder

public static var ActiveBorder: Number
Window colors

ActiveCaption

public static var ActiveCaption: Number

ActiveCaptionText

public static var ActiveCaptionText: Number

alternateColor

public static var alternateColor: IBrush
Row Background Alternate

AppWorkspace

public static var AppWorkspace: Number

backgroundColor

public static var backgroundColor: IBrush
<<<<<<<<<<<<<>>>>>>>>>>\\ RowBackground

Brush3D

public static var Brush3D: ThreeDBrush
A 3D Border Bursh

BrushCellBackground

public static var BrushCellBackground: IBrush
Cell background

BrushControl

public static var BrushControl: IBrush
Brush used to paint the face of controls

BrushControlFocus

public static var BrushControlFocus: IBrush

BrushMenuIconBarBG

public static var BrushMenuIconBarBG: IBrush
Brush used to paint the background of a menu when it is not visible

BrushScrollBarBG

public static var BrushScrollBarBG: IBrush
Brush used to paint the background of a scrollbar when it is not visible

brushStyles

static var brushStyles: Object

BrushToolTip

public static var BrushToolTip: IBrush
Tooltip background

cancelLabel

public static var cancelLabel: String
Cancel Button label

ColorControlFocus

public static var ColorControlFocus: IBrush
Theme focus color

ColorTextDisabled

public static var ColorTextDisabled: Number
Color of disabled text

Control

public static var Control: Number
Standard Control face color

ControlBorder

public static var ControlBorder: Number

ControlDark

public static var ControlDark: Number
Standard Dark Border Color

ControlDarkDark

public static var ControlDarkDark: Number
Standard DarkDark Border Color

ControlLight

public static var ControlLight: Number
Standard Light Border Color

ControlLightLight

public static var ControlLightLight: Number
Standard LightLight Border Color

ControlText

public static var ControlText: Number

cursorSize

public static var cursorSize: Number
The height/width of a standard cursor

DBL_CLICK_DELAY

public static var DBL_CLICK_DELAY: Number
delay for double click

DefaultSortOptions

public static var DefaultSortOptions: Number
List/Grid column sort options

Desktop

public static var Desktop: Number

dropShadow

public static var dropShadow: IBrush
Brush used to paint dropshadows

GradientActiveCaption

public static var GradientActiveCaption: Number

GradientInactiveCaption

public static var GradientInactiveCaption: Number

GrayText

public static var GrayText: Number

GridlineColor

public static var GridlineColor: Number

hGridLineColor

public static var hGridLineColor: IBrush
Horizontal gridline color

Highlight

public static var Highlight: Number

highlightColor

public static var highlightColor: IBrush
Row Background Highlight

HighlightText

public static var HighlightText: Number

HotTrack

public static var HotTrack: Number

InactiveBorder

public static var InactiveBorder: Number

InactiveCaption

public static var InactiveCaption: Number

InactiveCaptionText

public static var InactiveCaptionText: Number

Info

public static var Info: Number

InfoBorder

public static var InfoBorder: Number

InfoText

public static var InfoText: Number

InheritableTextFormatProperties

static var InheritableTextFormatProperties: Object
clonable font properties-becuase you cant "see" these properties in a loop

Menu

public static var Menu: Number

MenuBar

public static var MenuBar: Number

MenuBarIconWidth

public static var MenuBarIconWidth: Number
Width of a menubar icon

MenuHighlight

public static var MenuHighlight: Number

MenuIconBarWidth

public static var MenuIconBarWidth: Number
Width of the vertical icon bar in a menu

MenuText

public static var MenuText: Number

ModalBGBrush

public static var ModalBGBrush: IBrush
Brush used to paint the modal background

noLabel

public static var noLabel: String
No Button label

okLabel

public static var okLabel: String
standard button labels OK Button label

resources

public static var resources: Object
Where we store all styles and other system level resources

ScrollBar

public static var ScrollBar: Number

ScrollBarWidth

public static var ScrollBarWidth: Number
Width of a scrollbar

selectColor

public static var selectColor: IBrush
Row Background Select

textHighlightColor

public static var textHighlightColor: Number
Row Text Highlight

textSelectColor

public static var textSelectColor: Number
Row Text Select

ThemeFont

public static var ThemeFont: TextFormat
Theme font

ThemeFontColor

public static var ThemeFontColor: Number
Theme font color

ThemeFontFace

public static var ThemeFontFace: String
these must go last so that the var the ref are properly setup by this point Theme font face

ThemeFontSize

public static var ThemeFontSize: Number
Theme font size

vGridLineColor

public static var vGridLineColor: IBrush
Vertical gridline color

Window

public static var Window: Number

WindowFrame

public static var WindowFrame: Number

WindowText

public static var WindowText: Number

yesLabel

public static var yesLabel: String
Yes Button label


Method Documentation

addPropertyTrigger

public static function addPropertyTrigger(style: Object,
 propertyName: String,
 propertyValue: Object,
 properties: Object): Object
Creates a new trigger and adds it to the current object

addStyle

public static function addStyle(styleName: String,
 styleObj: Object): Object
Adds the named style

addStyleTree

public static function addStyleTree(style: Object,
 className: String,
 properties: Object): Object
Creates a new empty style sub class and returns a ref to it Does nothing if the style sub class already exists

cloneStyle

public static function cloneStyle(src: Object): Object
Deep clones a style object

Parameters:
src
the object to be cloned

copyFont

public static function copyFont(oldfont: Object,
 newfont: Object): Object
Construct a new font object

Parameters:
oldfont
a text format object to copy
newfont
a text format object to copy into

createClassStyle

public static function createClassStyle(className: String,
 properties: Object): Object
creates a style object that also specifies the class of object to be created*

createFont

public static function createFont(initObj: Object,
 oldfont: Object): Object
Creates a new TextFormat

The new font object has the properties specified in initObj and is based on the font specified in old font or the Theme font if not specified.

Parameters:
initObj
a set of new propeties to apply
oldfont
a text format object to copy

getResource

public static function getResource(styleName: String): Object
Retreives the named resource

getStyle

public static function getStyle(styleName: String,
 create: Boolean): Object
Retreives the named style

Parameters:
styleName
create
If true and the style doesnt exist one is created

getSystemProperty

public static function getSystemProperty(name: String,
 defaultValue: Object): Object
Gets the value of a system property

Parameters:
name
the name of the property to get
defaultValue
Returns:
the value of the property

removeStyle

public static function removeStyle(styleName: String)
Removes the named style

replaceStyle

public static function replaceStyle(styleName: String,
 styleObj: Object): Object
Replaces the named style

setSystemProperty

public static function setSystemProperty(name: String,
 value: Object): Void
Sets the value of a system property

Parameters:
name
the name of the property to set
value
the value of the property

The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc