com.ibm.commons.swt.controls
Class UIUpdater

java.lang.Object
  extended by com.ibm.commons.swt.controls.UIUpdater

public abstract class UIUpdater
extends java.lang.Object

This class is responsible for updating the UI.


Constructor Summary
UIUpdater()
           
 
Method Summary
 void dispose()
           
 void enable(org.eclipse.swt.widgets.Control c, boolean enable)
          Enable a component.
 boolean isUpdateNecessary()
           
 void select(org.eclipse.swt.widgets.Button button, boolean select)
          Select a button.
 void setParent(org.eclipse.swt.widgets.Control parent)
           
 void setText(org.eclipse.swt.widgets.Label label, java.lang.String text)
          Change the text of a label.
abstract  void updateControls()
           
 void visible(org.eclipse.swt.widgets.Control c, boolean visible)
          Set visible/invisible a component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIUpdater

public UIUpdater()
Method Detail

setParent

public void setParent(org.eclipse.swt.widgets.Control parent)
Parameters:
parent -

dispose

public void dispose()

isUpdateNecessary

public boolean isUpdateNecessary()

updateControls

public abstract void updateControls()

enable

public void enable(org.eclipse.swt.widgets.Control c,
                   boolean enable)
Enable a component. Because this can be called from a separate thread, please use that function instead of directly call the component function.

Parameters:
c - the component to enable
enable - the new component enabled state

visible

public void visible(org.eclipse.swt.widgets.Control c,
                    boolean visible)
Set visible/invisible a component. Because this can be called from a separate thread, please use that function instead of directly call the component function.

Parameters:
c - the component to enable
enable - the new component enabled state

select

public void select(org.eclipse.swt.widgets.Button button,
                   boolean select)
Select a button. This function is designed to be used with ToggleButtons and Checkboxes.

Parameters:
button - the button to select
select - the new component selected state

setText

public void setText(org.eclipse.swt.widgets.Label label,
                    java.lang.String text)
Change the text of a label.

Parameters:
label - the label to use
text - the new component text