Hybrid View

  1. #1
    Ext GWT Premium Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    80
    Vote Rating
    0
    Cypher is on a distinguished road

      0  

    Thumbs up More ExtGWT themes derived from ExtJS ones

    More ExtGWT themes derived from ExtJS ones


    Hi guys,

    I have wrapped the ExtJS themes created by madrabaz so they can be used also in ExtGWT.

    Themes:
    - Black (http://extjs.com/forum/showthread.php?t=15504);
    - DarkGray (http://extjs.com/forum/showthread.php?t=15341);
    - Olive (http://extjs.com/forum/showthread.php?t=15505);
    - Purple (http://extjs.com/forum/showthread.php?t=15377);
    - Slickness (http://extjs.com/forum/showthread.php?t=28024);

    Usage:

    Insert this to your *.gwt.xml file:
    Code:
    <inherits name='ext.ux.theme.black.Black'/>
    <inherits name='ext.ux.theme.darkgray.DarkGray'/>
    <inherits name='ext.ux.theme.purple.Purple'/>
    <inherits name='ext.ux.theme.olive.Olive'/>
    <inherits name='ext.ux.theme.slickness.Slickness'/>
    Then add the theme JAR files to your classpath.

    Then add this to your ExtGWT Java code:
    Code:
    import ext.ux.theme.black.client.Black;
    import ext.ux.theme.darkgray.client.DarkGray;
    import ext.ux.theme.purple.client.Purple;
    import ext.ux.theme.olive.client.Olive;
    import ext.ux.theme.slickness.client.Slickness;
    And then register the theme as follows:
    Code:
    ThemeManager.register(Black.BLACK);
    ThemeManager.register(DarkGray.DARKGRAY);
    ThemeManager.register(Olive.OLIVE);
    ThemeManager.register(Purple.PURPLE);
    ThemeManager.register(Slickness.SLICKNESS);
    Enjoy!

    Cypher

    PS:
    The attached ZIP files need to be renamed to JAR and then included in your ExtGWT project.
    Attached Files

  2. #2
    Ext User
    Join Date
    Jul 2008
    Posts
    13
    Vote Rating
    0
    bjagodzinski is on a distinguished road

      0  

    Default


    As a beginner I have a question concerning adding a theme to the project. I add the module inherited in the xml file, add the jar to the classpath, register the theme and nothing changes with the display..
    I suppose I can be placing register line in the wrong place, I paste the line
    Code:
    ThemeManager.register(Slickness.SLICKNESS);
    in the first line of the onModuleLoad() method of my entry point. Is it right?

    regards,
    bj
    Last edited by bjagodzinski; 15 Sep 2008 at 11:47 PM. Reason: misspelling

  3. #3
    Ext User
    Join Date
    Jul 2008
    Posts
    13
    Vote Rating
    0
    bjagodzinski is on a distinguished road

      0  

    Default


    Ok, I found the solution. For those who might be interested in the future: Registering a theme is not enough, you have to also set the theme, to have it visible. To do this, you can use ThemeSelector combobox, or set the theme as default theme for the app, just by pasting this line into the onModuleLoad method:

    Code:
    GXT.setDefaultTheme(Slickness.SLICKNESS, true);

  4. #4
    Ext GWT Premium Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    80
    Vote Rating
    0
    Cypher is on a distinguished road

      0  

    Default


    Sorry, I forgot to mention that one has to either set the default theme or add a "Theme Selector" list-box GUI somewhere in the configuration section of the GWT application, something like this:

    Code:
    HorizontalPanel configPanel = new HorizontalPanel();   
    configPanel.setSpacing(10);
            
    ContentPanel themesPanel = new ContentPanel();
    themesPanel.setHeading("Themes");
    themesPanel.setFrame(true);
    themesPanel.setWidth(150);
    themesPanel.setLayout(new FillLayout());
    themesPanel.add(new ThemeSelector());
            
    configPanel.add(themesPanel);
            
    add(configPanel);
    The screenshot of such "Theme Selector" panel is attached.

    Thanks, bjagodzinski, for bringing this to my attention.

    Cypher
    Attached Images

  5. #5
    Ext User
    Join Date
    May 2008
    Posts
    27
    Vote Rating
    0
    Daniel Kurka is on a distinguished road

      0  

    Default


    The files inside the zips dont have the file extension .jar

    Maybe correct that?

  6. #6
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    no, the files need to be renamed to .jar and then included in your project.

  7. #7
    Sencha User
    Join Date
    Jun 2009
    Posts
    10
    Vote Rating
    0
    rgalvao is on a distinguished road

      0  

    Default


    Hey Cipher,

    Does they work on GXT 2.0?
    If not, what are the changes that need to be made?

    TIA,
    R.

  8. #8
    Ext GWT Premium Member
    Join Date
    Aug 2008
    Posts
    47
    Vote Rating
    0
    xalvaro is on a distinguished road

      0  

    Default


    For the few test I have done,
    They seems to work.

  9. #9
    Sencha User
    Join Date
    Jul 2009
    Posts
    47
    Vote Rating
    0
    navi75 is on a distinguished road

      0  

    Default


    What steps did you followed to configure the same on Intellij8 IDE to make it work?

    1) Download the ZIP files for the themes?
    2) Rename them to Jar.
    3) Place the Jar files in the lib directory of the project.
    4) Configure the same in the *.gwt.xml file as below

    <inherits name='ext.ux.theme.black.Black'/>
    <inherits name='ext.ux.theme.darkgray.DarkGray'/>
    <inherits name='ext.ux.theme.purple.Purple'/>
    <inherits name='ext.ux.theme.olive.Olive'/>
    <inherits name='ext.ux.theme.slickness.Slickness'/>

    Is all the above steps correct.

  10. #10
    Ext GWT Premium Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    80
    Vote Rating
    0
    Cypher is on a distinguished road

      0  

    Default


    Well, rgalvao, then seem to work fine also with GXT 2.0.
    Cypher

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar