public abstract class AppConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLIENT_TYPE_PROP |
Constructor and Description |
---|
AppConfig() |
Modifier and Type | Method and Description |
---|---|
static ExportDisplay |
createExportDisplay(Frame frame)
Create an ExportDisplay implementation.
|
static BackgroundWorker |
getBackgroundWorker()
Client-specific BackgroundWorker
|
static ClientType |
getClientType()
Current client type.
|
static ComponentsFactory |
getFactory()
Client-specific components factory
|
static java.lang.String |
getMessagesPack()
Main messages pack used by GenericUI components and application code.
|
public static final java.lang.String CLIENT_TYPE_PROP
public static ClientType getClientType()
CLIENT_TYPE_PROP
on a client tier.public static java.lang.String getMessagesPack()
cuba.messagePack
depending on the client type and set of base projects.
Messages.getMainMessagePack()
.
Messages.getMainMessage(String)
.public static ExportDisplay createExportDisplay(@Nullable Frame frame)
frame
- current frame. It is needed for desktop implementation to correctly show dialog inside of currently
active main window. Can be null, but in this case a position of the dialog is not guaranteed.public static BackgroundWorker getBackgroundWorker()
public static ComponentsFactory getFactory()