jp.littlesoft.web
クラス DefaultDialog<E extends Serializable>
java.lang.Object
jp.littlesoft.web.ActionPage
jp.littlesoft.web.SQLActionPage
jp.littlesoft.web.DefaultDialog<E>
- すべての実装されたインタフェース:
- Serializable, EventListener, TableListener, ISQLApplication
public class DefaultDialog<E extends Serializable>
- extends SQLActionPage
- 関連項目:
- 直列化された形式
クラス jp.littlesoft.web.ActionPage から継承されたフィールド |
actionPageId, ARGS_ISNULL, DELIMITER_ARGS, logger, methodName, parentPage, PN_ACTIONPAGE_ID, PN_APPLICATION_PARAMS, PN_ARGS, PN_CLASS, PN_FORM_NAME, PN_JSESSION_ID, PN_LOADING_SCRIPT, PN_METHOD, PN_PARENT_ACTIONPAGE_ID, PN_SELF_GET_URL, PN_SELF_URL, PN_SEQ, PN_SUBSESSION_ID, PN_USE_AJAX, RA_PARENT_ARGS, RA_PARENT_PAGE, request, response, selfClassName, subActionPage, subSession |
コンストラクタの概要 |
DefaultDialog(E... e)
|
DefaultDialog(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
E... e)
|
クラス jp.littlesoft.web.SQLActionPage から継承されたメソッド |
$, $bindParam, $column, $evaluateNonNulls, $evaluateNonNulls, $if, $if, $useDummy, $useRemote, $useRemoteDummy, dataChanged, delete, insert, resetDynamicCondtions, select, setDynamicCondtion, setRemoteConnection, update |
クラス jp.littlesoft.web.ActionPage から継承されたメソッド |
closeSession, closeSubPage, doDefault, doDefault, execute, forward, getActionMethodArguments, getActionPageId, getConnection, getContentType, getController, getControlParams, getFormName, getJsessionID, getLoadscript, getMergedString, getParentPage, getRequest, getResponse, getSequenceValue, getSequenceValue, getSessionAttribute, getSubSession, getUploadFileManager, getVelocityEngine, init, init, isAjaxRequest, isAjaxRequest, isStrictSession, isUseAjax, merge, merge, onAjaxExceptionAction, onDefaultCheckRequestError, onExecExceptionAction, onJavaAppCallBack, onJavaAppCallBack, onReleaseConnectionExcepion, onStartAction, onStartShow, releaseJDBCConnection, removeSessionAttribute, rowDeleting, rowFiltering, rowValidating, setContentType, setContenxt, setFormName, setLoadscript, setParentPage, setSessionAttribute, setStrictSession, setTemplateName, setUseAjax, show, show, show, show, showDialog, showDialog, showWithAlert, showWithAlert, startJavaApp, startNewSubSession, valueBound, valueUnbound, writeAjaxExceptionResponse, writeAjaxResponse, writeAjaxResponse, writeAjaxResponse, writeAjaxResponse, writeAjaxSequenceErrorResponse |
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
args
protected HashMap<String,Serializable> args
buttonWidth
protected int buttonWidth
templateResource
protected String templateResource
formStyle
protected String formStyle
title
protected String title
buttons
protected DefaultDialog.Button[] buttons
DefaultDialog
public DefaultDialog(E... e)
DefaultDialog
public DefaultDialog(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
E... e)
getHTMLButton
protected static String getHTMLButton(DefaultDialog.Button button,
int buttonWidth)
getHeaderScript
protected String getHeaderScript()
- 2010.1.30 tnagao : このメソッドからテンプレートへ埋め込みたいが、うまくいかないので、現状べた書き
- 戻り値:
jsShowInfo
protected static String jsShowInfo(String message)
jsShowError
protected static String jsShowError(String message)
jsShowConfirm
protected static String jsShowConfirm(String message)
onButtonClick
public void onButtonClick(HashMap<String,Object> args)
throws Exception
- ダイアログボタンがクリックされた際のアクション
- パラメータ:
args
-
- 例外:
Exception
onValidate
protected void onValidate(E data)
throws IDialogClient.Error,
IDialogClient.Confirm
- ダイアログボタンがクリックされた際,データ内容の検証を実装する為のプロテクトメソッド.
当クラスを継承したアプリケーションクラスでデータチェック等の処理を実装してください.
エラーが検出した際は、適切なメッセージとともにIDialogClient.Errorをスローしてください.
これによりディフォルトのエラーメッセージボックスがブラウザに表示されます.
また、ユーザーの確認(YES/NO)を必要とすろ場合はIDialogClient.Confirmをスローしてください.
これによりYES/NOの確認メッセージボックスがブラウザに表示されます.
- パラメータ:
data
-
- 例外:
IDialogClient.Error
IDialogClient.Confirm
setButtons
protected void setButtons(DefaultDialog.Button... button)
acceptCleintData
protected void acceptCleintData()
throws DataException
- ダイアログの呼び出しもとからデータを取得します.
継承クラスのコンストラクタで当メソッドを呼び出してください.
- 例外:
DataException
updateCleintData
protected void updateCleintData()
throws DataException
- 例外:
DataException
onStartShow
protected void onStartShow(org.apache.velocity.VelocityContext velocityContext)
throws Exception
- クラス
ActionPage
の記述:
- ページ出力前に呼び出される処理を実装します。
VelocityContextに値をセットすることができます。
このメソッドの処理は空です。
- オーバーライド:
- クラス
ActionPage
内の onStartShow
- 例外:
Exception
- 例外発生時
getButtons
protected String getButtons()
getFormElements
protected String getFormElements()
throws Exception
- 例外:
Exception
getDataTable
protected WebDataTable<E> getDataTable()
setDataTable
protected void setDataTable(WebDataTable<E> dataTable)
throws DataException
- 例外:
DataException
getTitle
public String getTitle()
setTitle
public void setTitle(String title)
getDialogClient
public IDialogClient getDialogClient()
getArgs
protected HashMap<String,Serializable> getArgs()
setArgs
protected void setArgs(HashMap<String,Serializable> args)
getButtonWidth
protected int getButtonWidth()
setButtonWidth
protected void setButtonWidth(int buttonWidth)
getTemplateResource
protected String getTemplateResource()
setTemplateResource
protected void setTemplateResource(String templateResource)
getFormStyle
protected String getFormStyle()
setFormStyle
protected void setFormStyle(String formStyle)
isAutoClose
public boolean isAutoClose()
setAutoClose
public void setAutoClose(boolean autoClose)
getOnCloseScript
public String getOnCloseScript()
setOnCloseScript
public void setOnCloseScript(String onCloseScript)
Copyright (C) 2006-2012 LittleSoft Corporation. All Rights Reserved.