|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itmill.toolkit.terminal.gwt.client.ApplicationConnection
public class ApplicationConnection
Entry point classes define onModuleLoad()
.
Field Summary | |
---|---|
static String |
PARAM_UNLOADBURST
|
static String |
UIDL_SECURITY_HEADER
|
static String |
VAR_BURST_SEPARATOR
|
static String |
VAR_FIELD_SEPARATOR
|
static String |
VAR_RECORD_SEPARATOR
|
Constructor Summary | |
---|---|
ApplicationConnection(WidgetSet widgetSet,
ApplicationConfiguration cnf)
|
Method Summary | |
---|---|
void |
addPngFix(com.google.gwt.user.client.Element el)
Adds PNG-fix conditionally (only for IE6) to the specified IMG -element. |
void |
analyzeLayouts()
|
void |
captionSizeUpdated(Paintable component)
|
void |
forceLayout()
This will cause re-layouting of all components. |
String |
getAppUri()
|
static Console |
getConsole()
|
IContextMenu |
getContextMenu()
Singleton method to get instance of app's context menu. |
Paintable |
getPaintable(String id)
Returns Paintable element by its id |
Paintable |
getPaintable(UIDL uidl)
Get either existing or new Paintable for given UIDL. |
RenderInformation.FloatSize |
getRelativeSize(com.google.gwt.user.client.ui.Widget widget)
|
String |
getResource(String name)
|
String |
getThemeUri()
|
TooltipInfo |
getTitleInfo(Paintable titleOwner)
Data showed in tooltips are stored centrilized as it may be needed in varios place: caption, layouts, and in owner components themselves. |
boolean |
handleComponentRelativeSize(com.google.gwt.user.client.ui.Widget child)
Converts relative sizes into pixel sizes. |
void |
handleTooltipEvent(com.google.gwt.user.client.Event event,
Paintable owner)
Component may want to delegate Tooltip handling to client. |
boolean |
hasActiveRequest()
|
static boolean |
isDebugMode()
Checks if client side is in debug mode. |
static boolean |
isTestingMode()
Method to check if application is in testing mode. |
void |
registerPaintable(String id,
Paintable paintable)
|
void |
requestLayoutPhase()
Components can call this function to run all layout functions. |
void |
runDescendentsLayout(com.google.gwt.user.client.ui.HasWidgets container)
|
void |
sendPendingVariableChanges()
This method sends currently queued variable changes to server. |
void |
sendPendingVariableChangesSync()
This method assures that all pending variable changes are sent to server. |
void |
setWindowName(String newName)
Reset the name of the current browser-window. |
String |
translateToolkitUri(String toolkitUri)
Translates custom protocols in UIRL URI's to be recognizable by browser. |
void |
unregisterChildPaintables(com.google.gwt.user.client.ui.HasWidgets container)
|
void |
unregisterPaintable(Paintable p)
|
boolean |
updateComponent(com.google.gwt.user.client.ui.Widget component,
UIDL uidl,
boolean manageCaption)
Update generic component features. |
void |
updateVariable(String paintableId,
String variableName,
boolean newValue,
boolean immediate)
|
void |
updateVariable(String paintableId,
String variableName,
double newValue,
boolean immediate)
|
void |
updateVariable(String paintableId,
String variableName,
float newValue,
boolean immediate)
|
void |
updateVariable(String paintableId,
String variableName,
int newValue,
boolean immediate)
|
void |
updateVariable(String paintableId,
String variableName,
long newValue,
boolean immediate)
|
void |
updateVariable(String paintableId,
String variableName,
Object[] values,
boolean immediate)
|
void |
updateVariable(String paintableId,
String variableName,
String newValue,
boolean immediate)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VAR_RECORD_SEPARATOR
public static final String VAR_FIELD_SEPARATOR
public static final String VAR_BURST_SEPARATOR
public static final String UIDL_SECURITY_HEADER
public static final String PARAM_UNLOADBURST
Constructor Detail |
---|
public ApplicationConnection(WidgetSet widgetSet, ApplicationConfiguration cnf)
Method Detail |
---|
public static boolean isTestingMode()
public static Console getConsole()
public static boolean isDebugMode()
public String getAppUri()
public boolean hasActiveRequest()
public void sendPendingVariableChangesSync()
public void registerPaintable(String id, Paintable paintable)
public void unregisterPaintable(Paintable p)
public void unregisterChildPaintables(com.google.gwt.user.client.ui.HasWidgets container)
public Paintable getPaintable(String id)
id
- Paintable IDpublic void sendPendingVariableChanges()
public void updateVariable(String paintableId, String variableName, String newValue, boolean immediate)
public void updateVariable(String paintableId, String variableName, int newValue, boolean immediate)
public void updateVariable(String paintableId, String variableName, long newValue, boolean immediate)
public void updateVariable(String paintableId, String variableName, float newValue, boolean immediate)
public void updateVariable(String paintableId, String variableName, double newValue, boolean immediate)
public void updateVariable(String paintableId, String variableName, boolean newValue, boolean immediate)
public void updateVariable(String paintableId, String variableName, Object[] values, boolean immediate)
public boolean updateComponent(com.google.gwt.user.client.ui.Widget component, UIDL uidl, boolean manageCaption)
The implementation of a component depends on many properties, including styles, component features, etc. Sometimes the user changes those properties after the component has been created. Calling this method in the beginning of your updateFromUIDL -method automatically replaces your component with more appropriate if the requested implementation changes.
Component can delegate management of caption, icon, error messages and description to parent layout. This is optional an should be decided by component author
component
- Widget to be updated, expected to implement an instance of
Paintableuidl
- UIDL to be paintedmanageCaption
- True if you want to delegate caption, icon, description and
error message management to parent.
public void runDescendentsLayout(com.google.gwt.user.client.ui.HasWidgets container)
public void forceLayout()
public boolean handleComponentRelativeSize(com.google.gwt.user.client.ui.Widget child)
child
-
public RenderInformation.FloatSize getRelativeSize(com.google.gwt.user.client.ui.Widget widget)
public Paintable getPaintable(UIDL uidl)
uidl
- UIDL to create Paintable from.
public String getResource(String name)
public IContextMenu getContextMenu()
public String translateToolkitUri(String toolkitUri)
toolkitUri
- toolkit URI from uidl
public String getThemeUri()
public TooltipInfo getTitleInfo(Paintable titleOwner)
public void handleTooltipEvent(com.google.gwt.user.client.Event event, Paintable owner)
event
- owner
- public void addPngFix(com.google.gwt.user.client.Element el)
el
- the IMG element to fixpublic void requestLayoutPhase()
public void setWindowName(String newName)
stringAttribute
- New name for the window.public void captionSizeUpdated(Paintable component)
public void analyzeLayouts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |