You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2005/10/06 10:28:46 UTC

[DAISY] Updated: Widget States

A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/733.html

Document ID: 733
Branch: main
Language: default
Name: Widget States (unchanged)
Document Type: Document (unchanged)
Updated on: 10/6/05 8:28:42 AM
Updated by: Bruno Dumon

A new version has been created, state: publish

Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 1232 bytes (previous version: 37 bytes)
Content diff:
--- <html><body><p>TODO</p></body></html>
+++ <html>
+++ <body>
+++ 
+++ <p>A widget has a certain state:</p>
+++ 
+++ <ul>
+++ <li><strong>Active</strong> state. This is the default state, where widgets read
+++ their values from the request and display them.</li>
+++ <li><strong>Disabled</strong> state, value is displayed but user input is
+++ ignored. The widget should be rendered in a manner that indicates that this
+++ widget could be active, but is currently not.</li>
+++ <li><strong>Output</strong> state, value is displayed but user input is ignored.
+++ The widget should be rendered as plain text, giving no indication that it could
+++ be input.</li>
+++ <li><strong>Invisible</strong> state. Values are not displayed and user input is
+++ ignored.</li>
+++ </ul>
+++ 
+++ <p>In the form definition, you can assign the state using an attribute called
+++ <tt>state</tt> with as value <tt>active</tt>, <tt>disabled</tt>, <tt>output</tt>
+++ or <tt>invisible</tt>. The state of a widget can of course also be modified at
+++ runtime (thus on the widget instance), by using the method <tt>setState</tt> on
+++ the widget.</p>
+++ 
+++ <p>The list of states above is ordered from the most featured ("active") to the
+++ most constrained ("invisible"). A widgets' actual state is the strictest between
+++ the widgets' own state and its parent state.</p>
+++ 
+++ </body>
+++ </html>


Fields
======
no changes

Links
=====
no changes

Custom Fields
=============
no changes

Collections
===========
no changes