2010-01-26 1.2.0

org.eclipse.soda.dk.epcglobal.llrp.config.servlet.display
Class AbstractDisplayElement

java.lang.Object
  extended by org.eclipse.soda.dk.epcglobal.llrp.config.servlet.display.AbstractDisplayElement
All Implemented Interfaces:
IDisplayElement
Direct Known Subclasses:
ParameterDisplay, ReaderDisplay

public abstract class AbstractDisplayElement
extends java.lang.Object
implements IDisplayElement

Since:
1.2
Version:
1.2.0

Field Summary
 
Fields inherited from interface org.eclipse.soda.dk.epcglobal.llrp.config.servlet.display.IDisplayElement
TYPE_PARAMETER, TYPE_PROFILE, TYPE_READER
 
Constructor Summary
protected AbstractDisplayElement(java.lang.String name, java.lang.Object paramObj, int type)
          Constructs an instance of this class from the specified name, param obj and type parameters.
 
Method Summary
 void addComment(java.lang.String comment)
          Add comment with the specified comment parameter.
 void addCommentTitle(java.lang.String commentTitle)
          Add comment title with the specified comment title parameter.
 void clearComment()
          Clear comment.
protected static java.lang.String getButton(java.lang.String name, int actionId, java.lang.String path)
          Get button with the specified name, action id and path parameters and return the String result.
 java.lang.String getComment()
          Gets the comment (String) value.
protected static java.lang.String getJavaScriptFunction()
          Gets the java script function (String) value.
 java.lang.String getName()
          Gets the name (String) value.
 java.lang.Object getParamObj()
          Gets the param obj (Object) value.
 int getType()
          Gets the type (int) value.
 void setName(java.lang.String name)
          Sets the name value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.soda.dk.epcglobal.llrp.config.servlet.display.IDisplayElement
getHtml
 

Constructor Detail

AbstractDisplayElement

protected AbstractDisplayElement(java.lang.String name,
                                 java.lang.Object paramObj,
                                 int type)
Constructs an instance of this class from the specified name, param obj and type parameters.

Parameters:
name - The name (String) parameter.
paramObj - The param obj (Object) parameter.
type - The type (int) parameter.
Method Detail

getButton

protected static java.lang.String getButton(java.lang.String name,
                                            int actionId,
                                            java.lang.String path)
Get button with the specified name, action id and path parameters and return the String result.

Parameters:
name - The name (String) parameter.
actionId - The action ID (int) parameter.
path - The path (String) parameter.
Returns:
Results of the get button (String) value.

getJavaScriptFunction

protected static java.lang.String getJavaScriptFunction()
Gets the java script function (String) value.

Returns:
The java script function (String) value.

addComment

public void addComment(java.lang.String comment)
Add comment with the specified comment parameter.

Specified by:
addComment in interface IDisplayElement
Parameters:
comment - The comment (String) parameter.
See Also:
clearComment(), getComment()

addCommentTitle

public void addCommentTitle(java.lang.String commentTitle)
Add comment title with the specified comment title parameter.

Specified by:
addCommentTitle in interface IDisplayElement
Parameters:
commentTitle - The comment title (String) parameter.

clearComment

public void clearComment()
Clear comment.

Specified by:
clearComment in interface IDisplayElement
See Also:
addComment(String), getComment()

getComment

public java.lang.String getComment()
Gets the comment (String) value.

Specified by:
getComment in interface IDisplayElement
Returns:
The comment (String) value.
See Also:
addComment(String), clearComment()

getName

public java.lang.String getName()
Gets the name (String) value.

Specified by:
getName in interface IDisplayElement
Returns:
The name (String) value.
See Also:
setName(String)

getParamObj

public java.lang.Object getParamObj()
Gets the param obj (Object) value.

Returns:
The param obj (Object) value.

getType

public int getType()
Gets the type (int) value.

Specified by:
getType in interface IDisplayElement
Returns:
The type (int) value.

setName

public void setName(java.lang.String name)
Sets the name value.

Parameters:
name - The name (String) parameter.
See Also:
getName()

2010-01-26 1.2.0

Copyright (c) 2010 IBM. See license in Legal section.