public class GXTagsAccesorImpl extends Object implements GXITagsAccesor, Serializable
GXITagsAccesor| Constructor and Description |
|---|
GXTagsAccesorImpl(HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
void |
AddHiddenFieldToForm(String name,
String value)
Dynamically adds an input hidden field to the JSP page.
|
void |
AddHtmlTextToForm(String htmlText)
Adds an HTML text to the JSP page.
|
void |
AddJSToForm(String jsString)
Adds a JavaScript code to the JSP page.
|
void |
addTableKeyColumn(String refTagId,
String keyCol)
This method is used for setting the key column(s) of a gx table tag.
|
String |
getBodyAttribute(String attrName) |
Hashtable |
getBodyAttributes() |
String |
getFileName(String refTagId)
Retrieves a file name of an uploaded file according to the tag ID
(<gx:input type="file" id=" |
String |
getFormAttribute(String attrName) |
Hashtable |
getFormAttributes() |
String |
getFormTopString() |
Map |
getHiddens() |
InputStream |
getInputStream(String refTagId)
Retrieves an Input Stream for an uploaded file according to the tag ID
(<gx:input type="file" id=" |
Hashtable |
getInputTagAttributes(String refTagid) |
String |
getPanelToUpdate() |
String |
getPanelToUpdateContent() |
String |
getTableName()
Used for retrieving the table tag ID in the current page
|
String |
getTableSelectedKey(String tagId)
Returns the value of the selected key, as specified in
GXITagsAccesor.addTableKeyColumn(String, String).If key columns were not added, the row index is returned. |
String[] |
getTableSelectedKeys(String refTagId)
Returns the values of the selected keys, as specified in
GXITagsAccesor.addTableKeyColumn(String, String). |
String |
getTagAttribute(String refTagId,
String attrName)
Returns the content of an attribute of a specific tag per tag id and the attribute name
|
Hashtable |
getTagAttributes(String refTagid) |
String |
getTagContent(String tagId)
Retrieves the tag content from the Request scope.
|
String[] |
getTagContents(String refTagName) |
boolean |
isTagVisible(String refTagId) |
void |
recycleBodyTag() |
void |
recycleTag(String refTagId,
Hashtable tagPrivateAttributes) |
void |
removeTagAttribute(String refTagId,
String attrName) |
void |
setAttributeListIfEmpty(String refTagId,
Hashtable attrList) |
void |
setBodyAttribute(String attrName,
String content) |
void |
setBodyAttributeIfEmpty(String attrName,
String content) |
void |
setFormAttribute(String attrName,
String content)
Sets a dynamic attribute to <gx:form> tag.
|
void |
setInputTagAttribute(String refTagId,
String attrName,
String content) |
void |
setPageVisible(boolean visible)
When set to false, the page will not be rendered.
|
void |
setPanelToUpdateContent(String content) |
void |
setTagAttribute(String refTagId,
String attrName,
String content)
Sets a dynamic attribute to the specified tag ID.
|
void |
setTagContent(String refTagId,
String content)
Sets content to a gx tag with the specified tag ID.
|
void |
setTagContentIfEmpty(String refTagId,
String content) |
void |
setTagList(String refTagId,
GXINameValueCollection list) |
void |
setTagList(String refTagId,
Hashtable list) |
void |
setTagTable(String tagId,
GXITable table) |
void |
setTagTable(String refTagId,
GXITable table,
com.sabratec.j2ee.framework.web.tables.GXITableBuildConfig config,
GXITableEvents events)
Deprecated.
|
void |
setTagTable(String tagId,
GXITable table,
GXITableBuildConfig config) |
void |
setTagTable(String refTagId,
GXITable table,
GXITableBuildConfig config,
GXITableEvents events) |
void |
setTagVisible(String refTagId,
boolean visible)
When set to false, the specified tag ID will not be rendered.
|
void |
setTagVisibleIfEmpty(String refTagId,
boolean visible) |
public void setTagContent(String refTagId, String content)
GXITagsAccesor <gx:input> - the content is set in the value attribute.
<gx:span> (or any other label tag) - the content is set as the inner HTML.
<gx:select> - the content is set by the option whose value is equal to the specified content.
<gx:radioButtonList> - the content is set by the radio button whose value is equal to the specified content.
<gx:checkbox> - the check box is checked if the content equals the checked value.
setTagContent in interface GXITagsAccesorrefTagId - The ID of the gx tagcontent - The dynamic content to set to the gx tagpublic String getTagContent(String tagId)
GXITagsAccesor setTagContent for the specified tag ID was already set it will be returned,
otherwise the form/queryString value will be returned.getTagContent in interface GXITagsAccesortagId - the content of the specified tag IDpublic void setTagVisible(String refTagId, boolean visible)
GXITagsAccesorsetTagVisible in interface GXITagsAccesorrefTagId - The tag ID to hidevisible - true/false to determine whether to hide/show a tagpublic void setTagVisibleIfEmpty(String refTagId, boolean visible)
public boolean isTagVisible(String refTagId)
public void setTagList(String refTagId, Hashtable list)
setTagList in interface GXITagsAccesorpublic void setTagTable(String tagId, GXITable table)
setTagTable in interface GXITagsAccesorGXITagsAccesor.setTagTable(String, GXITable, GXITableBuildConfig, GXITableEvents)public void setTagTable(String tagId, GXITable table, GXITableBuildConfig config)
setTagTable in interface GXITagsAccesorGXITagsAccesor.setTagTable(String, GXITable, GXITableBuildConfig, GXITableEvents)@Deprecated public void setTagTable(String refTagId, GXITable table, com.sabratec.j2ee.framework.web.tables.GXITableBuildConfig config, GXITableEvents events)
setTagTable(String, GXITable, GXITableBuildConfig, GXITableEvents) insteadsetTagTable in interface GXITagsAccesorpublic void setTagTable(String refTagId, GXITable table, GXITableBuildConfig config, GXITableEvents events)
setTagTable in interface GXITagsAccesorpublic void addTableKeyColumn(String refTagId, String keyCol)
GXITagsAccesoraddTableKeyColumn("TABLE TAG ID","ItemNumber") before the table is displayed,
when you will select a row and post back to the context class, you will be able to retrieve the selected item number using GXITagsAccesor.getTableSelectedKey(String)
and use it in order to find and drill down to the relevant row.addTableKeyColumn in interface GXITagsAccesorrefTagId - The table tag IDkeyCol - The key column name in GXITable.getColumns()public String getTableSelectedKey(String tagId)
GXITagsAccesorGXITagsAccesor.addTableKeyColumn(String, String).getTableSelectedKey in interface GXITagsAccesortagId - The table tag IDpublic String[] getTableSelectedKeys(String refTagId)
GXITagsAccesorGXITagsAccesor.addTableKeyColumn(String, String).
Use this method when you specify more then one key column in the method addTableKeyColumn.
If key columns were not added, the row index is returned.getTableSelectedKeys in interface GXITagsAccesorrefTagId - The table tag IDpublic String getTableName()
GXITagsAccesorgetTableName in interface GXITagsAccesorpublic void setTagAttribute(String refTagId, String attrName, String content)
GXITagsAccesorsetTagAttribute in interface GXITagsAccesorrefTagId - the tag IDattrName - the name of the attribute to setcontent - the content for the attributepublic void setInputTagAttribute(String refTagId, String attrName, String content)
public String getTagAttribute(String refTagId, String attrName)
GXITagsAccesorgetTagAttribute in interface GXITagsAccesorrefTagId - the tag IDattrName - the attribute namepublic void AddHiddenFieldToForm(String name, String value)
GXITagsAccesorAddHiddenFieldToForm in interface GXITagsAccesorname - The name of the hidden fieldvalue - The value of the hidden fieldpublic Map getHiddens()
public void AddJSToForm(String jsString)
GXITagsAccesorAddJSToForm in interface GXITagsAccesorjsString - The JavaScript command(s)public void AddHtmlTextToForm(String htmlText)
AddHtmlTextToForm in interface GXITagsAccesorhtmltext - the html text to addpublic String getFormTopString()
public void setBodyAttribute(String attrName, String content)
setBodyAttribute in interface GXITagsAccesorpublic void setFormAttribute(String attrName, String content)
GXITagsAccesorsetFormAttribute in interface GXITagsAccesorattrName - The name of the attributecontent - The content of the attributepublic Hashtable getBodyAttributes()
public Hashtable getFormAttributes()
public void setTagList(String refTagId, GXINameValueCollection list)
setTagList in interface GXITagsAccesorpublic void recycleBodyTag()
public InputStream getInputStream(String refTagId) throws IOException
GXITagsAccesor(<gx:input type="file" id="...>).
getInputStream in interface GXITagsAccesorrefTagId - the input file tag IDIOExceptionpublic String getFileName(String refTagId) throws IOException
GXITagsAccesor(<gx:input type="file" id="...>).
getFileName in interface GXITagsAccesorrefTagId - The input file tag IDIOExceptionpublic String getPanelToUpdate()
public String getPanelToUpdateContent()
public void setPanelToUpdateContent(String content)
public void setPageVisible(boolean visible)
GXITagsAccesorsetPageVisible in interface GXITagsAccesorvisible - true/false to determine whether to hide/show the pageCopyright 2022 Software AG. All rights reserved. Use is subject to license terms.