de.enough.polish.ui
Interface UiElement

All Known Implementing Classes:
Alert, BlankItem, CameraScreen, ChoiceGroup, ChoiceItem, ChoiceTextField, ClearKeyItem, CommandItem, Container, CustomItem, DateField, DeleteKeyItem, FieldItem, FilteredChoiceGroup, FilteredList, Form, FramedForm, Gauge, HorizontalTransition, IconItem, ImageItem, Item, ItemChoiceItem, Keyboard, KeyboardView, KeyItem, List, MenuBar, ModeKeyItem, ProcessingItem, ProcessingScreen, RgbFilterTransition, RgbImageItem, ScaledImageItem, Screen, ScrollBar, SeekControlItem, ShiftKeyItem, SnapshotScreen, Spacer, SplashScreen, StringItem, TabBar, TabbedForm, TabbedList, TabbedPane, TextBox, TextField, Ticker, TimeEntryItem, TimeTitleItem, TitleMenuBar, Transition, VideoContainer, ViewItem, VolumeControlItem

public interface UiElement

A common interface for items and screens.

Copyright Enough Software 2008

Author:
Robert Virkus, j2mepolish@enough.de

Method Summary
 void addRelativeToContentRegion(ClippingRegion repaintRegion, int x, int y, int width, int height)
          Adds a region relative to this item's content x/y start position.
 void addRepaintArea(ClippingRegion repaintArea)
          Adds a repaint request for this user interface component's space.
 Style getStyle()
          Retrieves the currently used style
 void setStyle(Style style)
          Sets the style of this user interface element.
 void setStyle(Style style, boolean resetStyle)
          Sets the style with animatable CSS attributes of this user interface element.
 

Method Detail

setStyle

void setStyle(Style style)
Sets the style of this user interface element. Typically control is forwarded to setStyle( Style, true ).

Parameters:
style - the new style for this element.
Throws:
NullPointerException - when style is null

setStyle

void setStyle(Style style,
              boolean resetStyle)
Sets the style with animatable CSS attributes of this user interface element.

Parameters:
style - the new style for this element.
resetStyle - true when style settings should be resetted. This is not the case when styles are animated, for example.
Throws:
NullPointerException - when style is null

getStyle

Style getStyle()
Retrieves the currently used style

Returns:
the style of this UI element

addRepaintArea

void addRepaintArea(ClippingRegion repaintArea)
Adds a repaint request for this user interface component's space.

Parameters:
repaintArea - the clipping rectangle to which the repaint area should be added

addRelativeToContentRegion

void addRelativeToContentRegion(ClippingRegion repaintRegion,
                                int x,
                                int y,
                                int width,
                                int height)
Adds a region relative to this item's content x/y start position.

Parameters:
repaintRegion - the clipping region
x - horizontal start relative to this item's content position
y - vertical start relative to this item's content position
width - width
height - height