wt.templateutil.components
Class ActionIconComponent

java.lang.Object
  extended bywt.templateutil.components.HTMLComponent
      extended bywt.templateutil.components.HTMLImgComponent
          extended bywt.templateutil.components.ActionIconComponent
All Implemented Interfaces:
Serializable

public class ActionIconComponent
extends HTMLImgComponent
implements Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  String action
           
private static String CLASSNAME
           
private static String CODEBASE
           
private static String RESOURCE
           
private static boolean VERBOSE
           
 
Fields inherited from class wt.templateutil.components.HTMLImgComponent
ALIGN, ALT, BORDER, HEIGHT, HSPACE, IMG_ALIGN, IMG_ALT, IMG_BORDER, IMG_HEIGHT, IMG_HSPACE, IMG_ISMAP, IMG_LOWSRC, IMG_NAME, IMG_ONABORT, IMG_ONERROR, IMG_ONLOAD, IMG_SRC, IMG_SUPPRESS, IMG_TITLE, IMG_USEMAP, IMG_VSPACE, IMG_WIDTH, ISMAP, LOWSRC, NAME, ONABORT, ONERROR, ONLOAD, SRC, SUPPRESS, tag, TAG, TITLE, USEMAP, VSPACE, WIDTH
 
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, UPDATE, VIEW
 
Constructor Summary
ActionIconComponent()
           
 
Method Summary
private  void actionValidate(String a_Action)
           
 String getAction()
          Gets the value of the attribute: action.
private  String getIconResource(Object obj, String action)
          Returns a String containing the URL to the icon for the given WTObject.
 String getObjectIconImgTag(Object value, String action)
           
 void init(String selector, Object value, HTMLComponentFactory componentFactory, String mode, Properties props)
          Deprecated.  
 void setAction(String a_Action)
          Sets the value of the attribute: action.
 String showSubComponents(Object value, Properties formData, OutputStream os, Locale locale)
          Returns a string that is the contcatenation of the result of calling show() on all the associated subComponents sequentially.
 String startComponent(Object value, Properties formData, OutputStream os, Locale locale)
          Displays the standard format of a starting HTML tag include the opening less than, the tag name, the key value pairs that are the tag attributes, and the closing greater than.
 
Methods inherited from class wt.templateutil.components.HTMLImgComponent
getTag, setTagListArray
 
Methods inherited from class wt.templateutil.components.HTMLComponent
appendID, appendID, appendToID, appendToID, createIDForComponent, endComponent, getHtmlComponents, getID, getIdProp, getName, getOID, getPrintWriter, getRealValue, getServiceName, getState, 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, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

action

private String action

VERBOSE

private static boolean VERBOSE

CODEBASE

private static String CODEBASE
Constructor Detail

ActionIconComponent

public ActionIconComponent()
Method Detail

getAction

public String getAction()
Gets the value of the attribute: action.

Supported API: false

Returns:
String

setAction

public void setAction(String a_Action)
               throws WTPropertyVetoException
Sets the value of the attribute: action.

Supported API: false

Parameters:
a_Action -
Throws:
WTPropertyVetoException

actionValidate

private void actionValidate(String a_Action)
                     throws WTPropertyVetoException
Parameters:
a_Action -
Throws:
WTPropertyVetoException

init

public void init(String selector,
                 Object value,
                 HTMLComponentFactory componentFactory,
                 String mode,
                 Properties props)
Deprecated.  



Supported API: false

Overrides:
init in class HTMLImgComponent
Parameters:
selector -
value -
componentFactory -
mode -
props -

getObjectIconImgTag

public String getObjectIconImgTag(Object value,
                                  String action)
                           throws WTException
Throws:
WTException

getIconResource

private String getIconResource(Object obj,
                               String action)
                        throws WTException,
                               PropertyVetoException,
                               InvocationTargetException,
                               IllegalAccessException
Returns a String containing the URL to the icon for the given WTObject. The returned String URL is of the form <Server Codebase>/<Icon File>. This method does not take into consideration any glyphs that may be associated with the given object.

Supported API: false

Parameters:
obj - the WTObject for which a URL to the icon file is returned
Returns:
the String URL to the icon file of the given WTObject
Throws:
WTException - if an error occurs retrieving the icon file
PropertyVetoException - if an error occurs retrieving the icon file
InvocationTargetException - if an error occurs retrieving the icon file
IllegalAccessException - if an error occurs retrieving the icon file

showSubComponents

public String showSubComponents(Object value,
                                Properties formData,
                                OutputStream os,
                                Locale locale)
Description copied from class: HTMLComponent
Returns a string that is the contcatenation of the result of calling show() on all the associated subComponents sequentially.

Supported API: true

Overrides:
showSubComponents in class HTMLComponent
Parameters:
value -
formData -
os -
locale -
Returns:
String

startComponent

public String startComponent(Object value,
                             Properties formData,
                             OutputStream os,
                             Locale locale)
Description copied from class: HTMLComponent
Displays the standard format of a starting HTML tag include the opening less than, the tag name, the key value pairs that are the tag attributes, and the closing greater than.

Supported API: true

Overrides:
startComponent in class HTMLComponent
Parameters:
value -
formData -
os -
locale -
Returns:
String