Difference between revisions of "InstanceGridWidget"

From Protege Wiki
Jump to: navigation, search
(Updated title and reference to main WebProtege wiki page)
(Set up a template for documenting the field_type parameter)
Line 1: Line 1:
 
<p style="padding:0; margin:0; font-size:1.9em; font-weight:bold; word-spacing:-2px;">InstanceGridWidget Layout Configuration</p>
 
<p style="padding:0; margin:0; font-size:1.9em; font-weight:bold; word-spacing:-2px;">InstanceGridWidget Layout Configuration</p>
  
This page provides a basic overview of the different configuration options (in the form of parameter-value pairs) that can be set for the <code>InstanceGridWidget</code> (<code>edu.stanford.bmir.protege.web.client.ui.portlet.propertyForm.InstanceGridWidget</code>) in [[WebProtege]].
+
This page provides a basic overview of the different configuration options that can be set in form of parameter-value pairs for the <code>InstanceGridWidget</code> (<code>edu.stanford.bmir.protege.web.client.ui.portlet.propertyForm.InstanceGridWidget</code>) in [[WebProtege]].
 +
 
 +
== The <code>field_type</code> parameter ==
 +
The <code>field_type</code> parameter sets the "type" of a field (i.e. a data cell) in the grid.<BR>
 +
To clearly separate the content of the field from it presentation, and the way these values are edited, we have created separate parameters (<code>field_value_type</code> and <code>field_editor</code>) to control those aspects.
 +
 
 +
{| class="wikitable"
 +
|+ <code>field_type</code>
 +
|-
 +
!value
 +
!meaning
 +
|-
 +
|<code>linkicon</code>
 +
|a link icon that provides a hyperlink to the URL represented by this cell's value
 +
|-
 +
|<code>nolink</code>
 +
|displays a URL without creating a hyperlink to it (which would be the default behavior in the absence of this parameter specification)
 +
|-
 +
|<code>checkbox</code>
 +
|
 +
|-
 +
|<code>checkbox_important</code>
 +
|
 +
|-
 +
|<code>radio</code>
 +
|
 +
|-
 +
|<code>combobox</code>
 +
|
 +
|-
 +
|<code>class_browsertext</code>
 +
|
 +
|-
 +
|<code>instance_browsertext</code>
 +
|
 +
|-
 +
|<code>instance_property</code>
 +
|
 +
|}
 +
 
 +
 
 +
{| class="wikitable"
 +
|+ <code>field_value_type</code>
 +
|-
 +
!value
 +
!meaning
 +
|-
 +
|ligh_green
 +
|light green
 +
|}
 +
 
 +
 
 +
{| class="wikitable"
 +
|+ <code>field_editor</code>
 +
|-
 +
!value
 +
!meaning
 +
|-
 +
|ligh_green
 +
|light green
 +
|}
 +
 
 +
 
 +
{| class="wikitable"
 +
|+ <code>field_align</code>
 +
|-
 +
!value
 +
!meaning
 +
|-
 +
|ligh_green
 +
|light green
 +
|}
 +
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 12: Line 84:
 
|light green
 
|light green
 
|}
 
|}
 +
 +
 +
  
  
 
To get a more up-to-date list of all the supported parameters and values you may want to check out the latest version of the [http://smi-protege.stanford.edu/svn/icat/trunk/src/edu/stanford/bmir/protege/web/client/ui/portlet/propertyForm/FormConstants.java?view=markup edu.stanford.bmir.protege.web.client.ui.portlet.propertyForm.FormConstants] class.
 
To get a more up-to-date list of all the supported parameters and values you may want to check out the latest version of the [http://smi-protege.stanford.edu/svn/icat/trunk/src/edu/stanford/bmir/protege/web/client/ui/portlet/propertyForm/FormConstants.java?view=markup edu.stanford.bmir.protege.web.client.ui.portlet.propertyForm.FormConstants] class.

Revision as of 17:07, November 30, 2016

InstanceGridWidget Layout Configuration

This page provides a basic overview of the different configuration options that can be set in form of parameter-value pairs for the InstanceGridWidget (edu.stanford.bmir.protege.web.client.ui.portlet.propertyForm.InstanceGridWidget) in WebProtege.

The field_type parameter

The field_type parameter sets the "type" of a field (i.e. a data cell) in the grid.
To clearly separate the content of the field from it presentation, and the way these values are edited, we have created separate parameters (field_value_type and field_editor) to control those aspects.

field_type
value meaning
linkicon a link icon that provides a hyperlink to the URL represented by this cell's value
nolink displays a URL without creating a hyperlink to it (which would be the default behavior in the absence of this parameter specification)
checkbox
checkbox_important
radio
combobox
class_browsertext
instance_browsertext
instance_property


field_value_type
value meaning
ligh_green light green


field_editor
value meaning
ligh_green light green


field_align
value meaning
ligh_green light green


field_bg_color
value meaning
ligh_green light green



To get a more up-to-date list of all the supported parameters and values you may want to check out the latest version of the edu.stanford.bmir.protege.web.client.ui.portlet.propertyForm.FormConstants class.