wt.templateutil.components
Class HTMLUrlAwareTextFieldComponent

java.lang.Object
  extended bywt.templateutil.components.HTMLComponent
      extended bywt.templateutil.components.DefaultHTMLComponent
          extended bywt.templateutil.components.HTMLJavaScriptComponent
              extended bywt.templateutil.components.HTMLUrlAwareTextFieldComponent

public class HTMLUrlAwareTextFieldComponent
extends HTMLJavaScriptComponent

This is an aggregate component: it is a textfield with a button next to it. When you click on the button, the URL in the textfield is opened in a new window.


Nested Class Summary
protected  class HTMLUrlAwareTextFieldComponent.HTMLUrlAwareButtonComponent
           
 
Field Summary
private  String componentName
          The name of the text input field.
private static String NAME
           
private static String RESOURCE
           
 
Fields inherited from class wt.templateutil.components.HTMLJavaScriptComponent
ONCLICK, ONKEYPRESS, ONLOAD, ONMOUSEDOWN, ONMOUSEOVER, ONMOUSEUP, ONRESET, ONRESIZE, ONSUBMIT
 
Fields inherited from class wt.templateutil.components.DefaultHTMLComponent
defaultComponent
 
Fields inherited from class wt.templateutil.components.HTMLComponent
CLASS, COMPONENT_ID, COMPONENT_ID_SEPARATOR, CREATE, DEFAULT_SERVICE_NAME, DEFAULTS_ONLY, EMPTY_STRING, ID, ID_US_ENGLISH_LOCALE, NULLVALUE, PRINT_TAG_ATTR, SERVICENAME, TAG, UPDATE, VIEW
 
Constructor Summary
HTMLUrlAwareTextFieldComponent(String componentName)
           
 
Method Summary
 void init(String selector, Object value, HTMLComponentFactory componentFactory, String mode, Properties props)
          The javaScriptManager is grabbed from props.
 
Methods inherited from class wt.templateutil.components.HTMLJavaScriptComponent
constructEvent, constructEvent, constructEvent, getIncludedScripts, setIncludedScripts, show
 
Methods inherited from class wt.templateutil.components.DefaultHTMLComponent
endComponent, setTagListArray, startComponent
 
Methods inherited from class wt.templateutil.components.HTMLComponent
appendID, appendID, appendToID, appendToID, createIDForComponent, getHtmlComponents, getID, getIdProp, getName, getOID, getPrintWriter, getRealValue, getServiceName, getState, getTag, getTagID, getTagIDKey, getTagList, getTagSettings, getURLFactory, insertID, insertID, isInheritStyle, isPrintTagAttributes, isUseDefaultsOnly, main, putTagID, putTagID, removeID, removeTagID, setHtmlComponents, setID, setInheritStyle, setName, setPrintTagAttributes, setServiceName, setState, setTag, setTagList, setTagListDefaults, setTagSettings, setTagValue, setUseDefaultsOnly, showSubComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static String RESOURCE

NAME

private static final String NAME
See Also:
Constant Field Values

componentName

private String componentName
The name of the text input field. The button's click event handler takes this name as a parameter.

Constructor Detail

HTMLUrlAwareTextFieldComponent

public HTMLUrlAwareTextFieldComponent(String componentName)
Method Detail

init

public void init(String selector,
                 Object value,
                 HTMLComponentFactory componentFactory,
                 String mode,
                 Properties props)
Description copied from class: HTMLJavaScriptComponent
The javaScriptManager is grabbed from props.

Overrides:
init in class HTMLJavaScriptComponent