|
Eclipse Rich Ajax Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.rwt.lifecycle.ControlLCAUtil
public class ControlLCAUtil
Utility class that provides a number of useful static methods to support the
implementation of life cycle adapters (LCAs) for Control
s.
WidgetLCAUtil
Method Summary | |
---|---|
static int |
getZIndex(Control control)
Deprecated. This method should not be used anymore. |
static void |
preserveBackgroundImage(Control control)
Preserves the value of the specified widget's background image. |
static void |
preserveMenuDetectListener(Control control)
Deprecated. Use WidgetLCAUtil.preserveListener(Widget, String, boolean) instead |
static void |
preserveValues(Control control)
Preserves the values of the following properties of the specified control: bounds z-index (except for Shells) tab index tool tip text menu visible enabled foreground background background image font cursor whether ControlListeners are registered whether ActivateListeners are registered whether MouseListeners are registered whether FocusListeners are registered whether KeyListeners are registered whether TraverseListeners are registered whether HelpListeners are registered whether MenuDetectListeners are registered |
static void |
processKeyEvents(Control control)
|
static void |
processMenuDetect(Control control)
Process a HelpEvent if the current request specifies that
there occured a help event for the given widget . |
static void |
processMouseEvents(Control control)
|
static void |
processSelection(Widget widget,
Item item,
boolean readBounds)
|
static void |
readBounds(Control control)
Reads the bounds of the specified control from the current request and applies it to the control. |
static void |
renderBackground(Control control)
Determines whether the property background of the given
control has changed during the processing of the current request and if so,
writes a protocol message to the response that updates the client-side
background property. |
static void |
renderBackgroundImage(Control control)
Determines whether the background image of the given control has changed during the processing of the current request and if so, writes a protocol message to the response that updates the client-side background image property. |
static void |
renderBounds(Control control)
Determines whether the bounds of the given control have changed during the processing of the current request and if so, writes JavaScript code to the response that updates the client-side bounds. |
static void |
renderChanges(Control control)
Determines for all of the following properties of the specified control whether the property has changed during the processing of the current request and if so, writes a protocol message to the response that updates the corresponding client-side property. |
static void |
renderEnabled(Control control)
Determines whether the property enabled of the given control
has changed during the processing of the current request and if so, writes
a protocol message to the response that updates the client-side enabled
property. |
static void |
renderFont(Control control)
Determines whether the property font of the given control
has changed during the processing of the current request and if so, writes
a protocol message to the response that updates the client-side font property. |
static void |
renderForeground(Control control)
Determines whether the property foreground of the given
control has changed during the processing of the current request and if so,
writes a protocol message to the response that updates the client-side
foreground property. |
static void |
renderMenu(Control control)
Determines whether the property menu of the given control
has changed during the processing of the current request and if so, writes
a protocol message to the response that updates the client-side menu
property. |
static void |
renderToolTip(Control control)
Determines whether the tool tip of the given control has changed during the processing of the current request and if so, writes JavaScript code to the response that updates the client-side tool tip. |
static void |
renderVisible(Control control)
Determines whether the visibility of the given control has changed during the processing of the current request and if so, writes JavaScript code to the response that updates the client-side visibility. |
static void |
writeActivateListener(Control control)
Deprecated. Use renderListenActivate(Control) instead |
static void |
writeBackground(Control control)
Deprecated. Use renderBackground(Control) instead |
static void |
writeBackgroundImage(Control control)
Deprecated. Use renderBackgroundImage(Control) instead |
static void |
writeBounds(Control control)
Deprecated. Use renderBounds(Control) instead |
static void |
writeChanges(Control control)
Deprecated. Use renderChanges(Control) |
static void |
writeEnabled(Control control)
Deprecated. Use renderEnabled(Control) instead |
static void |
writeFont(Control control)
Deprecated. Use renderFont(Control) instead |
static void |
writeForeground(Control control)
Deprecated. Use renderForeground(Control) instead |
static void |
writeMenu(Control control)
Deprecated. Use renderMenu(Control) instead |
static void |
writeMenuDetectListener(Control control)
Deprecated. Use renderListenMenuDetect(Control) instead |
static void |
writeStyleFlags(Control control)
Deprecated. Use WidgetLCAUtil.getStyles(Widget, String[]) to obtain
the list of styles instead and set the result to the property
style |
static void |
writeToolTip(Control control)
Deprecated. Use renderToolTip(Control) instead |
static void |
writeVisible(Control control)
Deprecated. Use renderVisible(Control) instead |
static void |
writeZIndex(Control control)
Deprecated. This method should not be used anymore as zIndex is not rendered directly anymore. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void readBounds(Control control)
control
- the control whose bounds to read and setpublic static void processMenuDetect(Control control)
HelpEvent
if the current request specifies that
there occured a help event for the given widget
.
control
- the control to processpublic static void processMouseEvents(Control control)
public static void processKeyEvents(Control control)
public static void processSelection(Widget widget, Item item, boolean readBounds)
public static void preserveValues(Control control)
control
- the control whose parameters to preservewriteChanges(Control)
public static void preserveBackgroundImage(Control control)
control
- the control whose background image property to preservewriteBackgroundImage(Control)
public static void renderChanges(Control control)
control
- the control whose properties to setpreserveValues(Control)
public static void renderBounds(Control control)
control
- the control whose bounds to writepublic static void renderToolTip(Control control)
control
- the control whose tool tip to writepublic static void renderMenu(Control control)
menu
of the given control
has changed during the processing of the current request and if so, writes
a protocol message to the response that updates the client-side menu
property.
control
- the control whose menu property to writepublic static void renderVisible(Control control)
control
- the control whose visibility to writepublic static void renderEnabled(Control control)
enabled
of the given control
has changed during the processing of the current request and if so, writes
a protocol message to the response that updates the client-side enabled
property.
control
- the control whose enabled property to writepublic static void renderForeground(Control control)
foreground
of the given
control has changed during the processing of the current request and if so,
writes a protocol message to the response that updates the client-side
foreground property.
control
- the control whose foreground property to writepublic static void renderBackground(Control control)
background
of the given
control has changed during the processing of the current request and if so,
writes a protocol message to the response that updates the client-side
background property.
control
- the control whose background property to writepublic static void renderBackgroundImage(Control control)
control
- the control whose background image property to writepublic static void renderFont(Control control)
font
of the given control
has changed during the processing of the current request and if so, writes
a protocol message to the response that updates the client-side font property.
control
- the control whose font property to write@Deprecated public static void writeChanges(Control control) throws java.io.IOException
renderChanges(Control)
control
- the control whose properties to set
java.io.IOException
preserveValues(Control)
@Deprecated public static void writeBounds(Control control) throws java.io.IOException
renderBounds(Control)
instead
control
- the control whose bounds to write
java.io.IOException
@Deprecated public static void writeZIndex(Control control) throws java.io.IOException
control
- the control whose z-index to write
java.io.IOException
@Deprecated public static void writeToolTip(Control control) throws java.io.IOException
renderToolTip(Control)
instead
control
- the control whose tool tip to write
java.io.IOException
@Deprecated public static void writeMenu(Control control) throws java.io.IOException
renderMenu(Control)
instead
menu
of the given control
has changed during the processing of the current request and if so, writes
JavaScript code to the response that updates the client-side menu
property.
control
- the control whose menu property to write
java.io.IOException
@Deprecated public static void writeVisible(Control control) throws java.io.IOException
renderVisible(Control)
instead
control
- the control whose visibility to write
java.io.IOException
@Deprecated public static void writeEnabled(Control control) throws java.io.IOException
renderEnabled(Control)
instead
enabled
of the given control
has changed during the processing of the current request and if so, writes
JavaScript code to the response that updates the client-side enabled
property.
control
- the control whose enabled property to write
java.io.IOException
@Deprecated public static void writeForeground(Control control) throws java.io.IOException
renderForeground(Control)
instead
foreground
of the given
control has changed during the processing of the current request and if so,
writes JavaScript code to the response that updates the client-side
foreground property.
control
- the control whose foreground property to write
java.io.IOException
@Deprecated public static void writeBackground(Control control) throws java.io.IOException
renderBackground(Control)
instead
background
of the given
control has changed during the processing of the current request and if so,
writes JavaScript code to the response that updates the client-side
background property.
control
- the control whose background property to write
java.io.IOException
@Deprecated public static void writeBackgroundImage(Control control) throws java.io.IOException
renderBackgroundImage(Control)
instead
control
- the control whose background image property to write
java.io.IOException
@Deprecated public static void writeFont(Control control) throws java.io.IOException
renderFont(Control)
instead
font
of the given control
has changed during the processing of the current request and if so, writes
JavaScript code to the response that updates the client-side font property.
control
- the control whose font property to write
java.io.IOException
@Deprecated public static void writeActivateListener(Control control) throws java.io.IOException
renderListenActivate(Control)
instead
java.io.IOException
@Deprecated public static void writeMenuDetectListener(Control control) throws java.io.IOException
renderListenMenuDetect(Control)
instead
control
as necessary.
control
-
java.io.IOException
@Deprecated public static void writeStyleFlags(Control control) throws java.io.IOException
WidgetLCAUtil.getStyles(Widget, String[])
to obtain
the list of styles instead and set the result to the property
style
SWT.BORDER
) and if present, writes code to pass the according
states to the client.
control
-
java.io.IOException
@Deprecated public static void preserveMenuDetectListener(Control control)
WidgetLCAUtil.preserveListener(Widget, String, boolean)
instead
widget
has one or more
MenuDetect
s attached.
control
- the widget to preserve@Deprecated public static int getZIndex(Control control)
control
- the control whose z-index is requested
|
Eclipse Rich Ajax Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) EclipseSource and others 2002, 2012. All rights reserved.