|
HATS 7.5.1 Web API ReferencePublicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.hats.transform.widgets.Widget
com.ibm.hats.transform.widgets.AbstractFieldWidget
com.ibm.hats.transform.widgets.FieldWidget
public class FieldWidget
FieldWidget renders a table of input fields and text. It currently takes FieldComponentElements and FieldRowComponentElements as inputs.
FieldComponentElement,
FieldRowComponentElement| Fields inherited from class com.ibm.hats.transform.widgets.Widget |
|---|
componentElements, contextAttributes, settings |
| Fields inherited from interface com.ibm.hats.common.ICustomPropertySupplier |
|---|
CLASSNAME |
| Constructor Summary | |
|---|---|
FieldWidget(ComponentElement[] componentElements,
Properties settings)
Class constructor. |
|
| Method Summary | |
|---|---|
protected String |
buildCursorPositioningLink(int pos)
Renders a link which represents repositioning the cursor to the specified position, using the action key from this Widget's settings. |
protected String |
buildCursorPositioningLink(int pos,
String className)
|
protected String |
buildCursorPositioningLink(int pos,
String foregroundColorStyleClass,
String reverseColorStyleClass)
|
protected void |
drawField(FieldComponentElement fce,
StringBuffer buffer)
|
protected void |
drawField(FieldComponentElement fce,
StringBuffer buffer,
String renderTag)
Renders an individual FieldComponentElement as a table cell containing text or an input field. |
protected int |
drawFieldList(FieldRowComponentElement frce,
StringBuffer buffer)
|
protected int |
drawFieldList(FieldRowComponentElement frce,
StringBuffer buffer,
boolean buildTable)
Renders an individual FieldRowComponentElement as a set of table cells. |
StringBuffer |
drawHTML()
Converts ComponentElements into HTML output for embedding within a Transformation page |
Vector |
getCustomProperties(int iPageNumber,
Properties properties,
ResourceBundle bundle)
Returns a list of this object's custom properties. |
Vector |
getCustomPropertiesBiDi(int iPageNumber,
Properties properties,
ResourceBundle bundle)
|
Properties |
getDefaultValues(int iPageNumber)
Returns this object's default property values. |
int |
getPropertyPageCount()
Returns the number of property pages associated with this object. |
protected void |
internalMakeSpan(String text,
StringBuffer buffer,
String foregroundColorStyleClass,
String reverseColorStyleClass,
String extendedStyle)
|
protected void |
internalMakeSpan(String text,
StringBuffer buffer,
String foregroundColorStyleClass,
String reverseColorStyleClass,
String extendedStyle,
boolean escapeHTML)
|
boolean |
isAllowed(ContextAttributes contextAttributes)
Gets whether or not this object should be visible in the studio given some context attributes. |
boolean |
isPropertyAllowed(String name,
ContextAttributes contextAttributes)
Gets whether or not the specified property should be visible in the component or widget settings. |
void |
setContextAttributes(ContextAttributes contextAttributes)
Sets the contextAttributes of this Widget |
void |
setHtmlElementFactory(HTMLElementFactory htmlFactory)
|
void |
setSettings(Properties newSettings)
Sets the Widget's settings. |
| Methods inherited from class com.ibm.hats.transform.widgets.AbstractFieldWidget |
|---|
getArabicStringSegments, getStringSegments, getTrimmedLinkSegments, isCharacter |
| Methods inherited from class com.ibm.hats.transform.widgets.Widget |
|---|
convertBidi, draw, getComponentElements, getContextAttribute, getContextAttributes, getCustomComposite, getSettings, insertAlign, insertDir, newInstance, setComponentElements, setContextAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String COPYRIGHT
public static final String CLASS_NAME
public static final String PROPERTY_BLINK_STYLE
public static final String PROPERTY_REVERSE_VIDEO_STYLE
public static final String PROPERTY_UNDERLINE_STYLE
public static final String PROPERTY_COLUMN_SEPARATOR_STYLE
public static final String MONOSPACE_FONT_STYLE_CLASS
public static final String PROPERTY_USE_EXACT_CURSOR_POSITIONING_OPTION
protected HTMLElementFactory htmlElementFactory
protected String blinkStyle
protected String underlineStyle
protected String reverseVideoStyle
protected String columnSeparatorStyle
protected boolean applyUnderlineStyle
protected String protectedLinkStyleClass
protected boolean optimizedOutput
protected boolean omitExtraneousTables
protected boolean addSpan
protected boolean addRevClassToTD
protected boolean extendedStyleInsideTD
protected boolean extendedStyleForTD
protected boolean addNowrap
protected String classesForTD
protected String stylesForTD
protected String tableStyleClass
protected String tableCellStyleClass
protected String fieldStyleClass
protected String style
protected int codepage
protected boolean isDBCSSession
protected boolean useAccentedCharacters
protected boolean isBIDI
protected String dir
protected String dirText
protected boolean reversed
protected boolean isSymmetricSwapping
protected boolean isNumericSwapping
protected String arabicOrientation
protected String ScreenOrient
protected boolean isLinuxRuntime
protected boolean isInsideVCTView
protected boolean closeTags
public static Properties defaults
protected boolean inDefaultRendering
protected boolean inCompactRendering
| Constructor Detail |
|---|
public FieldWidget(ComponentElement[] componentElements,
Properties settings)
componentElements - An array of component elements.settings - The Properties settings.Widget.Widget(ComponentElement[], Properties)| Method Detail |
|---|
public StringBuffer drawHTML()
HTMLRenderer
drawHTML in interface HTMLRenderer
protected int drawFieldList(FieldRowComponentElement frce,
StringBuffer buffer)
protected int drawFieldList(FieldRowComponentElement frce,
StringBuffer buffer,
boolean buildTable)
frce - field row to renderbuffer - output buffer
FieldWidget.drawField(FieldComponentElement, StringBuffer)
protected void drawField(FieldComponentElement fce,
StringBuffer buffer)
protected void drawField(FieldComponentElement fce,
StringBuffer buffer,
String renderTag)
fce - the field to renderbuffer - output bufferpublic Properties getDefaultValues(int iPageNumber)
ICustomPropertySupplier
getDefaultValues in interface ICustomPropertySuppliergetDefaultValues in class WidgetiPageNumber - page for which to retrieve default properties
public int getPropertyPageCount()
ICustomPropertySupplierNote: Currently only 0 or 1 pages are supported.
getPropertyPageCount in interface ICustomPropertySuppliergetPropertyPageCount in class Widget
public Vector getCustomPropertiesBiDi(int iPageNumber,
Properties properties,
ResourceBundle bundle)
getCustomPropertiesBiDi in class Widget
public Vector getCustomProperties(int iPageNumber,
Properties properties,
ResourceBundle bundle)
ICustomPropertySuppliercom.ibm.hats.common.HCustomProperty.
getCustomProperties in interface ICustomPropertySuppliergetCustomProperties in class WidgetiPageNumber - page number containing desired propertiesproperties - existing values for properties defined herebundle - ResourceBundle containing NLS descriptions for the properties
HCustomPropertyprotected String buildCursorPositioningLink(int pos)
pos - screen position to send the key to
protected String buildCursorPositioningLink(int pos,
String className)
protected String buildCursorPositioningLink(int pos,
String foregroundColorStyleClass,
String reverseColorStyleClass)
protected void internalMakeSpan(String text,
StringBuffer buffer,
String foregroundColorStyleClass,
String reverseColorStyleClass,
String extendedStyle)
protected void internalMakeSpan(String text,
StringBuffer buffer,
String foregroundColorStyleClass,
String reverseColorStyleClass,
String extendedStyle,
boolean escapeHTML)
public void setSettings(Properties newSettings)
Widget
setSettings in class AbstractFieldWidgetnewSettings - The Properties to set.public void setContextAttributes(ContextAttributes contextAttributes)
Widget
setContextAttributes in class WidgetcontextAttributes - The contextAttributes to set
public boolean isPropertyAllowed(String name,
ContextAttributes contextAttributes)
IContextDependent
isPropertyAllowed in interface IContextDependentname - property name
public boolean isAllowed(ContextAttributes contextAttributes)
IContextDependent
isAllowed in interface IContextDependentpublic void setHtmlElementFactory(HTMLElementFactory htmlFactory)
|
HATS 7.5.1 (201005110649) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||