org.scohen.juploadr.prefs
Class BaseConfigurationForm

java.lang.Object
  extended byComposite
      extended byorg.scohen.juploadr.prefs.BaseConfigurationForm
All Implemented Interfaces:
ConfigurationForm
Direct Known Subclasses:
ConnectionForm, FlickrForm, MetadataForm, ZoomrAccountForm, ZooomrMetadataForm

public abstract class BaseConfigurationForm
extends Composite
implements ConfigurationForm

See Also:
Serialized Form

Field Summary
protected  ImageUploadApi api
           
protected  ConfigurationDialog parent
           
 
Constructor Summary
BaseConfigurationForm(Composite parent)
           
 
Method Summary
 void accountChanged()
           
abstract  java.lang.String getFormName()
          Get a short name for the preferences this form class provides access to.
protected abstract  void initUI()
           
protected  void resetUI()
           
abstract  void saveChanges()
          Save any changes made using the form.
 void setConfigurationDialog(ConfigurationDialog dialog)
           
abstract  Fault validateChanges()
          Validate any changes made, returning an array of user-friendly error messages if there is a problem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected ConfigurationDialog parent

api

protected ImageUploadApi api
Constructor Detail

BaseConfigurationForm

public BaseConfigurationForm(Composite parent)
Method Detail

saveChanges

public abstract void saveChanges()
Description copied from interface: ConfigurationForm
Save any changes made using the form. If the form internally tracks whether changes have been made, this call may be a no-op.

Specified by:
saveChanges in interface ConfigurationForm

validateChanges

public abstract Fault validateChanges()
Description copied from interface: ConfigurationForm
Validate any changes made, returning an array of user-friendly error messages if there is a problem. If validation passes, then returns null or an empty array.

Specified by:
validateChanges in interface ConfigurationForm
Returns:

initUI

protected abstract void initUI()

getFormName

public abstract java.lang.String getFormName()
Description copied from interface: ConfigurationForm
Get a short name for the preferences this form class provides access to.

Specified by:
getFormName in interface ConfigurationForm
Returns:
a short name for the preferences this form provides access to.

setConfigurationDialog

public void setConfigurationDialog(ConfigurationDialog dialog)
Specified by:
setConfigurationDialog in interface ConfigurationForm

accountChanged

public void accountChanged()
Specified by:
accountChanged in interface ConfigurationForm

resetUI

protected void resetUI()