org.rapla.gui
Class RaplaGUIComponent

java.lang.Object
  extended by org.rapla.facade.RaplaComponent
      extended by org.rapla.gui.RaplaGUIComponent
Direct Known Subclasses:
DefaultPluginOption, RaplaAction

public class RaplaGUIComponent
extends RaplaComponent

Base class for most components in the gui package. Eases access to frequently used services, e.g. I18nBundle. It also provides some methods for Exception displaying.


Field Summary
 
Fields inherited from class org.rapla.facade.RaplaComponent
childBundle
 
Constructor Summary
RaplaGUIComponent(RaplaContext context)
           
 
Method Summary
 RaplaCalendar createRaplaCalendar()
           
 RaplaTime createRaplaTime()
           
 CalendarOptions getCalendarOptions()
           
protected  DateRenderer getDateRenderer()
          lookup DateRenderer from the serviceManager
protected  EditController getEditController()
           
protected  FrameControllerList getFrameList()
          lookup FrameControllerList from the context
protected  InfoFactory getInfoFactory()
           
 Component getMainComponent()
           
protected  ReservationController getReservationController()
           
 Map getSessionMap()
           
protected  TimeRenderer getTimeRenderer()
           
 boolean isInvokedOnAWTEventQueue()
           
 void showException(Exception ex, Component owner)
          Creates a new ErrorDialog with the specified owner and displays the exception
 void showWarning(String warning, Component owner)
          Creates a new ErrorDialog with the specified owner and displays the waring
 
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
 

Constructor Detail

RaplaGUIComponent

public RaplaGUIComponent(RaplaContext context)
                  throws RaplaException
Throws:
RaplaException
Method Detail

getFrameList

protected final FrameControllerList getFrameList()
lookup FrameControllerList from the context


showException

public void showException(Exception ex,
                          Component owner)
Creates a new ErrorDialog with the specified owner and displays the exception

Parameters:
ex - the exception that should be displayed.
owner - the exception that should be displayed. Can be null, but providing a parent-component will lead to a more appropriate display.

isInvokedOnAWTEventQueue

public boolean isInvokedOnAWTEventQueue()

showWarning

public void showWarning(String warning,
                        Component owner)
Creates a new ErrorDialog with the specified owner and displays the waring


createRaplaCalendar

public RaplaCalendar createRaplaCalendar()

getDateRenderer

protected final DateRenderer getDateRenderer()
lookup DateRenderer from the serviceManager


getTimeRenderer

protected final TimeRenderer getTimeRenderer()

createRaplaTime

public RaplaTime createRaplaTime()

getCalendarOptions

public CalendarOptions getCalendarOptions()

getSessionMap

public Map getSessionMap()

getInfoFactory

protected InfoFactory getInfoFactory()

getEditController

protected EditController getEditController()

getReservationController

protected ReservationController getReservationController()

getMainComponent

public Component getMainComponent()


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