Some help please in understanding JavaFX 2.0 Generics API definition
In the Javadocs for JavaFX there is a set of helper/builder classes - for example
Class LineChartBuilder<X,Y,B extends LineChartBuilder<X,Y,B>>
which has method definitions (+ others)
public LineChart<X,Y> build()
public static <X,Y> LineChartBuilder<X,Y,?> create()
code snippet
// x-Axis marks
xAxisList = FXCollections.observableArrayList();
xAxisList.add("One");
xAxisList.add("Two");
xAxisList.add("Three");
xAxisList.add("Four");
xAxisList.add("Five");
CategoryAxis catXAxis = new CategoryAxis(xAxisList);
// y-Axis
NumberAxis yAxis = new NumberAxis("Price", 0, 100, 10);
LineChartBuilder<CategoryAxis, NumberAxis, ?> builder;
???? What does the create() invocation look like ??????
LineChart<X, y> chart = builder.build();
code snippet
any help would be greatly appreciated -
am still trying to get my mind around how to read these Generics signatures
Edited by: smaric on Feb 8, 2012 11:47 AM
EJP wrote:
public static <X,Y> LineChartBuilder<X,Y,?> create()
LineChartBuilder<CategoryAxis, NumberAxis, ?> builder;
???? What does the create() invocation look like ??????
LineChartBuilder<A,B,C> builder = LineChartBuilder.create();where A, B, C are whatever you need them to be.
LineChartBuilder<A,B,C> builder = LineChartBuilder.create();where A, B, C are whatever you need them to be.I get the Type idea
But C needs to be of Type LineChartBuilder<X,Y,B> according to the Class definition
public class LineChartBuilder<X,Y,B extends LineChartBuilder<X,Y,B>> extends XYChartBuilder<X,Y,B>and this is where I'm struggling - how do I break out of the B extends part of the definition -- for the following
LineChartBuilder<CategoryAxis, NumberAxis, B> builder = LineChartBuilder.create();The above does not compile -
B cannot be resolved to a type
The method create() is ambiguous for the type LineChartBuilder
Thanks for your help
Similar Messages
-
UIX DataObjects - some help please
I'm doing some interesting things with DataObjects and don't understand why something's happening and would like some help please. An explanation is needed first. Rather than physically delete anything from our system and have all the problems of referential integrity we have a status associated with 'entities' either active or inactive. Some of the things which have this status are foreign keys in other entities my example is a Brand which has a BrandType. My problem is that by default when populating e.g. a choice list our services will only provide 'active items'. However, using my example, if I want to update a Brand that has a foreign key to an inactive BrandType, I want the inactive BrandType to appear in the list. I have an EJB service which provides the list of BrandTypes and whose interface allows for the specification of an 'id' to be included. I have a DataObject stored on the pageState (currentBrand below) which contains this id and I want to pass this 'id' as a parameter to another DataObject which actually returns the DataObjectList of BrandTypes to populate the choice list. With me so far? Hope so! This DataObject is also part of the 'currentBrand' DataObject stored on pageState (brandTypes@currentBrand).
So to do this I have this data binding on my <messageChoice> element
<messageChoice name="brandType"
data:prompt="label@type@fields@pageResources"
data:shortDesc="shortDesc@type@fields@pageResources"
data:selectedValue="brandTypeId@brand@currentBrand">
<contents data:childData="(brandTypeId@brand@currentBrand)@brandTypes@currentBrand">
<option data:text="name"
data:value="id"/>
</contents>
</messageChoice>And this is my selectValue in the 'brandTypes' DataObject which will get the 'id' from
(brandType@brand@currentBrand) as its key
public Object selectValue(RenderingContext pContext, Object pKey) {
Long id = (Long)pKey;
Long[] ids = new Long[1];
ids[0] = id;
HttpSession session = getSession(pContext);
UserToken userToken = getUserToken(session);
GetBrandTypeRequest request = new GetBrandTypeRequest();
request.setUser(userToken);
request.setOutputModeType(OutputMode.ENTRIES_ONLY);
request.setActiveStatus(Status.ACTIVE);
request.setSelectionType(SelectionType.ALL);
request.setIds(ids);
return BrandTypeCache.getBrandTypes(request).getBrandTypes();
}The return value is actually an array of DataObjects (which will get converted to a DataObjectList). Now this actually works as far as rendering is concerned but in debugging I've found that the selectValue method is actually being called several times 10 in fact when I would have only expected it to be called once. I wondered if it was being called for every item in the list but there are only 9 of those. There's obviously a performance issue as I'm calling my EJB service each time selectValue is called.
Hope this all makes sense - can anyone tell me what's going on here and what I can do to fix it?
Thanks
IanAlready answered in another thread.
Is This a bibeans bug -
I am trying to download and install OSX Mavericks but everytime i input my Apple ID it keeps asking to review my account and then starts looking for credit card info, I do not have a credit card, also I thought OSX Mavericks was free, some help please.
Yes I know it's free, but Im trying to find out how to download it and install, but I keep getting account review and asked for CC details as I have no CC I can't get the download or install it, any help please, what i don't understand is why would I be asked for CC details if it is a free download ?? i just want to know is there anything I can do.
-
Remote App on iPad connects but drops after about 20 mins. Need to turn off wait about 1 minute, then turn on wifi on iMac before it can reconnect. Need some help please.
Already gone through troubleshooting guide a zillion times. Thanks.This worked for me... A little time consuming but once you get rolling it goes GREAT... Thanks....
I got my artwork and saved it to my Desktop
Opened up Microsoft Paint and clicked on "File" and "Open" and found it to get it on the screen to resize it
Clicked "resize" and a box for changing it opened up
Checked the box "Pixels" and "Unchecked maintain aspect ratio"
Set Horizontal for 640 and Vertical for 480
Clicked on "OK" and went back to "File" and did a "Save As" and chose JPEG Picture
It came up "File Already Existed" and clicked "OK" (really did not care about the original artwork I found because wrong size)
Went to iTunes and on the movie right clicked on "Get Info", clicked on "Details", then "Artwork"
Go to the little box on the top left that shows your old artwork and click on it to get the little blue border to appear around it and hit "Delete" to make it gone
Click on "Add Artwork" and find it where you put the one from above on your Desktop and hit "Open" and OK and your new artwork is now there and all good.
Sounds like a lot of steps to follow but after around 5 or so you will fly through it. This worked perfect on my iPhone 6 Plus and I have artwork on my Home Videos now. -
Hi! I got Movies on my external hard drive that are AVI kind and won't play on my macbook pro? When I start playing the movie a message pops up and says "a required codec is not available". I tried flip4mac, xvid, divx already and still not playing my video. need some help please!! thanks.
Although vlc mentioned above is a much more powerful and better player you could try installing Perian if you insist on using the quicktime player. It may supply the codec it needs.
Not sure why you wouldn't be able to play straight avi files though in quicktime. -
I was trying to update my phone now is asking me to restore my phone, can I have some help please?
https://discussions.apple.com/message/18750831#18750831
-
I buy extension from adobe online, i installed it correctly but then the extension menu was greyed out and i can't click it. Some help please.
hello ptbruce, you probably only selected to open (not save) the video which will download it into windows temporary folder where it gets deleted again after it has been used. <br>you could try to right-click the entry in the firefox download manager and copy the link of the source file and try if you can download it through this url again. otherwise you'll have to contact the vendor of the video to find a solution...
-
I bought an album on iTunes and 3 of the songs only play for 30 seconds. I have tried re-downloading the album 3 times and the problem has not been fixed. I would like some help please and thank you.
Artist: Imagine Dragons
Album: Night VisionReport it here:
iTunes Store Support
http://www.apple.com/emea/support/itunes/contact.html -
i am trying to get my contacts from an old iphone 3s to a new 5c and i am not getting the new phone to stay connedted to itunes. some help please on this problem!!!
One way is to Drag and Drop the Entire iTunes Folder from your Old Computer to an External Hard Drive...
Then Drag and Drop the Entire iTunes Folder to the location of your Music on the New Computer...
These Links may Help...
Backup iTunes to an External Drive
http://support.apple.com/kb/HT1751
Moving iTunes Media Folder
http://support.apple.com/kb/HT1364
Cheers -
Could I get some help with this?
Hi Shelly,
Are you trying to log in to ExportPDF from Reader? If so, please make sure that you have the most current version by choosing Help > Check for Updates in Reader. You should be using version 11.0.07 (Mac OS) or 11.0.08 (Windows)--earlier versions caused this sign-in error that you're seeing.
Let us know how it goes!
Best,
Sara -
2100 WLC 1130 APs - need some help please
It's been about 5 years since I took my CCNA course and could use some help on a wireless set up for church.
We have a Catalyst 3550 that is running fine, just a few VLANs, including 30 for public wireless. I've then got a 2100 WLC and (3) 1130 AP's. After much head banging, I've got the WLC set up correctly (i believe)
VLAN 30 is a 10.0.3.x segment
switch is 10.0.3.1
WLC mgmt interface is 10.0.3.20 - connected to the switch on port 1
WLC ap mgmt interface is 10.0.3.21
APs pull 10.0.3.30, 31,32. - they are plugged directly into the switch
I can obviously see the APs while in the WLC GUI.
The AP's SSID don't show up wirelessly. The AP's circle is red/orange
The detail on the AP in the WLC shows them operationally down.
What additional information can I provide?
Much thanks.flashfs[0]: 28 files, 8 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 15998976
flashfs[0]: Bytes used: 6973952
flashfs[0]: Bytes available: 9025024
flashfs[0]: flashfs fsck took 28 seconds.
Base ethernet MAC Address: 00:0a:b8:12:30:3c
Initializing ethernet port 0...
Reset ethernet port 0...
Reset done!
ethernet link up, 100 mbps, full-duplex
Ethernet port 0 initialized: link is up
Loading "flash:/c1130-k9w8-mx.124-23c.JA4/c1130-k9w8-mx.124-23c.JA4"...#########
File "flash:/c1130-k9w8-mx.124-23c.JA4/c1130-k9w8-mx.124-23c.JA4" uncompressed a
nd installed, entry point: 0x3000
executing...
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software, C1130 Software (C1130-K9W8-M), Version 12.4(23c)JA4, RELEASE
SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Fri 27-Jan-12 19:52 by prod_rel_team
Proceeding with system init
Proceeding to unmask interrupts
Initializing flashfs...
flashfs[1]: 28 files, 8 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 15740928
flashfs[1]: Bytes used: 6973952
flashfs[1]: Bytes available: 8766976
flashfs[1]: flashfs fsck took 4 seconds.
flashfs[1]: Initialization complete....done Initializing flashfs.
Radio0 present A506 7100 E8000000 A0000000 80000000 3
Radio1 present A506 6700 E8000100 A0040000 80010000 2
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
[email protected].
cisco AIR-LAP1131AG-A-K9 (PowerPCElvis) processor (revision A0) with 27638K/51
20K bytes of memory.
Processor board ID FTX1027T1S2
PowerPCElvis CPU at 262Mhz, revision number 0x0950
Last reset from power-on
LWAPP image version 7.0.230.0
1 FastEthernet interface
2 802.11 Radio(s)
32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:0A:B8:12:30:3C
Part Number : 73-8962-09
PCA Assembly Number : 800-24818-08
PCA Revision Number : A0
PCB Serial Number : FOC102618H2
Top Assembly Part Number : 800-25544-06
Top Assembly Serial Number : FTX1027T1S2
Top Revision Number : A0
Product/Model Number : AIR-LAP1131AG-A-K9
% Please define a domain-name first.
Press RETURN to get started!
*Mar 1 00:00:05.580: %SOAP_FIPS-2-SELF_TEST_IOS_SUCCESS: IOS crypto FIPS self t
est passed
*Mar 1 00:00:07.185: %SOAP_FIPS-2-SELF_TEST_RAD_SUCCESS: RADIO crypto FIPS self
test passed on interface Dot11Radio 0
*Mar 1 00:00:08.783: %SOAP_FIPS-2-SELF_TEST_RAD_SUCCESS: RADIO crypto FIPS self
test passed on interface Dot11Radio 1
*Mar 1 00:00:08.860: %LWAPP-3-CLIENTEVENTLOG: Read and initialized AP event log
(contains, 135 messages)
*Mar 1 00:00:08.889: status of voice_diag_test from WLC is false
*Mar 1 00:00:10.995: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to
up
*Mar 1 00:00:11.052: %SYS-5-RESTART: System restarted --
Cisco IOS Software, C1130 Software (C1130-K9W8-M), Version 12.4(23c)JA4, RELEASE
SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Fri 27-Jan-12 19:52 by prod_rel_team
*Mar 1 00:00:11.053: %SNMP-5-COLDSTART: SNMP agent on host CenterHall is underg
oing a cold start
*Mar 1 00:00:11.133: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
*Mar 1 00:00:11.312: %SSH-5-ENABLED: SSH 2.0 has been enabled
*Mar 1 00:00:11.312: %LINK-3-UPDOWN: Interface Dot11Radio0, changed state to up
*Mar 1 00:00:11.312: %LINK-3-UPDOWN: Interface Dot11Radio1, changed state to up
*Mar 1 00:00:11.552: %LINK-5-CHANGED: Interface Dot11Radio1, changed state to r
eset
*Mar 1 00:00:11.552: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to r
eset
*Mar 1 00:00:11.999: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern
et0, changed state to up
*Mar 1 00:00:12.316: %LINEPROTO-5-UPDOWN: Line protocol on Interface Dot11Radio
0, changed state to down
*Mar 1 00:00:12.316: %LINEPROTO-5-UPDOWN: Line protocol on Interface Dot11Radio
1, changed state to down
*Mar 1 00:00:19.436: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0 assigned D
HCP address 10.0.3.30, mask 255.255.255.0, hostname CenterHall
*Mar 1 00:00:29.995: status of voice_diag_test from WLC is false
*Mar 1 00:00:30.070: Logging LWAPP message to 255.255.255.255.
*Mar 1 00:00:30.123: %CDP_PD-2-POWER_LOW: All radios disabled - HIGH_POWER_CLAS
SIC_NOT_CONFIGURED WS-C3550-12T (000a.8a97.f785)
*Mar 1 00:00:31.123: %SYS-6-LOGGINGHOST_STARTSTOP: Logging to host 255.255.255.
255 started - CLI initiated
Translating "CISCO-CAPWAP-CONTROLLER"...domain server (8.8.8.8)
Translating "CISCO-LWAPP-CONTROLLER"...domain server (8.8.8.8)
*Feb 11 15:46:42.000: %CAPWAP-5-DTLSREQSEND: DTLS connection request sent peer_i
p: 10.0.3.21 peer_port: 5246
*Feb 11 15:46:43.000: %CAPWAP-5-CHANGED: CAPWAP changed state to
wmmAC status is FALSE
*Feb 11 15:46:44.672: %CAPWAP-5-DTLSREQSUCC: DTLS connection created sucessfully
peer_ip: 10.0.3.21 peer_port: 5246
*Feb 11 15:46:44.674: %CAPWAP-5-SENDJOIN: sending Join Request to 10.0.3.21
*Feb 11 15:46:44.674: %CAPWAP-5-CHANGED: CAPWAP changed state to JOIN
*Feb 11 15:46:45.449: %CAPWAP-5-CHANGED: CAPWAP changed state to CFG
*Feb 11 15:46:45.718: %CAPWAP-5-CHANGED: CAPWAP changed state to UP
*Feb 11 15:46:45.767: %CAPWAP-5-JOINEDCONTROLLER: AP has joined controller grace
wireless
*Feb 11 15:46:45.815: %LWAPP-3-CLIENTEVENTLOG: SSID GUMC_Guest added to the slot
[0]
*Feb 11 15:46:45.818: %LWAPP-3-CLIENTEVENTLOG: SSID GUMC_Guest added to the slot
[1]
*Feb 11 15:46:45.834: %WIDS-5-ENABLED: IDS Signature is loaded and enabled
User Access Verification
Username: Cisco
Password:
CenterHall> -
hi,
So, basically... I had to owe Apple money when I had no money on my card but now I've got money on my card and it won't allow me to pay off what I need to and I'm still unable to even download apps, songs or anything and it's worrying me.
Can someone help please?If you can't get the password correct, you CANNOT restore from that backup.
However, if you've been using your phone as recommended by Apple, there should be minimal data loss.
Your iTunes library is on your computer, so you can synch all your apps, music, movies, ringtones, etc, on to your new phone.
Similarly, contacts should be synched to Address Book, Outlook, or a cloud service for you to easily synch back to your new phone.
Pictures taken from your old phone and not synched to your computer are lost, but you would have been synching those photos to your computer frequently as recommended. Other photos that you synch TO your iPhone are still on your computer.
You won't be able to get text messages back. -
I just updated to iTunes 10.5 and now, I can't listen to music or watch a movie without the message "iTunes has stopped working" popping up. As soon as this happens, iTunes crashes completely. I'm running on Windows 7 - 64 bit. May I have some help please
If and when I finally manage to open it, as soon as I click on a movie to watch, the message "itunes has stopped working" comes up.
Try the following user tip with that one:
iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows -
WEBUTIL not working, some help please
Hi,
I am new to Forms 10G and I am starting conversion from Forms 6i. I think I have setup WEBUTIL as decribed in Oracle documentation, step by step. I noticed that none of the calls to WEBUTIL API's are working. For test I tried to delete a file by running: "client_host('cmd /c del c:\putty.log');"
It came back with error:
"oracle.forms.webutil.host.Host bean not found. WEBUTIL_HOST.Execute will not work."
What am I missing? Could anyone help please?
Thanks.I have done the following test:
1. Create new module
2. Add a block manualy
3. Add a button on the block
4. In the WHEN-BUTTON-PRESSED trigger add : "client_host('cmd /c del c:\putty.log');"
5. Attach webutil.pll removing the path
6. Compiled Ok
7. Executing the form returns the error mentioned above
than
8. Open webutil.olb object library from form builder
9. Double click on the MAIN tab
10. Drag the WEBUTIL object group under object groups node of my form subclassing it which added the following objects to my form:
a) WEBUTIL_ERROR under alerts node
b) WEBUTIL under data blocks node
c) WEBUTIL_CANVAS under canvases node
d) WEBUTIL under object groups node
e) WEBUTIL_HIDDEN_WINDOW under windows node
11. Compile OK
12. Works
Hope this helps,
Alex -
Transferring Mail to a new computer - Some Help Please
What is the best way(s) to transfer all my Apple email (not .mac email) from my G4 to a new G5? I am closing down my G4 and want to start up my G5 email with all of the mail (with content) that currently resides in my Inbox, Sent and Saved email folders.
I have a firewire portable drive, so I can a) attach it to my G4 and copy files to it, then b) attach it to my G5, making them available to the G5 mail program. The G5, however, would not be able to directly access/read the drives on my G4.
My G5 is new, and I have not yet launched the mail program. All OS is 10.4.4. If I moved the files via this firewire drive, which files?
I do have a .mac account. I would use iSync, but I think iSync transfers only the settings, but not the content of the messages. I'm unclear about this.
Some help would be most appreciated. Thank you. DaleHello Dale.
Do the following.
With the Mail.app quit on the G4 and using the Finder, go to Home > Library > Mail. Copy the Mail folder.
Using the Finder, go to Home > Library > Preferences > com.apple.mail.plist. Copy the com.apple.mail.plist file.
With the Mail.app quit on the G5, place the copy of the Mail folder from the G4 at Home > Library on the G5. If there is an existing Mail folder, this will replace it.
Place the copy of the com.apple.mail.plist from the G4 at Home > Library > Preferences on the G5. If there is an existing com.apple.mail.plist file, this will replace it.
Launch Mail on the G5 and it will be identical to Mail on the G4.
Maybe you are looking for
-
Address Book Sync Problems - 8530 and Outlook 2007
This has been a nagging problem for me for quite some time. Here's my current status: Curve 8530 on Verizon Wireless Access to Corporate resources and email via BES I also access Gmail from the device Right now I am not synching over the air - that
-
BPM Error: no interface action for sender or receiver found
Dear All I am doing an HTTP to Proxy scenario using BPM Synch Asynch bridge. The error in HTTP is error 500 (Internal Serve Error) I am getting following error in moni <Trace level="1" type="T">select interface namespace urn:WorkDelivery</Trace> <T
-
Servlet write object error!
"I have a applet communicate with servlet case and sending objects back and forth. when running at appletviewer everything looks fine, however, if i run through browser the servlet will generate this kind of error: <Jul 10, 2002 5:25:54 PM
-
I have a LG Revere 3. Can a phone mail box be set up and if so how?
-
This may be a stupid question, but this seems like a very un-Apple like behavior to me... I have an Xserve G5 with 3 x 250Gb drives in a RAID 5 configuration using the PCI RAID card. With the security lock engaged, if I even push on one of the drive