|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.database.Row
planetj.dataengine.PropertyRow
planetj.dataengine.operation.Operation
planetj.dataengine.operation.HTMLOperation
HTMLOperations allow entry and viewing of straight HTML from WOW. Users can directly code in HTML in any form and the HTML is simply included in the HTML sent to browser.
Nested Class Summary |
Nested classes inherited from class planetj.database.Row |
Row.SpacingRow |
Field Summary |
Fields inherited from class planetj.dataengine.operation.Operation |
className |
Fields inherited from class planetj.database.Row |
DISPLAY_ORDER_COMPARATOR, MODE_ALTER, MODE_COPY, MODE_DELETE, MODE_INSERT, MODE_READ, MODE_SEARCH, MODE_UNKNOWN, MODE_UPDATE, mRowEventListeners |
Fields inherited from interface planetj.dataengine.security.IGuarded |
TYPE_ID_UNKNOWN, TYPE_NAME_FIELD, TYPE_NAME_SQLOPERATION, TYPE_SECURED_BY_LEVEL, TYPE_SECURED_BY_OPERATION, TYPE_UNSECURED |
Constructor Summary | |
HTMLOperation()
|
Method Summary | |
java.lang.Object |
execute(Field field,
Row row,
ExecutingContext ec)
Executes this operation from the given executing context and Row and returns HTML code for this Operation. |
java.lang.String |
getDefaultOperationCode()
Return a default string to use on the operation field. |
java.lang.String |
getJspFile()
Gets this HTMLOperation's JSP file |
protected IOperationContext |
getNewContextInternal(Field field,
Row row,
ExecutingContext ec)
Gets a new IOperationContext for this operation. |
HTMLOperationContext |
getNewHTMLContext()
Create and return a new HTMLContext to which may be executed. |
URLOperationContext |
getNewURLContext()
Create and return a new HTMLContext to which may be executed. |
int |
insert(SQLContext context)
Inserts this Row into its table. |
boolean |
isDisplayable(ExecutingContext pEc)
Tests if a link to this operation should be displayed in the menu |
boolean |
isFieldApplicable(Field fld,
ExecutingContext ec)
Tests if a field is applicable in the current scenario |
boolean |
isFullJavaScriptCall()
Normally the URL returned by the execute method is rendered inside of a JavaScript function call which opens a new window and navigates to that URL. |
int |
update(java.sql.Connection c,
ExecutingContext ec)
Updates this Row in the DB |
Methods inherited from class planetj.dataengine.PropertyRow |
getProperties, getRowPropertyGroup, getRowPropertyGroups, setProperties, setPropertiesInternal, setRowPropertyGroups, setRowPropertyGroupsInternal, transferDataTo, transferPropertiesTo |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface planetj.dataengine.action.IActionObject |
getActionRequest, getActionRequest, handleAction, isActionApplicable |
Constructor Detail |
public HTMLOperation()
Method Detail |
public java.lang.Object execute(Field field, Row row, ExecutingContext ec) throws CMException
execute
in class Operation
ec
- ExecutingContext in which to execute this Operationrow
- Row containing values that may be used in
execution of this Operation
CMException
public java.lang.String getDefaultOperationCode()
getDefaultOperationCode
in class Operation
public java.lang.String getJspFile()
getJspFile
in class Operation
protected IOperationContext getNewContextInternal(Field field, Row row, ExecutingContext ec) throws CMException
getNewContextInternal
in class Operation
CMException
public HTMLOperationContext getNewHTMLContext() throws CMException
CMException
public URLOperationContext getNewURLContext() throws CMException
CMException
public int insert(SQLContext context) throws CMException
insert
in class Operation
CMException
public boolean isDisplayable(ExecutingContext pEc)
isDisplayable
in class Operation
public boolean isFieldApplicable(Field fld, ExecutingContext ec) throws CMException
isFieldApplicable
in class Row
fld
- The field which may or may not be applicable
CMException
public boolean isFullJavaScriptCall()
public int update(java.sql.Connection c, ExecutingContext ec) throws CMException
update
in class Operation
c
- The connection to use for the update
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |