You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (JIRA)" <ji...@apache.org> on 2009/04/14 14:36:14 UTC

[jira] Commented: (PIVOT-82) ListButton should allow "null" to be selected where "null" is an item in the data model

    [ https://issues.apache.org/jira/browse/PIVOT-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12698757#action_12698757 ] 

Sandro Martini commented on PIVOT-82:
-------------------------------------

Hi, 
in some cases could be useful to have definitions like these:

	// generic data structures, to use as placeholder instead of null
	public static final Object[] EMPTY_ARRAY = new Object[0];
	
	public static final List     EMPTY_LIST  = Collections.EMPTY_LIST;
	public static final Map     EMPTY_MAP   = Collections.EMPTY_MAP;
	public static final Set      EMPTY_SET   = Collections.EMPTY_SET;


These are taken for my code, and are related to standard Java Collections, maybe a similar thing could be done inside Pivot Collection classes, and use them as placeholders, when/if required ... or could be moved in some Utility class, but I'd prefer the first approach.


> ListButton should allow "null" to be selected where "null" is an item in the data model
> ---------------------------------------------------------------------------------------
>
>                 Key: PIVOT-82
>                 URL: https://issues.apache.org/jira/browse/PIVOT-82
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 1.1
>            Reporter: Noel Grandin
>            Priority: Minor
>         Attachments: patch-ListButton.txt
>
>
> ListButton should allow "null" to be selected where "null" is an item in the data model

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