|
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.DropdownWidget
public class DropdownWidget
DropdownWidget renders a HTML select elements. It takes InputComponentElements as input.
InputComponentElement| Field Summary | |
|---|---|
static String |
CLASS_NAME
|
static Properties |
defaults
Default settings for this Widget. |
protected boolean |
displayAsList
|
protected HTMLElementFactory |
htmlElementFactory
|
static boolean |
isScreenReversed
|
static String |
PROPERTY_AUTO_SUBMIT_ON_SELECT
|
static String |
PROPERTY_AUTOSUBMITKEY
|
static String |
PROPERTY_CAPTION_VARIABLE
|
static String |
PROPERTY_LIST_ITEMS
|
static String |
PROPERTY_SHARED_GVS
|
static String |
PROPERTY_SHOW_SUBMIT
|
static String |
PROPERTY_SIZE
|
static String |
PROPERTY_SOURCE_HINTS
|
static String |
PROPERTY_SOURCE_STRING
|
static String |
PROPERTY_SOURCE_VARIABLE
|
static String |
PROPERTY_SUBMIT_BUTTON_CAPTION
|
static String |
PROPERTY_VALUE_VARIABLE
|
static int |
stringListItemsCount
|
| 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 | |
|---|---|
DropdownWidget(ComponentElement[] componentElements,
Properties settings)
Class constructor. |
|
| Method Summary | |
|---|---|
static ComponentElementList |
createListItems(String defaultValue,
Properties settings,
Hashtable globalVariables,
ComponentElementList hints)
Convenience method for creating a ComponentElementList from three different sources based on the widget settings. |
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. |
static int |
getStringListItemsCount()
|
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. |
static int |
parseInt(String intStr)
|
protected boolean |
renderTable()
Decides whether or not a table should be used in the rendering based on the componentElements. |
static void |
setStringListItemsCount(int count)
|
| Methods inherited from class com.ibm.hats.transform.widgets.Widget |
|---|
convertBidi, draw, getComponentElements, getContextAttribute, getContextAttributes, getCustomComposite, getSettings, insertAlign, insertDir, newInstance, setComponentElements, setContextAttribute, setContextAttributes, setSettings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CLASS_NAME
protected HTMLElementFactory htmlElementFactory
public static final String PROPERTY_SOURCE_VARIABLE
public static final String PROPERTY_VALUE_VARIABLE
public static final String PROPERTY_CAPTION_VARIABLE
public static final String PROPERTY_SOURCE_STRING
public static final String PROPERTY_SOURCE_HINTS
public static final String PROPERTY_LIST_ITEMS
public static final String PROPERTY_SHARED_GVS
public static final String PROPERTY_SIZE
public static final String PROPERTY_AUTOSUBMITKEY
public static final String PROPERTY_AUTO_SUBMIT_ON_SELECT
public static final String PROPERTY_SHOW_SUBMIT
public static final String PROPERTY_SUBMIT_BUTTON_CAPTION
public static int stringListItemsCount
public static Properties defaults
protected boolean displayAsList
public static boolean isScreenReversed
| Constructor Detail |
|---|
public DropdownWidget(ComponentElement[] componentElements,
Properties settings)
componentElements - An array of component elements.settings - The Properties settings.Widget.Widget(ComponentElement[], Properties)| Method Detail |
|---|
protected boolean renderTable()
public StringBuffer drawHTML()
HTMLRenderer
drawHTML in interface HTMLRendererpublic static int getStringListItemsCount()
public static void setStringListItemsCount(int count)
public static ComponentElementList createListItems(String defaultValue,
Properties settings,
Hashtable globalVariables,
ComponentElementList hints)
defaultValue - default item value in the list, generally taken from the current value of the fieldsettings - the widget's settingsglobalVariables - current global variables, shared or local, you decidehints - hints from the component, or null if none exist
public int getPropertyPageCount()
ICustomPropertySupplierNote: Currently only 0 or 1 pages are supported.
getPropertyPageCount in interface ICustomPropertySuppliergetPropertyPageCount in class Widgetpublic Properties getDefaultValues(int iPageNumber)
ICustomPropertySupplier
getDefaultValues in interface ICustomPropertySuppliergetDefaultValues in class WidgetiPageNumber - page for which to retrieve default properties
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
HCustomProperty
public boolean isPropertyAllowed(String name,
ContextAttributes contextAttributes)
IContextDependent
isPropertyAllowed in interface IContextDependentname - property name
public boolean isAllowed(ContextAttributes contextAttributes)
IContextDependent
isAllowed in interface IContextDependentpublic static int parseInt(String intStr)
|
HATS 7.5.1 (201005110649) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||