|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.markup.html.link.PopupSettings
public class PopupSettings
A popup specification can be used as a property of the Link
classes to specify that the
link should be rendered with an onClick javascript event handler that opens a new window with the
links' URL.
You can 'or' display flags together like this:
new PopupSettings(PopupSettings.RESIZABLE | PopupSettings.SCROLLBARS);
Field Summary | |
---|---|
static int |
LOCATION_BAR
Flag to include location bar |
static int |
MENU_BAR
Flag to include menu bar |
static int |
RESIZABLE
Flag to make popup resizable |
static int |
SCROLLBARS
Flag to include scrollbars |
static int |
STATUS_BAR
Flag to include status bar |
static int |
TOOL_BAR
Flag to include location bar |
Constructor Summary | |
---|---|
PopupSettings()
Construct. |
|
PopupSettings(int displayFlags)
Construct. |
|
PopupSettings(IPageMap pagemap)
Deprecated. Use the PopupSettings(String) |
|
PopupSettings(IPageMap pageMapName,
int displayFlags)
Deprecated. Use the PopupSettings(String, int) |
|
PopupSettings(String pageMapName)
Construct. |
|
PopupSettings(String pageMapName,
int displayFlags)
Construct. |
Method Summary | |
---|---|
IPageMap |
getPageMap()
Deprecated. will be removed in Wicket 2.0; use getPageMap(Component) instead |
IPageMap |
getPageMap(Component callee)
Deprecated. Use getPageMapName instead. There is no need to eager create the pagemap object to create URLs. The pagemap will be created during the request cycle when user click on the link for this popup. |
String |
getPageMapName(Component callee)
Gets the page map name. |
String |
getPopupJavaScript()
Get the onClick javascript event handler. |
PopupSettings |
setHeight(int popupHeight)
Sets the popup window height. |
PopupSettings |
setLeft(int popupPositionLeft)
Sets the left position of the popup window. |
void |
setTarget(String target)
Sets the target of the link. |
PopupSettings |
setTop(int popupPositionTop)
Sets the top position of the popup window. |
PopupSettings |
setWidth(int popupWidth)
Sets the popup window width. |
PopupSettings |
setWindowName(String popupWindowName)
Sets the window name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LOCATION_BAR
public static final int MENU_BAR
public static final int RESIZABLE
public static final int SCROLLBARS
public static final int STATUS_BAR
public static final int TOOL_BAR
Constructor Detail |
---|
public PopupSettings()
PageMap
argument. Typically, you should put any popup in a separate page map as
Wicket holds references to a limited number of pages/ versions only. If you don't put your
popup in a separate page map, the user might get page expired exceptions when getting back to
the main window again.
public PopupSettings(int displayFlags)
displayFlags
- Display flags@Deprecated public PopupSettings(IPageMap pagemap)
PopupSettings(String)
pagemap
- The pagemap where this popup must be in. Typically, you should put any popup in a
separate page map as Wicket holds references to a limited number of pages/
versions only. If you don't put your popup in a separate page map, the user might
get page expired exceptions when getting back to the main window again.public PopupSettings(String pageMapName)
pageMapName
- The page map name where this popup must be in. Typically, you should put any popup
in a separate page map as Wicket holds references to a limited number of pages/
versions only. If you don't put your popup in a separate page map, the user might
get page expired exceptions when getting back to the main window again.@Deprecated public PopupSettings(IPageMap pageMapName, int displayFlags)
PopupSettings(String, int)
public PopupSettings(String pageMapName, int displayFlags)
pageMapName
- The pagemap where this popup must be in. Typically, you should put any popup in a
separate page map as Wicket holds references to a limited number of pages/
versions only. If you don't put your popup in a separate page map, the user might
get page expired exceptions when getting back to the main window again.displayFlags
- Display flagsMethod Detail |
---|
public String getPopupJavaScript()
public PopupSettings setHeight(int popupHeight)
popupHeight
- the popup window height.
public PopupSettings setLeft(int popupPositionLeft)
popupPositionLeft
- the left position of the popup window.
public void setTarget(String target)
target
- the target of the linkpublic PopupSettings setTop(int popupPositionTop)
popupPositionTop
- the top position of the popup window.
public PopupSettings setWidth(int popupWidth)
popupWidth
- the popup window width.
public PopupSettings setWindowName(String popupWindowName)
popupWindowName
- window name.
@Deprecated public IPageMap getPageMap()
getPageMap(Component)
instead
@Deprecated public IPageMap getPageMap(Component callee)
callee
- Calling component
public String getPageMapName(Component callee)
callee
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |