| |
|
| tucana.echo2.app.ModalDimmer
ModalDimmer | public class ModalDimmer extends Component implements FloatingPane(Code) | | The ModalDimmer component a non-standard component intended to be added to an
application only once. Once added, it will dim everything under to modal
component (usually a windowpane).
author: Jeremy Volkman |
DIM_TYPE_AUTO | final public static int DIM_TYPE_AUTO(Code) | | Auto selection. This mode favors opacity dimming, but falls back to
image based on browser support. This is probably the desired option.
|
DIM_TYPE_IMAGE | final public static int DIM_TYPE_IMAGE(Code) | | Image dimming. Overlay an alpha-supporting image over the window. This
mode does not support animated dimming.
|
DIM_TYPE_OPACITY | final public static int DIM_TYPE_OPACITY(Code) | | Opacity dimming. Use a colored DIV and set an opacity value on it. This
mode supports animated dimming.
|
ModalDimmer | public ModalDimmer()(Code) | | |
add | public void add(Component child, int n)(Code) | | Disallow the addition of children.
|
getDimAnimationSpeed | public float getDimAnimationSpeed()(Code) | | Return the current dim animation speed
The current animation speed, or -1.0f if it is not set. See Also: ModalDimmer.DIM_TYPE_OPACITY |
getDimColor | public Color getDimColor()(Code) | | Get the opacity dimming color
The opacity dimming color, or null if none is set. |
getDimImage | public ImageReference getDimImage()(Code) | | Get the current dim image.
The current dim image, or null if one is not set. |
getDimOpacity | public float getDimOpacity()(Code) | | Get the current dim opacity.
The current opacity, or -1.0f if it is not set. |
isDimAnimated | public boolean isDimAnimated()(Code) | | Return the current animation on/off status.
The current animation on/off status, or false if it is not set. See Also: ModalDimmer.DIM_TYPE_OPACITY |
setDimAnimated | public void setDimAnimated(boolean animated)(Code) | | Set the animation status
Parameters: animated - Animation on/off status See Also: ModalDimmer.DIM_TYPE_OPACITY |
setDimAnimationSpeed | public void setDimAnimationSpeed(float speed)(Code) | | Set the dimming animation speed
Parameters: speed - The speed See Also: ModalDimmer.DIM_TYPE_OPACITY |
setDimImage | public void setDimImage(ImageReference dimImage)(Code) | | Set the dim image to use.
Parameters: dimImage - The dim image to use See Also: ModalDimmer.DIM_TYPE_IMAGE |
setDimOpacity | public void setDimOpacity(float opacity)(Code) | | Set the dim opacity. Valid values are between 0 and 1.
Parameters: opacity - The dim opacity. See Also: ModalDimmer.DIM_TYPE_OPACITY |
|
|
|