Class CalendarEvent

    • Constructor Detail

      • 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 Detail

      • 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 java.lang.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:
        java.lang.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.
      • 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.
      • getOnUISelectionMethod

        public java.lang.reflect.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.
      • 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.