gboat2.base.view.components
类 Dialog

java.lang.Object
  继承者 org.apache.struts2.components.Component
      继承者 org.apache.struts2.components.UIBean
          继承者 org.apache.struts2.components.ClosingUIBean
              继承者 gboat2.base.view.components.Dialog

public class Dialog
extends org.apache.struts2.components.ClosingUIBean

创建一个弹出框,弹出框中的内容可以是本页中的内容或通过 ajax 远程加载的数据。
弹出框是一个悬浮窗口,包括一个标题栏和一个内容区域。弹出框窗口可以移动,重新调整大小,默认情况下通过 'x' 图标关闭。 如果内容长度超过最大高度,一个滚动条会自动出现。 详见:jQuery UI Dialog

可以通过内嵌 <g2:draggable> 标签实现可拖拽,内嵌 <g2:resizable> 标签实现可调整尺寸,内嵌 <g2:remote> 标签实现弹出框中的内容从远程服务器加载。

示例代码:
 <g2:dialog id="mymodaldialog" modal="true" title="从远程服务器加载数据的模态弹出框"
      width="600" position="{my: 'right top', at: 'right-200 top+100'}">
     <g2:remote href="ajax/example.action?forward=ajax/ajax1"/>
     <img id="indicator" src="${componentPath}/jqueryui/images/indicator.gif" alt="正在加载内容..."/>
 </g2:dialog>
 

从以下版本开始:
3.0.0-SNAPSHOT
作者:
何明旺

字段摘要
protected  String appendTo
           
protected  String autoOpen
           
protected  String buttons
           
protected  String closeOnEscape
           
protected  String closeText
           
protected  String closeTopics
           
protected  String destroyTopics
           
protected  String dialogClass
           
protected  String draggable
           
protected  String height
           
protected  String hide
           
static String JQUERYACTION
           
protected  String maxHeight
           
protected  String maxWidth
           
protected  String minHeight
           
protected  String minWidth
           
protected  String modal
           
protected  String onBeforeCloseTopics
           
protected  String onCloseTopics
           
protected  String onFocusTopics
           
protected  String onOpenTopics
           
protected  String openTopics
           
protected  String position
           
protected  String resizable
           
protected  String show
           
protected  String showCloseButton
           
static String TEMPLATE
           
static String TEMPLATE_CLOSE
           
protected  String width
           
 
从类 org.apache.struts2.components.UIBean 继承的字段
accesskey, cssClass, cssErrorClass, cssErrorStyle, cssStyle, defaultTemplateDir, defaultUITheme, disabled, dynamicAttributes, errorPosition, id, javascriptTooltip, key, label, labelPosition, labelSeparator, name, onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, request, requiredLabel, requiredPosition, response, standardAttributesMap, tabindex, template, templateDir, templateEngineManager, templateSuffix, theme, title, tooltip, tooltipConfig, tooltipCssClass, tooltipDelay, tooltipIconPath, uiThemeExpansionToken, value
 
从类 org.apache.struts2.components.Component 继承的字段
actionMapper, COMPONENT_STACK, parameters, stack, throwExceptionOnELFailure
 
构造方法摘要
Dialog(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
方法摘要
 void evaluateExtraParams()
           
 String getDefaultOpenTemplate()
           
protected  String getDefaultTemplate()
           
 void setAppendTo(String appendTo)
           
 void setAutoOpen(String autoOpen)
           
 void setButtons(String buttons)
           
 void setCloseOnEscape(String closeOnEscape)
           
 void setCloseText(String closeText)
           
 void setCloseTopics(String closeTopics)
           
 void setDestroyTopics(String destroyTopics)
           
 void setDialogClass(String dialogClass)
           
 void setDraggable(String draggable)
           
 void setHeight(String height)
           
 void setHide(String hide)
           
 void setMaxHeight(String maxHeight)
           
 void setMaxWidth(String maxWidth)
           
 void setMinHeight(String minHeight)
           
 void setMinWidth(String minWidth)
           
 void setModal(String modal)
           
 void setOnBeforeCloseTopics(String onBeforeCloseTopics)
           
 void setOnCloseTopics(String onCloseTopics)
           
 void setOnFocusTopics(String onFocusTopics)
           
 void setOnOpenTopics(String onOpenTopics)
           
 void setOpenTopics(String openTopics)
           
 void setPosition(String position)
           
 void setResizable(String resizable)
           
 void setShow(String show)
           
 void setShowCloseButton(String showCloseButton)
           
 void setTitle(String title)
           
 void setWidth(String width)
           
 
从类 org.apache.struts2.components.ClosingUIBean 继承的方法
setOpenTemplate, start
 
从类 org.apache.struts2.components.UIBean 继承的方法
addFormParameter, buildTemplateName, copyParams, enableAncestorFormCustomOnsubmit, end, ensureAttributeSafelyNotEscaped, escape, evaluateNameValue, evaluateParams, getId, getStandardAttributes, getTemplate, getTemplateDir, getTheme, getTooltipConfig, getValueClassType, mergeTemplate, populateComponentHtmlId, setAccesskey, setCssClass, setCssErrorClass, setCssErrorStyle, setCssStyle, setDefaultTemplateDir, setDefaultUITheme, setDisabled, setDynamicAttributes, setErrorPosition, setId, setJavascriptTooltip, setKey, setLabel, setLabelposition, setLabelSeparator, setName, setOnblur, setOnchange, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setOnselect, setRequiredLabel, setRequiredPosition, setTabindex, setTemplate, setTemplateDir, setTemplateEngineManager, setTheme, setTooltip, setTooltipConfig, setTooltipCssClass, setTooltipDelay, setTooltipIconPath, setUIThemeExpansionToken, setValue
 
从类 org.apache.struts2.components.Component 继承的方法
addAllParameters, addParameter, altSyntax, completeExpressionIfAltSyntax, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findStringIfAltSyntax, findValue, findValue, findValue, getComponentStack, getParameters, getStack, popComponentStack, setActionMapper, setThrowExceptionsOnELFailure, setUrlHelper, stripExpressionIfAltSyntax, toString, usesBody
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

TEMPLATE

public static final String TEMPLATE
另请参见:
常量字段值

TEMPLATE_CLOSE

public static final String TEMPLATE_CLOSE
另请参见:
常量字段值

JQUERYACTION

public static final String JQUERYACTION
另请参见:
常量字段值

appendTo

protected String appendTo

autoOpen

protected String autoOpen

buttons

protected String buttons

closeOnEscape

protected String closeOnEscape

closeText

protected String closeText

dialogClass

protected String dialogClass

draggable

protected String draggable

height

protected String height

hide

protected String hide

maxHeight

protected String maxHeight

maxWidth

protected String maxWidth

minHeight

protected String minHeight

minWidth

protected String minWidth

modal

protected String modal

position

protected String position

resizable

protected String resizable

show

protected String show

width

protected String width

showCloseButton

protected String showCloseButton

onBeforeCloseTopics

protected String onBeforeCloseTopics

onCloseTopics

protected String onCloseTopics

onFocusTopics

protected String onFocusTopics

onOpenTopics

protected String onOpenTopics

openTopics

protected String openTopics

closeTopics

protected String closeTopics

destroyTopics

protected String destroyTopics
构造方法详细信息

Dialog

public Dialog(com.opensymphony.xwork2.util.ValueStack stack,
              javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
方法详细信息

getDefaultOpenTemplate

public String getDefaultOpenTemplate()
指定者:
org.apache.struts2.components.ClosingUIBean 中的 getDefaultOpenTemplate

getDefaultTemplate

protected String getDefaultTemplate()
指定者:
org.apache.struts2.components.UIBean 中的 getDefaultTemplate

evaluateExtraParams

public void evaluateExtraParams()
覆盖:
org.apache.struts2.components.UIBean 中的 evaluateExtraParams

setAppendTo

public void setAppendTo(String appendTo)

setAutoOpen

public void setAutoOpen(String autoOpen)

setButtons

public void setButtons(String buttons)

setCloseOnEscape

public void setCloseOnEscape(String closeOnEscape)

setCloseText

public void setCloseText(String closeText)

setDialogClass

public void setDialogClass(String dialogClass)

setDraggable

public void setDraggable(String draggable)

setHeight

public void setHeight(String height)

setHide

public void setHide(String hide)

setMaxHeight

public void setMaxHeight(String maxHeight)

setMaxWidth

public void setMaxWidth(String maxWidth)

setMinHeight

public void setMinHeight(String minHeight)

setMinWidth

public void setMinWidth(String minWidth)

setModal

public void setModal(String modal)

setPosition

public void setPosition(String position)

setResizable

public void setResizable(String resizable)

setShow

public void setShow(String show)

setTitle

public void setTitle(String title)
覆盖:
org.apache.struts2.components.UIBean 中的 setTitle

setWidth

public void setWidth(String width)

setShowCloseButton

public void setShowCloseButton(String showCloseButton)

setOnBeforeCloseTopics

public void setOnBeforeCloseTopics(String onBeforeCloseTopics)

setOnCloseTopics

public void setOnCloseTopics(String onCloseTopics)

setOnFocusTopics

public void setOnFocusTopics(String onFocusTopics)

setOnOpenTopics

public void setOnOpenTopics(String onOpenTopics)

setOpenTopics

public void setOpenTopics(String openTopics)

setCloseTopics

public void setCloseTopics(String closeTopics)

setDestroyTopics

public void setDestroyTopics(String destroyTopics)


Copyright © 2014 广联达软件股份有限公司(Glodon Software Co., Ltd.). All rights reserved.