Class CalendarEvent

All Implemented Interfaces:
EventListener, IMessageBox, IComponent, ICustomDataProvider, IGProp<GProp<?>[]>, IPropCnr, IUIComp, IUIBooleanSelectionComp, IUISelectionComp, IVSComponentListener, IVSComponentState, IVSFieldListener, Cloneable
Direct Known Subclasses:
ECalendarEvent

public class CalendarEvent extends UIComp implements IUIBooleanSelectionComp
A (sub)calendar list event.
  • Constructor Details

    • CalendarEvent

      public CalendarEvent()
      Creates the abstract styles property container without a name. The name must be set in all cases using the setPropertyAtom call.
    • CalendarEvent

      public CalendarEvent(Atom propertyAtom)
      Creates the abstract styles property container with the specified name. All system-reserved names for components begins with "$".
      Parameters:
      propertyAtom - the name of the component, unique within it's parent.
  • Method Details

    • getDeviceType

      public int getDeviceType()
      Gets the device type supported.
      Specified by:
      getDeviceType in interface IUIComp
      Returns:
      zero for both mobile and desktop.
    • getApproximateSize

      public Size getApproximateSize() throws IllegalStateException
      Gets the approximate size.
      Specified by:
      getApproximateSize in class UIComp
      Returns:
      The approximate size is zero as there is not really an implementation for layout other than the one provided by the calendar list itself.
      Throws:
      IllegalStateException - If called outside of the Designer, e.g. from the Server.
    • getSelectionPropAtom

      public Atom getSelectionPropAtom()
      Description copied from interface: IUISelectionComp
      Returns the selection property atom for verification of selection changes.

      This method is used by the framework in UIComp to fire selection events when the property value changes.

      Specified by:
      getSelectionPropAtom in interface IUISelectionComp
      Returns:
      The atom of the selection property, or null if a selection property is not used.
    • getSelectionListenerHandler

      public GenericListener<IUISelectionListener> getSelectionListenerHandler(boolean doCreate)
      Description copied from interface: IUISelectionComp
      Returns the generic selection listener.
      Specified by:
      getSelectionListenerHandler in interface IUISelectionComp
      Parameters:
      doCreate - Create the listener handler if it doesn't exist, false not to.
      Returns:
      The selection listener handler, or null if not created.
    • getSelectionType

      public int getSelectionType()
      Description copied from interface: IUISelectionComp
      Gets the selection type of the component.
      Specified by:
      getSelectionType in interface IUISelectionComp
      Returns:
      A value indicating the selection capability as the SELECTION_TYPE_* values define.
    • getSelection

      public IUISelection getSelection()
      Description copied from interface: IUISelectionComp
      Gets the current selection of the component.
      Specified by:
      getSelection in interface IUISelectionComp
      Returns:
      The current selection of the component.
    • getOnUISelectionMethod

      public Method getOnUISelectionMethod()
      Description copied from interface: IUISelectionComp
      Returns the method to use for onUISelection notifications that is attached to this selection component. The method name is not important, but must have the annotation and signature:

      @OnUISelection(name = "some/property")
      public void onUISelection(UISelectionEvent event)

      Specified by:
      getOnUISelectionMethod in interface IUISelectionComp
      Returns:
      The method, or null if none is registered.
    • isSelected

      public boolean isSelected()
      Description copied from interface: IUIBooleanSelectionComp
      Returns the selection state.
      Specified by:
      isSelected in interface IUIBooleanSelectionComp
      Specified by:
      isSelected in interface IUISelectionComp
      Returns:
      true if selected, false if unselected.
    • isUnselected

      public boolean isUnselected()
      Description copied from interface: IUIBooleanSelectionComp
      Returns if the selection is not set.
      Specified by:
      isUnselected in interface IUIBooleanSelectionComp
      Returns:
      true if unselected, false if selected.
    • isON

      public boolean isON()
      Description copied from interface: IUIBooleanSelectionComp
      Returns if the selection is "on".
      Specified by:
      isON in interface IUIBooleanSelectionComp
      Returns:
      true if on, false if off.
    • isOFF

      public boolean isOFF()
      Description copied from interface: IUIBooleanSelectionComp
      Returns if the selection is "off".
      Specified by:
      isOFF in interface IUIBooleanSelectionComp
      Returns:
      true if off, false if on.
    • setSelection

      public boolean setSelection(boolean isSelected)
      Description copied from interface: IUIBooleanSelectionComp
      Sets the selection.
      Specified by:
      setSelection in interface IUIBooleanSelectionComp
      Parameters:
      isSelected - The selected state.
      Returns:
      true if state is changed, false for no change.