Forum Stats

  • 3,836,679 Users
  • 2,262,165 Discussions
  • 7,900,071 Comments

Discussions

TitledPaneMode is not found at all

Narayan
Narayan Member Posts: 310
edited May 28, 2011 11:52AM in JavaFX 2.0 and Later
Hello I've been working on Javafx 2.0 and found that there is no any Class Named TitledPaneMode .
But in the documentation it shows the example like this :
TitledPane t1 = new TitledPane(new Label("T1"), new Button("B1"));
t1.setMode(TitledPaneMode.FADE);
 
Thanks.
Narayan
Tagged:

Answers

  • 864929
    864929 Member Posts: 1
    Hi you need to provide an import statement:

    import javafx.scene.control.TitledPane;
  • Narayan
    Narayan Member Posts: 310
    edited May 27, 2011 10:37PM
    Hello user, Did you see the documention of javafx 2.0 before commenting here?
    I'm telling about TitledPaneMode not TitledPane. Please see the post title before comment !
    The class TitledPaneMode doesn't exist at all

    Thanks
    Narayan

    Edited by: Narayan on May 27, 2011 7:37 PM
  • aidreamer
    aidreamer Member Posts: 242
    edited May 28, 2011 12:15AM
    setMode and TitledPaneMode definitely do not exist in the Beta Release. I would guess at a documentation error. Probably a feature they haven't added yet or decided not to.
  • jojorabbit
    jojorabbit Member Posts: 59
    edited May 28, 2011 11:52AM
    Hi,
    am working on one project that uses accordion, last EA build(that i have, b19) has enum TitledPaneMode but beta does not have it.
    Here i what i have noticed in doc for TitledPane http://download.oracle.com/javafx/2.0/api/index.html under property section it has animated and collapsible property, so try this with panes that u add to accordion and u will see it seems like old enum TitledPaneMode :
            TitledPane t1 = new TitledPane(new Label("T1"), new Button("B1"));
            t1.setAnimated(false);
            
            TitledPane t2 = new TitledPane(new Label("T2"), new Button("B2"));
            t2.setCollapsible(false);
            TitledPane t3 = new TitledPane(new Label("T3"), new Button("B3"));
           
            Accordion accordion = new Accordion();
            accordion.getPanes().add(t1);
            accordion.getPanes().add(t2);
            accordion.getPanes().add(t3);
    but now in beta release TitledPane can be always expanded(collapsing can be disabled) in last version of EA(that i have, b19) that was not possible.

    I think that in all controls animating and similar stuff is done in Skin class so i think that for new animation u will need to make new skin for example fading, zooming and other stuff like that.
    And after that u need to specify Skin class in CSS.
    I will try some trivial animation for that and will post here if i find something so u can experiment.

    Hope that i helped.

    Edited by: 862124 on May 28, 2011 8:33 AM

    Edited by: 862124 on May 28, 2011 5:51 PM
This discussion has been closed.