String
|
addContactInfo(String message)
This method is deprecated.
this function is not used anymore.
|
void
|
addDynamicScriptClass(String jsClassName)
Add the script dependency based on the JavaScript class.
|
void
|
addDynamicScriptFile(String file, String key)
Adds a javascript file that the Transform
requires for its correct behavior.
|
FormalParameter
|
addFormalParameter(String name, int type, Object defaultValue, String description)
Adds a formal parameter for this transform with the given information
|
boolean
|
checkLevel(int level, FormalParameter parameter)
This a helper methoc that will check if the level parameter value contains this flag.
|
boolean
|
checkProcessingButtonsFlag(int flag)
|
boolean
|
checkProcessingInfoFlag(int flag)
|
void
|
checkStatus(MarkupOutput out)
Once the shell is rendered, this method checks the bean's getXMLStatus and calls
the corresponding transform method, based on its value:
|
void
|
displayError(MarkupOutput out, String className, String methodName, Exception e, String title, String message)
Generates an error message to the end user.
|
void
|
displayError(MarkupOutput out, String className, String methodName, Exception e, String title, String message, boolean addContactInfo)
Generates an error message to the end user.
|
void
|
displayError(MarkupOutput out, String className, String methodName, Exception e)
Generates an error message to the end user.
|
String
|
emptyCell()
Convenience method that checks if the output format is SCREEN_READER
and determines whether to show a " " or HTMLHelper.SCREEN_READER_EMPTY_CELL_DISPLAY .
|
boolean
|
excludeStaticTags()
Indicates if a layout transformation will include or exclude static code defined in
the layout file.
|
AnchorTag
|
generateAnchor(WebEvent event)
Creates an <a> tag from the EventManager.
|
AnchorTag
|
generateAnchorForExport(WebEvent event)
Creates an anchor tag to be used especifically for Export requests
|
void
|
generateHiddenInputsForEvent(MarkupOutput out, int eventId)
|
Tag
|
generateIFrameTag(String name)
|
AppContext
|
getAppContext()
Convenience method that returns the current AppContext.
|
String
|
getArgumentName(WebEvent event, int argumentID)
For the given event, returns the name of the argument with the given ID.
|
Map
|
getAttributesShellDiv()
Returns a Map with the list of attributes that the shell div
must use.
|
String
|
getBeanPath()
Returns the path within the application of the WebBean being transformed.
|
String
|
getBoneId()
Returns the id to be used for the JavaScript bone.
|
WebEvent
|
getCancelEvent()
|
ClientSideHelper
|
getClientSideHelper()
|
ContainerServices
|
getContainerServices()
Convenience method to retrieve the connected Container Services object.
|
TransformContext
|
getContext()
Returns the instance of TransformContext with context information for this Transform.
|
ContextMenu
|
getContextMenu(String menuName)
Returns the corresponding context-menu.
|
ContextMenuManager
|
getContextMenuManager()
Returns the ContextMenuManager instance used by this Transform.
|
String
|
getContextMenuManagerName()
Returns the name to use for the ContextMenuManager of this Transform.
|
ShortcutListSet
|
getContextMenusDefinition()
Returns the definition used to populate the context-menus of this Transform.
|
String
|
getCssPrefix()
|
String
|
getDateFormat()
|
MarkupOutput
|
getDebugOut(int debugFlags)
Get the Debug Information into the output
|
String
|
getDescriptor(int key)
Get the descriptor for the given key.
|
String
|
getDescriptor(String key)
Get the descriptor for the given key.
|
String
|
getDescriptor(String key, String defaultDescriptor)
|
String
|
getDisplayMode()
get the display mode used when the GuiComponent renders itself
|
String
|
getDisplayName(WebObjectInfo object)
|
String
|
getErrorMessage(int errorCode, String defaultMessage)
Returns the error message for the transform, based on the exception.
|
String
|
getErrorMessage(Exception e)
Returns the error message for the transform, based on the exception.
|
String
|
getErrorTitle(Exception e)
Returns the error title for the transform, based on the exception.
|
String
|
getErrorTitle(int errorCode)
Returns the error title for the transform, based on the errorCode.
|
EventManager
|
getEventManager()
Convenience method for obtaining the EventManager instance associated with this transform
|
int
|
getFirstDayOfWeek()
|
static
float
|
getFloatValue(FormalParameter parameter)
Returns the float value of a FormalParameter .
|
String
|
getHelpPath()
Returns the help path for the help type of user.
|
String
|
getID()
Returns the unique name of the component to be used as the ID for its shell.
|
static
int
|
getIntValue(FormalParameter parameter)
Returns the int value of a FormalParameter .
|
String
|
getJSNameSpace()
Returns a unique name space used by the getID method as a prefix of the component's id
|
LayoutContext
|
getLayoutContext(Transformable data, boolean excludeStaticTags)
Gets the LayoutContext instance to use for any layout processing.
|
static
Locale
|
getLocale(AppContext appCtx, boolean isNumberDate, Locale defaultLocale)
|
Locale
|
getLocale()
Returns number/date locale.
|
String
|
getPreferenceValue(String preferenceName)
Convenience method that returns the value of a preference.
|
String
|
getProjectID()
Private method that gets the Project ID from the session manager
|
WebEvent
|
getRefreshEvent()
|
RequestKeys
|
getRequestKeys()
If the beanContenxt of the associated bean is an instance of AppContext ,
the method returns the RequestKeys object associated with it
|
String
|
getResourcesFolder(String folderType)
Maps the AppContext's getResourceFolder method, but it validates that the getBeanContext is indeed an AppContext.
|
String
|
getScriptClass()
Returns the name of the javaScript class (if any) to be associated with the component.
|
static
String
|
getStringValue(FormalParameter parameter)
Returns the string value of the Formal Paramter.
|
StyleRequestContext
|
getStyleRequestContext(WebComponent webComponent)
Since the addition of the dynamic style catalog, it was required to pass
the Request Context object to obtain a transform.
|
String
|
getStyleShellDiv()
Returns the style (that is, the style attribute
used for css formatting) of the shell's div.
|
Class
|
getSupportedBeanType()
Returns the supported bean type.
|
TagsFactory
|
getTagsFactory()
Convenience method for obtaining an instance of the TagsFactory class.
|
String
|
getTimeFormat()
|
String
|
getUnitsLabel(String unitsID)
Returns the descriptor associated with unit.
|
WebBeanError
|
getWebBeanErrorInfo()
|
boolean
|
hasSubBlock()
This method is deprecated.
this method is no longer used
|
void
|
initHeightAndWidthFromPreferences()
Initializes the _height and _width of this
component from the bone dimesions retrieved
from Preferences.
|
void
|
initializeCss()
Initialize the css classes to be used by this transform.
|
void
|
initializeImages()
Initialize the images to be used by this transform.
|
void
|
initializeTransform(Transformable data)
This method initialize the private and protected fields of the transform, such as
width and height.
|
void
|
initializeWebComponent(Transformable data)
Initialize the web component to be used by the transform.
|
boolean
|
is508()
Determine if the environment where this transform instance is being used is DHTML or not
|
boolean
|
isBlockMode()
Helper method indicating whether the transform is in block mode or not
|
boolean
|
isContextMenusEnabled()
Indicates whether context-menus are enabled for this Transform.
|
boolean
|
isDhtml()
Determine if the environment where this transform instance is being used is DHTML or not
|
boolean
|
isDialog()
Defines whether this Transform should behave as a dialog (for example, a pop-up window).
|
boolean
|
isDormant()
|
boolean
|
isFeatureAvailable(String feature)
Convenience method.
|
boolean
|
isIFrameDisplayMode()
Determines if the display mode should consider iframe request or not.
|
boolean
|
isIFrameEnabled()
Whether iframe update technology is enabled for this Transform.
|
boolean
|
isIFrameRequest()
Return true if the current request was generated from an iFrame update.
|
boolean
|
isJobExpired(int errorCode)
Determines, based on the errorCode, if the error is because the message has expired in the iServer.
|
boolean
|
isModal()
Defines whether this Transform should behave as a modal component (that is, it's displayed
on top of the page and while open nothing else can be used).
|
boolean
|
isOpen()
Defines whether this Transform is currently visible to the end user.
|
boolean
|
isPortlet()
Indicates web page is used as a portlet.
|
static
boolean
|
isTrue(FormalParameter parameter)
Checks for a Boolean FormalParamter
and return its booleanValue().
|
boolean
|
localIsIFrameDisplayMode()
Called by isIFrameDisplayMode() , it helps determining if the display mode of this transform
should be generated for iframe manipulation or not.
|
TransformContext
|
newContext()
Creates a new instance of a TransformContext.
|
ParameterBuilder
|
newHiddenInputBuilder()
Convenience method to retrieve a new instance of a Hidden Input Builder from the connected
Container Services object.
|
NamespaceEncoder
|
newNamespaceEncoder()
Convenience method to retrieve a new instance of a Namespace Encoder from the connected
Container Services object.
|
ParameterBuilder
|
newURIBuilder()
Convenience method to retrieve a new instance of a URI Builder from the connected
Container Services object.
|
void
|
redirectToDisplayError(MarkupOutput out, String errorMessage)
This method is used to jump to a new "Error page" to show error messages.
|
void
|
renderBean(MarkupOutput out, WebComponent beanToRender, String style)
|
void
|
renderBean(MarkupOutput out, String name)
Renders any bean within the hierachy using its default style
|
void
|
renderBean(MarkupOutput out, WebComponent beanToRender, String style, boolean iframeDisplayMode)
|
void
|
renderBean(MarkupOutput out, String name, String style)
Renders any bean within the hierachy using the specified style
|
void
|
renderBlockEnd(MarkupOutput out)
This method is deprecated.
this method is no longer used. We now create ComponentBlock to render a component block in json
|
void
|
renderBlockStart(MarkupOutput out, String blockId, Map<String, String> attrs)
This method is deprecated.
this method is no longer used. We now create ComponentBlock to render a component block in json
|
void
|
renderCancelButton(MarkupOutput out)
Renders the Cancel button for the wait page.
|
void
|
renderContextMenus(MarkupOutput out)
Generates the HTML necessary to use context-menus with this transform.
|
void
|
renderCssLink(MarkupOutput out)
Generates a LINK tag in pointing to the name of the file as controlled
through the cssFile formal parameter.
|
void
|
renderDescriptor(MarkupOutput out, int key)
Generates the string associted with a descriptor in the given MarkupOutput .
|
void
|
renderDescriptor(MarkupOutput out, String key)
Generates the string associted with a descriptor in the given MarkupOutput .
|
void
|
renderErrorButton(MarkupOutput out)
Renders the reexecute event button
Transfrom will override it if necessary
|
void
|
renderHiddenInputFromRequest(MarkupOutput out, String name)
Renders a hidden input if the name is found on the request keys.
|
void
|
renderImage(MarkupOutput out, String image)
Renders a transform's image
|
boolean
|
renderLayout(MarkupOutput out)
Renders the transform information using layout-xml.
|
void
|
renderProcessingButton(MarkupOutput out, WebEvent event, String buttonDescriptor)
Renders one button for the Wait page.
|
void
|
renderProcessingButton(MarkupOutput out, WebEvent event, String buttonDescriptor, String buttonCSS)
Renders one button for the Wait page.
|
void
|
renderProcessingButtonForGet(MarkupOutput out, WebEvent event, String buttonDescriptor, String buttonCSS)
Renders one button for the Wait page.
|
void
|
renderProcessingButtons(MarkupOutput out)
Renders the buttons displayed to the end user when the request is still processing
(for example, in the wait page).
|
void
|
renderProcessingInfo(MarkupOutput out)
Generates the the information about the execution when the request is still processing
(for example, in the wait page).
|
void
|
renderProcessingInfoData(MarkupOutput out, String propertyName, String propertyValue)
This method is used in the wait page to generate data about
the current execution.
|
void
|
renderProcessingInfoImage(MarkupOutput out)
Generates the image on the wait page.
|
void
|
renderProcessingInfoSubtitle(MarkupOutput out)
Generated the message "Please wait or choose one of the following actions"
|
void
|
renderProcessingInfoTitle(MarkupOutput out)
Generates the title when the request is still processing
(for example, in the wait page).
|
void
|
renderProcessingObjectName(MarkupOutput out)
|
void
|
renderRefreshButton(MarkupOutput out)
Renders the Refresh button for the wait page.
|
void
|
renderRegisterBone(MarkupOutput out)
If a scriptClass is specified, this method registers the corresponding
javascript bone for this component.
|
void
|
renderSelf(MarkupOutput out, String style)
Renders the bean associated with this transform ("self") using the specified style.
|
void
|
renderShell(MarkupOutput out)
Generates the shell for this Transform.
|
boolean
|
renderSubBlock()
the boolean indicates whether this GuiComponent allows sub json blocks to update or just pure HTML
|
void
|
renderUserHelpAnchor(MarkupOutput out, String name)
|
void
|
setBoneProperties(JsonGenerator boneProps)
Sets the necessary properties to the bone assigned to this transform (based on the scriptClass formal parameter)
Usually called by renderRegisterBone(MarkupOutput)
Can be overwritten to add or modify bone properties.
|
void
|
setDisplayMode(String value)
set the display mode used when the GuiComponent renders itself
|
void
|
setHasSubBlock(boolean newValue)
set the flag to signal whether this transform will output pure html or an array of sub json blocks to update itself
|
void
|
setHeight(String height)
Registers the height of the component.
|
void
|
setIFrameDisplayMode(boolean value)
Determines if the display mode should consider iframe request or not.
|
void
|
setIsDormant(boolean isDormant)
Tells the transform whether the bone is dormant or not, in which case it should not receive event notification.
|
void
|
setRenderSubBlock(boolean newValue)
set the flag to signal whether this GuiComponent allows sub json blocks to render so that partial update happens within the original GuiComponent
|
void
|
setShellAttributeOnClosedComponent(HashMap __result)
|
void
|
setWidth(String width)
Registers the width of the component.
|
boolean
|
shouldDisplay()
Determines whether the transform should render itself or not.
|
final
void
|
transform(Transformable data, MarkupOutput out)
Transform the data into output.
|
void
|
transformForRequestCanceled(MarkupOutput out)
|
void
|
transformForRequestInError(MarkupOutput out)
|
void
|
transformForRequestNotInited(MarkupOutput out)
|
void
|
transformForRequestProcessing(MarkupOutput out)
|
abstract
void
|
transformForRequestSuccessful(MarkupOutput out)
|
void
|
transformForRequestWaitingForUserInput(MarkupOutput out)
|