com.ibm.hats.transform.widgets
Class LinkWidget
java.lang.Object
com.ibm.hats.transform.widgets.Widget
com.ibm.hats.transform.widgets.AbstractLinkWidget
com.ibm.hats.transform.widgets.BasicLinkWidget
com.ibm.hats.transform.widgets.LinkWidget
- All Implemented Interfaces:
- IContextDependent, ICustomPropertySupplier, HTMLRenderer, com.ibm.hats.transform.renderers.TextRenderer
public class LinkWidget
- extends BasicLinkWidget
LinkWidget renders HTML links from ComponentElements. It currently takes SelectionComponentElements,
FunctionKeyComponentElements, and URLComponentElements as input.
Please refer to the User's Guide for detail on this Widget's settings.
- See Also:
SelectionComponentElement,
FunctionKeyComponentElement,
URLComponentElement
| Methods inherited from class com.ibm.hats.transform.widgets.Widget |
convertBidi, draw, getComponentElements, getContextAttribute, getContextAttributes, getCustomComposite, getCustomPropertiesBiDi, getSettings, insertAlign, insertDir, newInstance, setComponentElements, setContextAttribute, setContextAttributes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_NAME
public static final String CLASS_NAME
- See Also:
- Constant Field Values
LinkWidget
public LinkWidget(ComponentElement[] componentElement,
Properties settings)
- Class constructor.
- Parameters:
componentElement - settings - - See Also:
Widget.Widget(ComponentElement[], Properties)
drawHTML
public StringBuffer drawHTML()
- Description copied from interface:
HTMLRenderer
- Converts ComponentElements into HTML output for embedding within
a Transformation page
- Specified by:
drawHTML in interface HTMLRenderer- Overrides:
drawHTML in class BasicLinkWidget
- Returns:
- HTML output
drawItem
protected void drawItem(EnptuiChoiceComponentElement ecce,
StringBuffer buffer)
- Renders an individual EnptuiChoiceComponentElement as a button. Rendering may or may not take place within
a table cell, depending on widget settings.
- Parameters:
ecce - enptui choice to renderbuffer - output buffer
isPropertyAllowed
public boolean isPropertyAllowed(String name,
ContextAttributes contextAttributes)
- Description copied from interface:
IContextDependent
- Gets whether or not the specified property should be visible in the component or widget settings. The context attributes
may contain the Component name when this is called on a Widget, or whether or not we are presenting this Component/Widget
choice while configuring Default Rendering.
- Specified by:
isPropertyAllowed in interface IContextDependent- Overrides:
isPropertyAllowed in class AbstractLinkWidget
- Parameters:
name - property name
- Returns:
- whether or not this property is allowed in the specified context
isAllowed
public boolean isAllowed(ContextAttributes contextAttributes)
- Description copied from interface:
IContextDependent
- Gets whether or not this object should be visible in the studio given some context attributes. The context attributes
may contain the Component name when this is called on a Widget, or whether or not we are presenting this Component/Widget
choice while configuring Default Rendering.
- Specified by:
isAllowed in interface IContextDependent- Overrides:
isAllowed in class AbstractLinkWidget
- Returns:
- whether or not this Component or Widget is allowed in the specified context