You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Bruno Busco (JIRA)" <ji...@apache.org> on 2010/12/29 12:09:45 UTC

[jira] Created: (OFBIZ-4080) Implement a Column Widget

Implement a Column Widget
-------------------------

                 Key: OFBIZ-4080
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4080
             Project: OFBiz
          Issue Type: Wish
          Components: framework
            Reporter: Bruno Busco
            Priority: Minor


Some time ago there was a discussion on the dev mailing list about how to implement something to display contents in columns on screens.
I cut and past an Adrian's idea that is something we should consider to implement.
--------------------------
>From the screen widget XML perspective, it could look like this:

<column-container>
 <column name="first-column">
   <!-- column contents -->
 </column>
 <column name="second-column">
   <!-- column contents -->
 </column>
 ...
</column-container>

The column elements can contain additional column-container elements.

The column element can have an attribute to specify its width as a percentage of the column-container width. Pixel widths should be avoided since the screen widgets are supposed to be rendering device agnostic.

The column-container and column elements will support the common screen widget attributes like name, style, id, etc.

The column-container could support a type attribute that controls how the contained columns behave. For example, type="splitter" will render the contained columns as a splitter window.

>From the widget model perspective, the column-container manages resizing columns when one of them is collapsed or its width changes. Column size information needs to be kept in the rendering context. The information would start off with some default values that are overridden by user preferences.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-4080) Implement a Column Widget

Posted by "Bruno Busco (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975777#action_12975777 ] 

Bruno Busco commented on OFBIZ-4080:
------------------------------------

This is not strictly related to the frame widget but to the screen one.
In any case it could be useful to have it in the frame widget also to replace the actual "position" attribute for fields.

> Implement a Column Widget
> -------------------------
>
>                 Key: OFBIZ-4080
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4080
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>            Reporter: Bruno Busco
>            Priority: Minor
>
> Some time ago there was a discussion on the dev mailing list about how to implement something to display contents in columns on screens.
> I cut and past an Adrian's idea that is something we should consider to implement.
> --------------------------
> From the screen widget XML perspective, it could look like this:
> <column-container>
>  <column name="first-column">
>    <!-- column contents -->
>  </column>
>  <column name="second-column">
>    <!-- column contents -->
>  </column>
>  ...
> </column-container>
> The column elements can contain additional column-container elements.
> The column element can have an attribute to specify its width as a percentage of the column-container width. Pixel widths should be avoided since the screen widgets are supposed to be rendering device agnostic.
> The column-container and column elements will support the common screen widget attributes like name, style, id, etc.
> The column-container could support a type attribute that controls how the contained columns behave. For example, type="splitter" will render the contained columns as a splitter window.
> From the widget model perspective, the column-container manages resizing columns when one of them is collapsed or its width changes. Column size information needs to be kept in the rendering context. The information would start off with some default values that are overridden by user preferences.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-4080) Implement a Column Widget

Posted by "Adrian Crum (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-4080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975784#action_12975784 ] 

Adrian Crum commented on OFBIZ-4080:
------------------------------------

Some additional thoughts on this:

1. The column-container element should accept only column sub-elements. If other widget elements were allowed, then it would be difficult to determine where they would appear in a multi-column layout.

2. An improved XML example:

{code}
<column-container>
<column name="this-column">
<!-- column contents -->
</column>
<column name="that-column">
<!-- column contents -->
</column>
...
</column-container>
{code}

...because the "first-column" and "second-column" names imply position, and it is important to keep in mind that column placement could be under the user's control.

3. I like the idea of including the new elements in form widgets.


> Implement a Column Widget
> -------------------------
>
>                 Key: OFBIZ-4080
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4080
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>            Reporter: Bruno Busco
>            Priority: Minor
>
> Some time ago there was a discussion on the dev mailing list about how to implement something to display contents in columns on screens.
> I cut and past an Adrian's idea that is something we should consider to implement.
> --------------------------
> From the screen widget XML perspective, it could look like this:
> <column-container>
>  <column name="first-column">
>    <!-- column contents -->
>  </column>
>  <column name="second-column">
>    <!-- column contents -->
>  </column>
>  ...
> </column-container>
> The column elements can contain additional column-container elements.
> The column element can have an attribute to specify its width as a percentage of the column-container width. Pixel widths should be avoided since the screen widgets are supposed to be rendering device agnostic.
> The column-container and column elements will support the common screen widget attributes like name, style, id, etc.
> The column-container could support a type attribute that controls how the contained columns behave. For example, type="splitter" will render the contained columns as a splitter window.
> From the widget model perspective, the column-container manages resizing columns when one of them is collapsed or its width changes. Column size information needs to be kept in the rendering context. The information would start off with some default values that are overridden by user preferences.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-4080) Implement a Column Widget

Posted by "Bruno Busco (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruno Busco updated OFBIZ-4080:
-------------------------------

    Issue Type: Sub-task  (was: Wish)
        Parent: OFBIZ-4081

> Implement a Column Widget
> -------------------------
>
>                 Key: OFBIZ-4080
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4080
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>            Reporter: Bruno Busco
>            Priority: Minor
>
> Some time ago there was a discussion on the dev mailing list about how to implement something to display contents in columns on screens.
> I cut and past an Adrian's idea that is something we should consider to implement.
> --------------------------
> From the screen widget XML perspective, it could look like this:
> <column-container>
>  <column name="first-column">
>    <!-- column contents -->
>  </column>
>  <column name="second-column">
>    <!-- column contents -->
>  </column>
>  ...
> </column-container>
> The column elements can contain additional column-container elements.
> The column element can have an attribute to specify its width as a percentage of the column-container width. Pixel widths should be avoided since the screen widgets are supposed to be rendering device agnostic.
> The column-container and column elements will support the common screen widget attributes like name, style, id, etc.
> The column-container could support a type attribute that controls how the contained columns behave. For example, type="splitter" will render the contained columns as a splitter window.
> From the widget model perspective, the column-container manages resizing columns when one of them is collapsed or its width changes. Column size information needs to be kept in the rendering context. The information would start off with some default values that are overridden by user preferences.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.