HATS 7.5.1 Web API Reference

Publicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product.

com.ibm.hats.transform.html
Class PopupElement

java.lang.Object
  extended by com.ibm.hats.transform.html.HTMLElement
      extended by com.ibm.hats.transform.html.PopupElement

public class PopupElement
extends HTMLElement

PopupElement is the element used to render the floating choice list used in the PopupWidget. It consists of an input field, a launcher HTML element, such as a button or a link, and a DIV region for the popup choices. The DIV region contains a table of links and an HTML element to close the popup.

See Also:
HTMLElementFactory.createPopup(SelectionComponentElement)

Field Summary
 
Fields inherited from class com.ibm.hats.transform.html.HTMLElement
ATTR_ACCESS_KEY, ATTR_ACTION, ATTR_ALT, ATTR_CLASS_NAME, ATTR_DIR, ATTR_FOR, ATTR_HREF, ATTR_ID, ATTR_IMG_ALT, ATTR_MAX_LENGTH, ATTR_NAME, ATTR_ON_BLUR, ATTR_ON_CHANGE, ATTR_ON_CLICK, ATTR_ON_CUT, ATTR_ON_DROP, ATTR_ON_FOCUS, ATTR_ON_KEY_DOWN, ATTR_ON_KEY_PRESS, ATTR_ON_KEY_UP, ATTR_ON_MOUSEDOWN, ATTR_ON_MOUSEOVER, ATTR_ON_PASTE, ATTR_SIZE, ATTR_SRC, ATTR_STYLE, ATTR_TARGET, ATTR_TYPE, ATTR_VALUE, CLASSNAME, FLAG_CHECKED, FLAG_DISABLED, FLAG_MULTIPLE, FLAG_READ_ONLY, FLAG_SELECTED, tagName
 
Constructor Summary
PopupElement()
          Class constructor which sets the tag name to DIV and initializes the list of options.
 
Method Summary
 InputElement getField()
          Returns the field.
 ArrayList getOptions()
          Returns the options.
 HTMLElement getPopupCloser()
          Returns the popupCloser.
 HTMLElement getPopupLauncher()
          Returns the popupLauncher.
 HTMLElement getPopupTable()
          Gets the table contained in the popup.
 HTMLElement getPopupTD()
          Gets the td html element to be used in rendering the popup.
 HTMLElement getPopupTH()
          Gets the th html element to be used in rendering the popup.
 HTMLElement getPopupTR()
          Gets the tr html element to be used in rendering the popup.
 void render(StringBuffer buffer)
          Renders the entire set of elements making up a field, launcher, and popup.
 void setField(InputElement field)
          Sets the field.
 void setOptions(ArrayList options)
          Sets the options.
 void setPopupCloser(HTMLElement popupCloser)
          Sets the popupCloser.
 void setPopupLauncher(HTMLElement popupLauncher)
          Sets the popupLauncher.
 void setPopupTable(HTMLElement element)
          Sets the table element to be used in rendering the popup.
 void setPopupTD(HTMLElement element)
          Sets the td element to be used in rendering the popup.
 void setPopupTH(HTMLElement element)
          Sets the th element to be used in rendering the popup.
 void setPopupTR(HTMLElement element)
          Sets the tr element to be used in rendering the popup.
 
Methods inherited from class com.ibm.hats.transform.html.HTMLElement
addFlag, appendClassName, appendStyle, buildTag, buildTag, getAttribute, getClassName, getDir, getId, getName, getStyle, getTagName, hasFlag, removeFlag, render, render, render, renderEndTag, renderEndTag, setAlign, setAttribute, setClassName, setDir, setId, setName, setStyle, setTagName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupElement

public PopupElement()
Class constructor which sets the tag name to DIV and initializes the list of options.

Method Detail

render

public void render(StringBuffer buffer)
Renders the entire set of elements making up a field, launcher, and popup. Rendering the end tag is still necessary.

Overrides:
render in class HTMLElement
Parameters:
buffer -

getField

public InputElement getField()
Returns the field.

Returns:
InputElement

getOptions

public ArrayList getOptions()
Returns the options. The options list must contain only LinkElements.

Returns:
ArrayList
See Also:
LinkElement

getPopupLauncher

public HTMLElement getPopupLauncher()
Returns the popupLauncher.

Returns:
HTMLElement

setField

public void setField(InputElement field)
Sets the field.

Parameters:
field - The field to set

setOptions

public void setOptions(ArrayList options)
Sets the options.

Parameters:
options - The options to set

setPopupLauncher

public void setPopupLauncher(HTMLElement popupLauncher)
Sets the popupLauncher.

Parameters:
popupLauncher - The popupLauncher to set

getPopupCloser

public HTMLElement getPopupCloser()
Returns the popupCloser.

Returns:
HTMLElement

setPopupCloser

public void setPopupCloser(HTMLElement popupCloser)
Sets the popupCloser.

Parameters:
popupCloser - The popupCloser to set

getPopupTable

public HTMLElement getPopupTable()
Gets the table contained in the popup.

Returns:
HTMLElement

getPopupTD

public HTMLElement getPopupTD()
Gets the td html element to be used in rendering the popup.

Returns:
HTMLElement

getPopupTH

public HTMLElement getPopupTH()
Gets the th html element to be used in rendering the popup.

Returns:
HTMLElement

getPopupTR

public HTMLElement getPopupTR()
Gets the tr html element to be used in rendering the popup.

Returns:
HTMLElement

setPopupTable

public void setPopupTable(HTMLElement element)
Sets the table element to be used in rendering the popup.

Parameters:
element -

setPopupTD

public void setPopupTD(HTMLElement element)
Sets the td element to be used in rendering the popup.

Parameters:
element -

setPopupTH

public void setPopupTH(HTMLElement element)
Sets the th element to be used in rendering the popup.

Parameters:
element -

setPopupTR

public void setPopupTR(HTMLElement element)
Sets the tr element to be used in rendering the popup.

Parameters:
element -

HATS 7.5.1 (201005110649)