com.sap.ui.core.client
Class Core

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.sap.ui.core.client.Core

public class Core
extends com.google.gwt.core.client.JavaScriptObject

The class Core is a wrapper for the Phoenix core. All the core functionality which is required for the interaction with Phoenix has been made available within this class.

Version:
1.0 - 03.05.2010 00:21:37, Revision Version: ($Revision: #2 $), Revision Date: ($Date: 2011/03/16 $)
Author:
D039071@exchange.sap.corp, Revision Author: ($Author: d039071 $)

Nested Class Summary
static class Core.Configuration
          The class Configuration is the configuration of the Core.
 
Constructor Summary
protected Core()
          constructs the class Core
hidden due to JavaScriptObject restriction
 
Method Summary
 void applyChanges()
          applies the changes to the Core
 void applyTheme(String themeName)
          applies a theme to the Core
 Control byId(String id)
          returns the Control for the given id or null
static Core get()
          returns the reference to the Core
 Core.Configuration getConfiguration()
          returns the reference to the Configuration
 boolean isLocked()
          checks whether the Core is locked or not
 void lock()
          locks to the Core - prevents event handling
 void setModel(Model model)
          sets a Model in the Core
this API might change in future due to improving data binding for Phoenix
 void unlock()
          unlocks the Core
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Core

protected Core()
constructs the class Core
hidden due to JavaScriptObject restriction

Method Detail

get

public static final Core get()
returns the reference to the Core

Returns:
reference to the Core

getConfiguration

public final Core.Configuration getConfiguration()
returns the reference to the Configuration

Returns:
reference to the Configuration

byId

public final Control byId(String id)
returns the Control for the given id or null

Parameters:
id - id of the Control
Returns:
Control for the given id or null

applyChanges

public final void applyChanges()
applies the changes to the Core


applyTheme

public final void applyTheme(String themeName)
applies a theme to the Core

Parameters:
themeName - name of the theme to apply

lock

public final void lock()
locks to the Core - prevents event handling


unlock

public final void unlock()
unlocks the Core


isLocked

public final boolean isLocked()
checks whether the Core is locked or not

Returns:
true, if the Core is locked

setModel

public final void setModel(Model model)
sets a Model in the Core
this API might change in future due to improving data binding for Phoenix

Parameters:
model - reference to a Model


Copyright © 2011 SAP. All Rights Reserved.