<RESOURCE> : Specific resources for an action

Java class : leon.info.LyActionResource

ROLE

Specific resources allow to override for a given action resources globally defined for an application (with properties files containing strings, error messages, colors, fonts, images, file paths, global parameters). Resources are defined by three attributes (type, name, value). The type corresponds to the type of the property to override, the name is the name of this property.

ATTRIBUTES

<!ATTLIST RESOURCE
	  type ( STRING | MESSAGE | COLOR | FONT | IMAGE | FILE | RESOURCE) "RESOURCE"
	  name CDATA #REQUIRED
	  value CDATA #REQUIRED
	  condition CDATA #IMPLIED>
Attribute Mand. Description Default
type no Type of the specific resource. The type must be on of the following types:
- STRING: String,
- MESSAGE: Message,
- COLOR: Color,
- FONT: Font,
- IMAGE: Image,
- FILE: File,
- RESOURCE: Resource (default type).
RESOURCE
name yes Name of the overloaded resource.  
value yes Value of the overloaded resource. The value contains either the specific value to assign to this property (the syntax is the one used within properties files) or the name of another property of the same type.  
condition no The existence of a resource can be subject to a condition whose name corresponds to a property defined inside the initialization file of the application.  

SAMPLE

<RESOURCE type='COLOR' name='LY_TITLEBAR_BACKGROUND' value='DarkOrange'/>

<RESOURCE name='LY_WRITE_TOOL_LABEL' value='true' condition="APP_CLIENT"/>

<RESOURCE type='STRING' name='LY_MENU_HELP' value="?"/>

<RESOURCE type='STRING' name='LY_MENU_FILE' value="MY_MENU_FILE"/>