org.odlabs.wiquery.ui.themes
Class ThemeUiHelper

java.lang.Object
  extended by org.odlabs.wiquery.ui.themes.ThemeUiHelper

public abstract class ThemeUiHelper
extends Object

$Id$

Helper to decorate your Wicket component with the theme of the jQuery UI framework

Since:
1.0
Author:
Julien Roche

Nested Class Summary
static class ThemeUiHelper.IconEnum
          Deprecated. use UiIcon instead
 
Constructor Summary
ThemeUiHelper()
           
 
Method Summary
static void buttonRounded(org.apache.wicket.Component component)
          Method to decorate your button
static void buttonRoundedFocused(org.apache.wicket.Component component)
          Method to decorate your button
static void componentRounded(org.apache.wicket.Component component)
          Method to decorate your container (div, span ...)
static void errorText(org.apache.wicket.Component component)
          Method to display into your component an error text
static void headerComponent(org.apache.wicket.Component component)
          Styles the given Component as a jQuery UI header.
static void highlightedText(org.apache.wicket.Component component)
          Method to display into your component a highlighted text
static JsStatement hover(org.apache.wicket.Component component)
          Method to get the JsStatement to insert the hover style on your Component
static void hover(org.apache.wicket.Component component, org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
          Method to insert the the hover style into the Ajax transaction
static void iconComponent(org.apache.wicket.Component component, ThemeUiHelper.IconEnum iconEnum)
          Method to display your composant as an icon
static void iconComponent(org.apache.wicket.Component component, UiIcon icon)
          Method to display your composant as an icon
static void overlayComponent(org.apache.wicket.Component component)
          Method to display a component as an overlay
static void shadowComponent(org.apache.wicket.Component component)
          Styles the given Component as a jQuery UI shadow.
static void titleComponent(org.apache.wicket.Component component)
          Method to display a component as a title
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeUiHelper

public ThemeUiHelper()
Method Detail

errorText

public static void errorText(org.apache.wicket.Component component)
Method to display into your component an error text

Parameters:
component - Wicket component

buttonRounded

public static void buttonRounded(org.apache.wicket.Component component)
Method to decorate your button

Parameters:
component - Wicket component

buttonRoundedFocused

public static void buttonRoundedFocused(org.apache.wicket.Component component)
Method to decorate your button

Parameters:
component - Wicket component

componentRounded

public static void componentRounded(org.apache.wicket.Component component)
Method to decorate your container (div, span ...)

Parameters:
component - Wicket component

highlightedText

public static void highlightedText(org.apache.wicket.Component component)
Method to display into your component a highlighted text

Parameters:
component - Wicket component

hover

public static JsStatement hover(org.apache.wicket.Component component)
Method to get the JsStatement to insert the hover style on your Component

Parameters:
component - Wicket component
Returns:
the JsStatement

hover

public static void hover(org.apache.wicket.Component component,
                         org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to insert the the hover style into the Ajax transaction

Parameters:
component - Wicket component
ajaxRequestTarget - Ajax transaction

iconComponent

public static void iconComponent(org.apache.wicket.Component component,
                                 ThemeUiHelper.IconEnum iconEnum)
Method to display your composant as an icon

Parameters:
component - Wicket component
iconEnum - Icon to display

iconComponent

public static void iconComponent(org.apache.wicket.Component component,
                                 UiIcon icon)
Method to display your composant as an icon

Parameters:
component - Wicket component
iconEnum - Icon to display

overlayComponent

public static void overlayComponent(org.apache.wicket.Component component)
Method to display a component as an overlay

Parameters:
component - Wicket component

titleComponent

public static void titleComponent(org.apache.wicket.Component component)
Method to display a component as a title

Parameters:
component - Wicket component

headerComponent

public static void headerComponent(org.apache.wicket.Component component)
Styles the given Component as a jQuery UI header.


shadowComponent

public static void shadowComponent(org.apache.wicket.Component component)
Styles the given Component as a jQuery UI shadow.



Copyright © 2012. All Rights Reserved.