com.vaadin.server
Class UICreateEvent
java.lang.Object
java.util.EventObject
com.vaadin.server.UIProviderEvent
com.vaadin.server.UICreateEvent
- All Implemented Interfaces:
- java.io.Serializable
public class UICreateEvent
- extends UIProviderEvent
Contains data used by various methods in UIProvider
for determining
information about a new UI that is about to be created.
- Since:
- 7.0.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
UICreateEvent(VaadinRequest request,
java.lang.Class<? extends UI> uiClass)
Creates a new UI create event for a given VaadinRequest and UI class but
without a UI id. |
UICreateEvent(VaadinRequest request,
java.lang.Class<? extends UI> uiClass,
java.lang.Integer uiId)
Creates a new UI create event for a given VaadinRequest, UI class and UI
id |
Method Summary |
java.lang.Class<? extends UI> |
getUIClass()
Gets the UI class that will be created. |
java.lang.Integer |
getUiId()
Gets the id of the UI about to be created. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UICreateEvent
public UICreateEvent(VaadinRequest request,
java.lang.Class<? extends UI> uiClass)
- Creates a new UI create event for a given VaadinRequest and UI class but
without a UI id.
- Parameters:
request
- the request for which the UI will be createduiClass
- the UI class that will be created
UICreateEvent
public UICreateEvent(VaadinRequest request,
java.lang.Class<? extends UI> uiClass,
java.lang.Integer uiId)
- Creates a new UI create event for a given VaadinRequest, UI class and UI
id
- Parameters:
request
- the request for which the UI will be createduiClass
- the UI class that will be createduiId
- the id reserved for the UI; or null
if no id has
yet been allocated.
getUIClass
public java.lang.Class<? extends UI> getUIClass()
- Gets the UI class that will be created.
- Returns:
- the UI class
getUiId
public java.lang.Integer getUiId()
- Gets the id of the UI about to be created. This might be
null
if the id has not yet been determined.
The UI id is generally only available in
UIProvider.createInstance(UICreateEvent)
- Returns:
- the UI id; or
null
if the UI id is not yet known.
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.