Hybrid View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jan 2009
    Posts
    46
    Vote Rating
    0
    Konstantin.Scheglov is on a distinguished road

      0  

    Question Beta2 - ContentPanel has no setAppearance() method

    Beta2 - ContentPanel has no setAppearance() method


    From example:
    Code:
            <gxt:ContentPanel appearance="{accordionLayoutAppearance}" animCollapse="false" bodyStyleName="pad-text"          headingText="Settings">
              <g:Label text="{dummyTextShort}" />
            </gxt:ContentPanel>
    But ContentPanel has not setAppearance() method.
    And it has no @UiConstructor annotation.
    Field "appearance" is set only in construction.
    What do I miss?
    Is it bug?
    Konstantin Scheglov

  2. #2
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    241
    Vote Rating
    2
    gishmo is on a distinguished road

      0  

    Default


    No, this is not a bug.
    I think you are looking for a FramePanel.

  3. #3
    Sencha User
    Join Date
    Jan 2009
    Posts
    46
    Vote Rating
    0
    Konstantin.Scheglov is on a distinguished road

      0  

    Default


    Hm...

    1. But example uses ContentPanel. I don't understand how it could work. But I've not tried to compile my Beta2 Explorer example, I use online version.

    2. FramePanel extends ContentPanel, but does not add setter for Appearance or @UiConstructor marked constructor.
    Konstantin Scheglov

  4. #4
    Sencha User
    Join Date
    Nov 2011
    Posts
    2
    Vote Rating
    0
    devlearn is on a distinguished road

      0  

    Default


    Hi,

    What is the bottom line in order to create an accordion like presentation ?

    The 3.0 demo use a ContentPanel as stated by Konstantin.

    The suggestion for using the FramedPanel does not solve the issue as there is no setAppearance() method in the FramedPanel.

    I checked the javadoc, but cannot find a suitable component that could work.

    Anyone found a possible solution for the accordion ?

    Thanks per advance

  5. #5
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    241
    Vote Rating
    2
    gishmo is on a distinguished road

      0  

    Default


    Have you checked the constructor?
    As far as I know, appearance is always set within the constructor.

    So I would try: new ContentPanel(ContentPanelAppearence appearence) ...

  6. #6
    Sencha User
    Join Date
    Nov 2011
    Posts
    2
    Vote Rating
    0
    devlearn is on a distinguished road

      0  

    Default


    Hi,

    Thanks for the answer. I was wonderning how to use the accordion via the UiBinder.

    I suppose that in that case a setter is required ?