org.wings.plaf
Interface ComponentCG<COMPONENT_TYPE extends SComponent>

All Superinterfaces:
Serializable
All Known Subinterfaces:
AnchorCG, ButtonCG, CalendarCG<COMPONENT_TYPE>, CheckBoxCG, ClickableCG, ComboBoxCG, ContainerCG<COMPONENT_TYPE>, DesktopPaneCG, DialogCG, DivisionCG, DragAndDropManagerCG, FileChooserCG, FormCG, FrameCG, InternalFrameCG, LabelCG, ListCG, MenuBarCG, MenuCG, MenuItemCG, OptionPaneCG, PageScrollerCG, PanelCG, PasswordFieldCG, PopupCG, PopupMenuCG, ProgressBarCG, RadioButtonCG, RawTextComponentCG, RootContainerCG, ScrollBarCG, ScrollPaneCG, SeparatorCG, SpacerCG, SpinnerCG, SuggestCG, TabbedPaneCG, TableCG, TextAreaCG, TextFieldCG, ToggleButtonCG, ToolBarCG, TreeCG, WindowCG

public interface ComponentCG<COMPONENT_TYPE extends SComponent>
extends Serializable


Method Summary
 void componentChanged(COMPONENT_TYPE c)
          Notify the CG that the state of the according component has changed.
 Update getComponentUpdate(COMPONENT_TYPE component)
          Returns an update for the complete component.
 void installCG(COMPONENT_TYPE c)
          Installs the CG.
 void uninstallCG(COMPONENT_TYPE c)
          Uninstalls the CG.
 void write(Device device, COMPONENT_TYPE component)
          Writes the given component to the Device.
 

Method Detail

installCG

void installCG(COMPONENT_TYPE c)
Installs the CG.

Note: Be very careful here since this method is called from the SComponent constructor! Don't call any methods which rely on something that will be constructed in a subconstructor later!


uninstallCG

void uninstallCG(COMPONENT_TYPE c)
Uninstalls the CG.


componentChanged

void componentChanged(COMPONENT_TYPE c)
Notify the CG that the state of the according component has changed.

Parameters:
c - The 'dirty' component.

write

void write(Device device,
           COMPONENT_TYPE component)
           throws IOException
Writes the given component to the Device.

This renders the component according to this pluggable look and feel; it reads the properties of the component and genereates the HTML, XML or whatever representation that is written to the Device.

This method should be called from the write method in SComponent or a subclass. It delegates

Parameters:
device - the output device.
component - the component to be rendered.
Throws:
IOException

getComponentUpdate

Update getComponentUpdate(COMPONENT_TYPE component)
Returns an update for the complete component.

Parameters:
component - the component to be updated.


wingS Swings ;-)