Ejemplo n.º 1
0
JSValue jsDataGridColumnPrimary(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
    JSDataGridColumn* castedThis = static_cast<JSDataGridColumn*>(asObject(slot.slotBase()));
    UNUSED_PARAM(exec);
    DataGridColumn* imp = static_cast<DataGridColumn*>(castedThis->impl());
    return jsBoolean(imp->primary());
}
Ejemplo n.º 2
0
JSValue jsDataGridColumnSortDirection(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
    JSDataGridColumn* castedThis = static_cast<JSDataGridColumn*>(asObject(slot.slotBase()));
    UNUSED_PARAM(exec);
    DataGridColumn* imp = static_cast<DataGridColumn*>(castedThis->impl());
    return jsNumber(exec, imp->sortDirection());
}
JSValue jsDataGridColumnPrimary(ExecState* exec, JSValue slotBase, const Identifier&)
{
    JSDataGridColumn* castedThis = static_cast<JSDataGridColumn*>(asObject(slotBase));
    UNUSED_PARAM(exec);
    DataGridColumn* imp = static_cast<DataGridColumn*>(castedThis->impl());
    JSValue result = jsBoolean(imp->primary());
    return result;
}
JSValue jsDataGridColumnSortDirection(ExecState* exec, JSValue slotBase, const Identifier&)
{
    JSDataGridColumn* castedThis = static_cast<JSDataGridColumn*>(asObject(slotBase));
    UNUSED_PARAM(exec);
    DataGridColumn* imp = static_cast<DataGridColumn*>(castedThis->impl());
    JSValue result = jsNumber(exec, imp->sortDirection());
    return result;
}
void setJSDataGridColumnPrimary(ExecState* exec, JSObject* thisObject, JSValue value)
{
    JSDataGridColumn* castedThisObj = static_cast<JSDataGridColumn*>(thisObject);
    DataGridColumn* imp = static_cast<DataGridColumn*>(castedThisObj->impl());
    imp->setPrimary(value.toBoolean(exec));
}
void setJSDataGridColumnSortDirection(ExecState* exec, JSObject* thisObject, JSValue value)
{
    JSDataGridColumn* castedThisObj = static_cast<JSDataGridColumn*>(thisObject);
    DataGridColumn* imp = static_cast<DataGridColumn*>(castedThisObj->impl());
    imp->setSortDirection(value.toInt32(exec));
}
void setJSDataGridColumnType(ExecState* exec, JSObject* thisObject, JSValue value)
{
    JSDataGridColumn* castedThisObj = static_cast<JSDataGridColumn*>(thisObject);
    DataGridColumn* imp = static_cast<DataGridColumn*>(castedThisObj->impl());
    imp->setType(value.toString(exec));
}