Modify

Opened 13 months ago

Closed 13 months ago

Last modified 13 months ago

#108 closed enhancement (duplicate)

Simplifying creating ListView and ChoiceBox

Reported by: st.clair.clarke@… Owned by: tom
Priority: major Milestone: 0.0.14
Component: tooling-fxgraph Version: 0.0.13
Keywords: Cc:

Description

Currently to create a ListView?, the code would be as shown below:

import javafx.scene.layout.Pane

import javafx.collections.FXCollections
import javafx.scene.control.ListView

component ListViews 
{
	Pane 
	{
		children : 
		[
			ListView 
			{
							
				preview items : FXCollections createdby observableArrayList 
				{
					String("Hello World"),
					String("Hello World extra long"),
					String("Hello World extra extra long")
				}
			}
		]
	}
}

To reduce the code noise I was wondering, if the String( ... ) could not be simplified as a list of Strings seeing that only Strings can be displayed by the ChoiceBox? and ImageView?, for example:

['Hello World', 'Hello World extra long', 'Hello World extra extra long']

Let me know what you think.

Attachments (0)

Change History (2)

comment:1 Changed 13 months ago by tom

  • Milestone set to 0.0.14
  • Resolution set to duplicate
  • Status changed from new to closed
  • Type changed from defect to enhancement

this is fixed with #121

comment:2 Changed 13 months ago by tom

  • Component changed from distro to tooling-fxgraph

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.