public class Window extends Frame
Chip represents a window.SET_SCROLLDOWNABSOLUTE, SET_SCROLLDOWNRELATIVE, SET_SCROLLX, SET_SCROLLYCHIP_KEY, FALSE, FRAME_KEY, SHOW_JSP_COMMENTS, TRUE, USE_SOCKET_NAMINGDISPLAY_EVENT, FILTERED_PREFIX| Constructor and Description |
|---|
Window(DisplayState displayState,
String name) |
Window(DisplayState displayState,
String name,
String backgroundColor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the window.
|
String |
getBackgroundColor()
Returns the background color
|
String |
getName()
Returns the name (window title)
|
Chip |
getPlugin(String socketID)
Gets the plugin for the socket with the specified socketID.
|
protected String |
getProposedUniqueName() |
SocketChip |
getSocket(String socketID)
Gets the SocketChip for the socket with the specified socketID.
|
String |
getStatus() |
void |
open(int width,
int height)
Opens the window with a specified size.
|
void |
open(int width,
int height,
int xOffset,
int yOffset)
Opens the window with a specified size and offset.
|
void |
open(WindowOpenEvent windowOpenEvent)
Opens the window using the given window event.
|
void |
redirect(String url)
Redirects the window to another URL.
|
void |
refresh()
Refreshs the Window using a
WindowRefreshEvent. |
void |
registerSocketChip(String id,
SocketChip chip)
Registers a new socket at this window.
|
void |
setBackgroundColor(String color)
Sets the color which is then used as the window background color.
|
void |
setName(String name)
Sets the name which is then used as the window title in the browser.
|
void |
setPlugin(String socketID,
Chip plugin)
Sets a new plugin for the socket with the specified socketID.
|
protected void |
setStatus(String value) |
checkValid, displayHeader, getCurrent, getDisplayParameters, getJSPURI, getMainChip, getScrollX, getScrollY, getSystemMessage, getWindow, handleExtraParams, hasSystemMessage, isUpdating, processEvents, revivePreviousMainChip, setCurrent, setDisplayHeader, setMainChip, setScrollX, setScrollY, setUpdating, unsetCurrentaddEventListener, clearInfoMessages, clone, containsDisplayEvent, createMenuEntriesForJS, dispose, errorQueueEmpty, getClipboard, getCommandID, getDisplayState, getEventID, getEventURL, getEventValue, getFrame, getID, getInfoMessages, getJaloSession, getLocalizedString, getLocalizedString, getLogger, getMenuEntries, getNameSpace, getNameSpaceFor, getParent, getProposedUniqueNameFor, getRequestFocus, getSessionIdentifier, getStringValue, getUniqueName, goFullScreen, hasVisibleContextMenuEntries, isButtonPushed, isButtonPushed, isErrorQueueEmpty, isValid, leaveFullScreen, notifyEventListeners, notifyEventListeners, postErrorMessage, postInfoMessage, postWindowEvent, refreshChild, registerUniqueName, removeEventListener, removeInfoMessage, render, render, setClipboard, setParent, setRequestFocus, setValid, setWindowStatus, translateFormFieldToEventName, translateFormFieldToEventValuepublic Window(DisplayState displayState, String name)
public Window(DisplayState displayState, String name, String backgroundColor)
public void open(int width,
int height,
int xOffset,
int yOffset)
width - The width in pixels of the open window.height - The height in pixels of the open window.xOffset - the x offset relative to the parent windowyOffset - the y offset relative to the parent windowpublic void open(int width,
int height)
width - The width in pixels of the open window.height - The height in pixels of the open window.public void open(WindowOpenEvent windowOpenEvent)
windowOpenEvent - The event which will be posted in order to create the new window.public void close()
public void redirect(String url)
url - The URL which should be displayed in the window.public void setName(String name)
public String getName()
public void setBackgroundColor(String color)
public String getBackgroundColor()
protected String getProposedUniqueName()
getProposedUniqueName in class Framepublic void registerSocketChip(String id, SocketChip chip)
id - The unique identifier for the socket to register.public void setPlugin(String socketID, Chip plugin)
socketID - specifies the socket which plugin should be changed.RuntimeException - If there doesnt exist a socket with the specfied id.public Chip getPlugin(String socketID)
socketID - specifies the socket which plugin should be changed.public SocketChip getSocket(String socketID)
socketID - specifies the socket which plugin should be changed.public void refresh()
WindowRefreshEvent.protected void setStatus(String value)
public String getStatus()
Copyright © 2017 SAP SE. All Rights Reserved.