com.smartgwt.client.core
Class DataClass
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
- Direct Known Subclasses:
- Criteria, DataSourceField, DetailViewerField, FacetValueMap, FormItemEventInfo, FormItemIcon, Gradient, GroupNode, HeaderSpan, ImgProperties, JSONEncoder, KeyIdentifier, ListGridField, MetricSettings, OperationBinding, PrintProperties, RefDataClass, RelativeDate, RPCRequest, RPCResponse, SerializationContext, ServerObject, Shadow, SortSpecifier, UserFormula, Validator, XmlNamespaces
public class DataClass
- extends JsObject
| Fields inherited from class com.smartgwt.client.core.JsObject |
jsObj |
|
Method Summary |
protected
|
doAddHandler(H handler,
GwtEvent.Type<H> type)
|
void |
fireEvent(GwtEvent<?> event)
|
String |
getAttribute(String property)
|
Boolean |
getAttributeAsBoolean(String property)
|
Date |
getAttributeAsDate(String property)
|
Double |
getAttributeAsDouble(String property)
|
double[] |
getAttributeAsDoubleArray(String property)
|
Float |
getAttributeAsFloat(String property)
|
Integer |
getAttributeAsInt(String property)
|
int[] |
getAttributeAsIntArray(String property)
|
JavaScriptObject |
getAttributeAsJavaScriptObject(String property)
|
Long |
getAttributeAsLong(String property)
|
Map |
getAttributeAsMap(String property)
|
Object |
getAttributeAsObject(String property)
|
Record |
getAttributeAsRecord(String property)
Get the attribute value as a Record. |
String |
getAttributeAsString(String property)
|
String[] |
getAttributeAsStringArray(String property)
|
String[] |
getAttributes()
|
int |
getHandlerCount(GwtEvent.Type<?> type)
|
JavaScriptObject |
getJsObj()
|
void |
setAttribute(String property,
BaseClass value)
|
void |
setAttribute(String property,
BaseClass[] value)
|
void |
setAttribute(String property,
BaseWidget[] value)
|
void |
setAttribute(String property,
boolean value)
|
void |
setAttribute(String property,
Boolean value)
|
void |
setAttribute(String property,
DataClass value)
|
void |
setAttribute(String property,
DataClass[] value)
|
void |
setAttribute(String property,
Date value)
|
void |
setAttribute(String property,
double value)
|
void |
setAttribute(String property,
Double value)
|
void |
setAttribute(String property,
double[] value)
|
void |
setAttribute(String property,
Float value)
|
void |
setAttribute(String property,
int value)
|
void |
setAttribute(String property,
int[] value)
|
void |
setAttribute(String property,
Integer value)
|
void |
setAttribute(String property,
Integer[] value)
|
void |
setAttribute(String property,
JavaScriptObject value)
|
void |
setAttribute(String property,
long value)
|
void |
setAttribute(String property,
Map value)
|
void |
setAttribute(String property,
Object value)
Set the attribute value as and Object. |
void |
setAttribute(String property,
String value)
|
void |
setAttribute(String property,
String[] value)
|
void |
setAttribute(String property,
ValueEnum value)
|
void |
setAttribute(String property,
ValueEnum[] value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataClass
public DataClass()
DataClass
public DataClass(JavaScriptObject jsObj)
getJsObj
public JavaScriptObject getJsObj()
- Overrides:
getJsObj in class JsObject
setAttribute
public void setAttribute(String property,
String value)
getAttribute
public String getAttribute(String property)
getAttributeAsString
public String getAttributeAsString(String property)
setAttribute
public void setAttribute(String property,
int value)
setAttribute
public void setAttribute(String property,
double value)
setAttribute
public void setAttribute(String property,
long value)
getAttributeAsInt
public Integer getAttributeAsInt(String property)
setAttribute
public void setAttribute(String property,
boolean value)
getAttributeAsBoolean
public Boolean getAttributeAsBoolean(String property)
getAttributeAsDouble
public Double getAttributeAsDouble(String property)
getAttributeAsLong
public Long getAttributeAsLong(String property)
getAttributeAsDoubleArray
public double[] getAttributeAsDoubleArray(String property)
setAttribute
public void setAttribute(String property,
int[] value)
setAttribute
public void setAttribute(String property,
Integer[] value)
setAttribute
public void setAttribute(String property,
DataClass[] value)
setAttribute
public void setAttribute(String property,
BaseClass[] value)
setAttribute
public void setAttribute(String property,
BaseWidget[] value)
getAttributeAsIntArray
public int[] getAttributeAsIntArray(String property)
setAttribute
public void setAttribute(String property,
String[] value)
getAttributeAsStringArray
public String[] getAttributeAsStringArray(String property)
setAttribute
public void setAttribute(String property,
DataClass value)
setAttribute
public void setAttribute(String property,
BaseClass value)
setAttribute
public void setAttribute(String property,
JavaScriptObject value)
setAttribute
public void setAttribute(String property,
Date value)
setAttribute
public void setAttribute(String property,
double[] value)
setAttribute
public void setAttribute(String property,
Boolean value)
setAttribute
public void setAttribute(String property,
Map value)
setAttribute
public void setAttribute(String property,
ValueEnum[] value)
setAttribute
public void setAttribute(String property,
ValueEnum value)
setAttribute
public void setAttribute(String property,
Object value)
- Set the attribute value as and Object. Note that this method converts the Java primitive Object types, Dates and Maps to the underyling
JavaScriptObject value. All other object types are set as Object type attributes and users are expected to call
getAttributeAsObject(String)
in order to retrieve them.
- Parameters:
property - the attribute namevalue - the attribute value.
setAttribute
public void setAttribute(String property,
Double value)
setAttribute
public void setAttribute(String property,
Integer value)
setAttribute
public void setAttribute(String property,
Float value)
getAttributeAsFloat
public Float getAttributeAsFloat(String property)
getAttributeAsDate
public Date getAttributeAsDate(String property)
getAttributeAsObject
public Object getAttributeAsObject(String property)
getAttributeAsMap
public Map getAttributeAsMap(String property)
getAttributeAsRecord
public Record getAttributeAsRecord(String property)
- Get the attribute value as a Record.
- Parameters:
property - the property name
- Returns:
- the record value
getAttributeAsJavaScriptObject
public JavaScriptObject getAttributeAsJavaScriptObject(String property)
getAttributes
public String[] getAttributes()
fireEvent
public void fireEvent(GwtEvent<?> event)
doAddHandler
protected final <H extends EventHandler> HandlerRegistration doAddHandler(H handler,
GwtEvent.Type<H> type)
getHandlerCount
public int getHandlerCount(GwtEvent.Type<?> type)