public class CreateWindow extends RPCRequest
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_ASSOCIATED_SERVICE_TYPE |
static String |
KEY_DUPLICATE_UPDATES_FROM_WINDOW_ID |
static String |
KEY_TYPE |
static String |
KEY_WINDOW_ID |
static String |
KEY_WINDOW_NAME |
onResponseListenerfunction, KEY_CORRELATION_ID, KEY_FUNCTION_NAME, KEY_NOTIFICATION, KEY_PARAMETERS, KEY_REQUEST, KEY_RESPONSE, messageType, parametersKEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
CreateWindow()
Constructs a new CreateWindow object
|
CreateWindow(Hashtable<String,Object> hash)
Constructs a new CreateWindow object indicated by the Hashtable
parameter
|
CreateWindow(Integer windowID,
String windowName,
WindowType type)
Constructs a new CreateWindow object
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAssociatedServiceType()
Gets the associatedServiceType.
|
Integer |
getDuplicateUpdatesFromWindowID()
Gets the duplicateUpdatesFromWindowID.
|
WindowType |
getType()
Gets a WindowType value
|
Integer |
getWindowID()
Gets the windowID.
|
String |
getWindowName()
Gets a window name to be used by the HMI.
|
CreateWindow |
setAssociatedServiceType(String associatedServiceType)
Sets the associatedServiceType.
|
CreateWindow |
setDuplicateUpdatesFromWindowID(Integer duplicateUpdatesFromWindowID)
Sets the duplicateUpdatesFromWindowID.
|
CreateWindow |
setType(WindowType type)
Sets the type of the window to be created.
|
CreateWindow |
setWindowID(Integer windowID)
Sets the windowID.
|
CreateWindow |
setWindowName(String windowName)
Sets a window name to be used by the HMI.
|
getCorrelationID, getOnRPCResponseListener, setCorrelationID, setOnRPCResponseListenergetBoolean, getDouble, getFloat, getFunctionID, getFunctionName, getInteger, getLong, getMessageType, getObject, getParameters, getString, setFunctionName, setParametersclone, deserializeJSON, equals, format, formatObject, getBulkData, getMessageTypeName, getStore, getStoreValue, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_WINDOW_ID
public static final String KEY_WINDOW_NAME
public static final String KEY_TYPE
public static final String KEY_ASSOCIATED_SERVICE_TYPE
public static final String KEY_DUPLICATE_UPDATES_FROM_WINDOW_ID
public CreateWindow()
public CreateWindow(Hashtable<String,Object> hash)
Constructs a new CreateWindow object indicated by the Hashtable parameter
hash - The Hashtable to usepublic CreateWindow(@NonNull
Integer windowID,
@NonNull
String windowName,
@NonNull
WindowType type)
windowID - A unique ID to identify the window. The value of '0' will always be the default main window on the main display and should not be used in this context as it will already be created for the app. See PredefinedWindows enum. Creating a window with an ID that is already in use will be rejected with `INVALID_ID`.windowName - The window name to be used by the HMI. The name of the pre-created default window will match the app name.
Multiple apps can share the same window name except for the default main window.
windowName.length() <= 100type - The type of the window to be created. Main window or widget.public CreateWindow setWindowID(@NonNull Integer windowID)
windowID - A unique ID to identify the window. The value of '0' will always be the default main window on the main display and should not be used in this context as it will already be created for the app. See PredefinedWindows enum. Creating a window with an ID that is already in use will be rejected with `INVALID_ID`.public Integer getWindowID()
public CreateWindow setWindowName(@NonNull String windowName)
windowName - The window name to be used by the HMI. The name of the pre-created default window will match the app name.
Multiple apps can share the same window name except for the default main window.
windowName.length() <= 100public String getWindowName()
public CreateWindow setType(@NonNull WindowType type)
type - The type of the window to be created. Main window or widget.public WindowType getType()
public CreateWindow setAssociatedServiceType(String associatedServiceType)
associatedServiceType - Allows an app to create a widget related to a specific service type.
As an example if a `MEDIA` app becomes active, this app becomes audible and is allowed to play audio.public String getAssociatedServiceType()
public CreateWindow setDuplicateUpdatesFromWindowID(Integer duplicateUpdatesFromWindowID)
duplicateUpdatesFromWindowID - Specify whether the content sent to an existing window should be duplicated to the created window.public Integer getDuplicateUpdatesFromWindowID()