org.rapla.gui
Class RaplaGUIComponent
java.lang.Object
org.rapla.facade.RaplaComponent
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.
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 |
RaplaGUIComponent
public RaplaGUIComponent(RaplaContext context)
throws RaplaException
- Throws:
RaplaException
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.