org.rapla.gui
Class DefaultPluginOption

java.lang.Object
  extended by org.rapla.facade.RaplaComponent
      extended by org.rapla.gui.RaplaGUIComponent
          extended by org.rapla.gui.DefaultPluginOption
All Implemented Interfaces:
Named, OptionPanel, RaplaWidget

public abstract class DefaultPluginOption
extends RaplaGUIComponent
implements OptionPanel


Field Summary
protected  JCheckBox activate
           
protected  Configuration config
           
protected  Preferences preferences
           
 
Fields inherited from class org.rapla.facade.RaplaComponent
childBundle
 
Constructor Summary
DefaultPluginOption(RaplaContext sm)
           
 
Method Summary
protected  void addChildren(DefaultConfiguration newConfig)
           
 void commit()
          commits the changes in the option Dialog.
protected  JPanel createPanel()
           
 JComponent getComponent()
           
abstract  String getDescriptorClassName()
           
 String getName(Locale locale)
           
protected  void readConfig(Configuration config)
           
 void setPreferences(Preferences preferences)
           
 void show()
          called when the option Panel is selected for displaying.
 
Methods inherited from class org.rapla.gui.RaplaGUIComponent
createRaplaCalendar, createRaplaTime, getCalendarOptions, getDateRenderer, getEditController, getFrameList, getInfoFactory, getMainComponent, getReservationController, getSessionMap, getTimeRenderer, isInvokedOnAWTEventQueue, showException, showWarning
 
Methods inherited from class org.rapla.facade.RaplaComponent
canModify, canUserAllocateSomething, checkServiceState, findDescriptor, getAppointmentFormater, getChildBundleName, getClientFacade, getContainer, getContext, getI18n, getIcon, getLocale, getLogger, getModification, getName, getPeriodModel, getQuery, getRaplaLocale, getService, getString, getStringAsHTML, getUpdateModule, getUser, getUserModule, isAdmin, isModifyPreferencesAllowed, isRegisterer, newEditablePreferences, setChildBundleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activate

protected JCheckBox activate

config

protected Configuration config

preferences

protected Preferences preferences
Constructor Detail

DefaultPluginOption

public DefaultPluginOption(RaplaContext sm)
                    throws RaplaException
Throws:
RaplaException
Method Detail

getDescriptorClassName

public abstract String getDescriptorClassName()

createPanel

protected JPanel createPanel()
                      throws RaplaException
Throws:
RaplaException

setPreferences

public void setPreferences(Preferences preferences)
Specified by:
setPreferences in interface OptionPanel
See Also:
OptionPanel.setPreferences(org.rapla.entities.configuration.Preferences)

commit

public void commit()
            throws RaplaException
Description copied from interface: OptionPanel
commits the changes in the option Dialog.

Specified by:
commit in interface OptionPanel
Throws:
RaplaException
See Also:
OptionPanel.commit()

addChildren

protected void addChildren(DefaultConfiguration newConfig)

readConfig

protected void readConfig(Configuration config)

show

public void show()
          throws RaplaException
Description copied from interface: OptionPanel
called when the option Panel is selected for displaying.

Specified by:
show in interface OptionPanel
Throws:
RaplaException
See Also:
OptionPanel.show()

getComponent

public JComponent getComponent()
Specified by:
getComponent in interface RaplaWidget
See Also:
RaplaWidget.getComponent()

getName

public String getName(Locale locale)
Specified by:
getName in interface Named
See Also:
Named.getName(java.util.Locale)


Copyright © 2000-2006 Rapla Team. All Rights Reseserved.