org.wicketstuff.yui.markup.html.container
Class YuiWindow

java.lang.Object
  extended by org.wicketstuff.yui.markup.html.container.YuiWindow
All Implemented Interfaces:
Serializable, org.apache.wicket.IClusterable, IYuiWindow

public abstract class YuiWindow
extends Object
implements IYuiWindow

A simple implementation of IWindow.

Assumes that the header and footer are simple strings that can be retrieved from some model (e.g. a ResourceModel).

Implement IYuiWindow directly for more advanced options.

Author:
Erik van Oosten
See Also:
Serialized Form

Constructor Summary
YuiWindow(org.apache.wicket.model.IModel<String> titleModel, org.apache.wicket.model.IModel<String> footerModel)
          Ctor.
YuiWindow(String titleKey)
          Constructor for footer less window with fixed title.
 
Method Summary
 String getAdditionalOpts()
           
 org.apache.wicket.Component newFooter(String id)
          Creates the footer component.
 org.apache.wicket.Component newHeader(String id)
          Creates the header component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.wicketstuff.yui.markup.html.container.IYuiWindow
getDimension, newBody
 

Constructor Detail

YuiWindow

public YuiWindow(String titleKey)
Constructor for footer less window with fixed title.

Parameters:
titleKey - resource key for the title

YuiWindow

public YuiWindow(org.apache.wicket.model.IModel<String> titleModel,
                 org.apache.wicket.model.IModel<String> footerModel)
Ctor.

Parameters:
titleModel - model for the title or null for no title
footerModel - model for the footer or null for no footer
Method Detail

getAdditionalOpts

public String getAdditionalOpts()
Specified by:
getAdditionalOpts in interface IYuiWindow
Returns:
additional options to pass to the panel creation or null for none
See Also:
IYuiWindow.chess.wicket.yui.IWindow#getAdditionalOpts()

newFooter

public org.apache.wicket.Component newFooter(String id)
Description copied from interface: IYuiWindow
Creates the footer component.

Specified by:
newFooter in interface IYuiWindow
Parameters:
id - component id of new footer panel
Returns:
a component that will be placed in the footer of the window, must have the given component id.
See Also:
IYuiWindow.chess.wicket.yui.IWindow#newFooter(java.lang.String)

newHeader

public org.apache.wicket.Component newHeader(String id)
Description copied from interface: IYuiWindow
Creates the header component.

Specified by:
newHeader in interface IYuiWindow
Parameters:
id - component id of new footer panel
Returns:
a component that will be placed in the header of the window, must have the given component id.
See Also:
IYuiWindow.chess.wicket.yui.IWindow#newHeader(java.lang.String)


Copyright © 2006-2012 Wicket developers. All Rights Reserved.