Generic Resource Panel Components provide a designer with the means to display additional, custom-defined columns of sample field data in the Pollstar100 UI relating to external resources such as images, URLs or Flash Movieclips.  
 
As with the Pre-defined Resources Panel, up to two fields from the Sample Data set may be associated with a Generic Resource Panel. One field contains the pathname to an external JPG or SWF resource file. An optional second field may also be defined in the Sample Data file, containing an associated URL. If the designer provides this second field then the resource items displayed in the UI become clickable and provide the end-user with the means to hit the associated URL. The designer uses the Sample Field ID Property to associate a Generic Resource Panel with a custom-defined Sample Data field containing an external resource pathname. Similarly, the Sample URL Field ID is used to associate the Generic Resource Panel with a custom-defined Sample Data field containing a related URL.  
 
For example, consider a Pollstar100 Application for displaying content relating to a list of software products. The designer may choose to use the Pre-defined Resources Panel to display thumbnails of each product and URL links to product specific web-pages. The designer could then also define a Generic Resource Panel instance for displaying the logos of the companies responsible for each product and URL links to the homepage of each companies' website.  
 
Any number of Generic Resource Panel Components may be defined within a Pollstar100 Application.  
 
 
 
 
Custom XML Tag  
 
Use the following XML tag to define a Generic Resource Panel Component within your Custom XML file:  
 
 
<GenericResourcePanel />  
 
 
 
 
 
 
Common Panel Properties  
 
Generic Resource Panel Components inherit the following common Panel Properties:  
 
Component Visibility Properties  
General Panel Properties  
Location Properties  
Margins Properties  
Image Properties  
Opacity Properties  
 
 
 
 
Specialised Properties  
 
In addition to the above, Generic Resource Panel Components also inherit the following specialised Properties:  
 
Unique ID  
Use this field to provide a unique ID for a specific instance of the Generic Resource Panel Component.
 
 
Sample Field ID
 
Use this Property to associate a Generic Resource Panel instance with a custom-defined Sample Data field containing external resource pathnames.  
 
Sample URL Field ID  
Use this Property to associate a Generic Resource Panel instance with a custom-defined Sample Data field containing URLs relating to external resource pathnames.  
 
URL Target  
Use this Property to specify the type of browser window that is used to display a Resource related URL.  
 
Counting Hits  
Use this Property in order to record the number of hits received for a Resource related URL.  
 
Resource Opacity  
Use this Property to define the percentage opacity of each Resource item displayed in the panel.  
 
 
 
 
Default Property Values  
 
The following default Property values are defined for Generic Resource Panel Components:  
 
Property Name
Default Value
Visible
true
X
undefined
Y
undefined
Width
undefined
Height
undefined
Margins
0, 0, 0, 0
Scale
70
Horizontal
false
Image
default
Opacity
100
BorderRadius
0
BorderColour
0
BorderWeight
0
Colours
undefined
CountHits
false
UniqueID
undefined
SampleFieldID
undefined
SampleURLFieldID  
undefined
URLTarget
_blank
ResourceOpacity
100
 
 
 
 
 
Related Topics  
 
The Resources Panel  
Using Generic Components To Extend the UI