Class EUIDateTime

All Implemented Interfaces:
IShowJavaSource, ILinkCapable, IJavaMethodLinkEnabler, IUIComponentLinkEnabler, IVSFieldLinkEnabler, IEImagePreview, IEUIComp, IEUICompBase, IEUICompCommon, IAddUICompProvider<EUIDateTime>, IDateTimeTypesProvider, IExtendsSelection, IPropDesigner, IPropRenameable, ITransferContainerProps, IStylesFilter, EventListener, IFocusComp, IMessageBox, IComponent, ICustomDataProvider, IGProp<GProp<?>[]>, IPropCnr, IUIDateTime, IUIComp, IUICompRelativeTarget, IUIFocusComp, IUIHint, IUILabelForTarget, IUIDateTimeComponent, IUINullableValueComponent, IUIValueComponent, IVSComponentListener, IVSComponentState, IVSFieldListener, Cloneable, org.eclipse.core.runtime.IAdaptable

Date/Time UI component.
Author:
Mikael Andersson
  • Constructor Details

    • EUIDateTime

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

      public EUIDateTime(Atom propertyAtom)
      Creates the 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

    • createStyles

      protected Styles createStyles()
      Creates the Styles container (can be overridden by Designer to create EditorStyles).
      Overrides:
      createStyles in class UIComp
    • addPredefinedProps

      protected void addPredefinedProps() throws PropException
      Adds the predefined containers for identifications, fields and actions. This method is overridden fully by the Editor versions of the class.
      Overrides:
      addPredefinedProps in class PropCnr
      Throws:
      PropException - for property exceptions.
    • getPredefinedProps

      public void getPredefinedProps()
      Gets the references to predefined properties.
      Overrides:
      getPredefinedProps in class UIComp
    • getImagePreview

      public ImagePreview getImagePreview()
      Gets the image preview.
      Specified by:
      getImagePreview in interface IEImagePreview
    • getDesigner

      public UICompDesignerProp getDesigner()
      Gets the Designer Extension for Properties.
      Specified by:
      getDesigner in interface IEUIComp
      Specified by:
      getDesigner in interface IPropDesigner
      Returns:
      The instance of the Designer Extension.
    • getCNImage

      public org.eclipse.swt.graphics.Image getCNImage(boolean isMobile)
      Gets the image for the Common Navigator.
      Specified by:
      getCNImage in interface IEUICompBase
      Parameters:
      isMobile - The mobile theme flag.
      Returns:
      Image or null if there is no image.
    • getCNDescriptionType

      public String getCNDescriptionType()
      Provide a type description for the status bar view, if available.
      Specified by:
      getCNDescriptionType in interface IEUICompBase
      Specified by:
      getCNDescriptionType in interface ITransferContainerProps
      Returns:
      A type description for the status bar view, or null if not available.
    • getCreator

      public IUICompCreator<EUIDateTime> getCreator()
      Retrieves the instance of the UI component creation interface.
      Specified by:
      getCreator in interface IAddUICompProvider<EUIDateTime>
    • clone

      public EUIDateTime clone()
      Clone must be overridden.
      Overrides:
      clone in class UIComp
    • getPossibleChildren

      public Class<?>[] getPossibleChildren()
      Gets the acceptable children property classes that can be used in conjunction with e.g. a Paste operation.
      Specified by:
      getPossibleChildren in interface IPropCnr
      Overrides:
      getPossibleChildren in class PropCnr
      Returns:
      An array containing the classes of possible children, or null for no support.
    • getStylesName

      public String getStylesName(EditorStyles styles)
      The name of this styles property for the common navigator.
      Specified by:
      getStylesName in interface IStylesFilter
      Parameters:
      styles - The Styles property container.
    • getSupportedStyles

      public String[] getSupportedStyles(EditorStyles styles)
      Gets the groups supported by the component.
      Specified by:
      getSupportedStyles in interface IStylesFilter
      Parameters:
      styles - The Styles property container.
      Returns:
      An array of property names of the styles. Names beginning with '*' indicates it's a group.
    • getExtendsPossibleClasses

      public Class<?>[] getExtendsPossibleClasses()
      Gets the possible classes this container supports for the Extends Framework. The default implementation is to return null.
      Specified by:
      getExtendsPossibleClasses in interface IPropCnr
      Overrides:
      getExtendsPossibleClasses in class PropCnr
      Returns:
      List of supported classes, or null for none.
    • getSelectPropDialogTitle

      public String getSelectPropDialogTitle()
      Gets the title for selection dialog.
      Specified by:
      getSelectPropDialogTitle in interface IExtendsSelection
    • getSelectPropViewerFilter

      public org.eclipse.jface.viewers.ViewerFilter getSelectPropViewerFilter()
      Gets the viewer filter for the tree in the dialog for selecting extends property name.
      Specified by:
      getSelectPropViewerFilter in interface IExtendsSelection
    • getSupportedDataTypes

      public GDateTime.Type[] getSupportedDataTypes(Atom editedProperty)
      Returns the list of supported datatypes.
      Specified by:
      getSupportedDataTypes in interface IDateTimeTypesProvider
      Parameters:
      editedProperty - The edited property
    • getMethodReferenceAnnotationTypes

      public AnnotationType[] getMethodReferenceAnnotationTypes()
      Returns the annotation types for the method reference(s).
      Specified by:
      getMethodReferenceAnnotationTypes in interface IJavaMethodLinkEnabler
      Returns:
      An array with the annotations supported.
    • isLinkCapable

      public org.eclipse.core.runtime.IStatus isLinkCapable(LinkData data)
      Returns if this property container could potentially be link capable.

      This call is done many times during drag-drop and must be very fast and not cause too much garbage collection.

      Specified by:
      isLinkCapable in interface IEUIComp
      Specified by:
      isLinkCapable in interface IJavaMethodLinkEnabler
      Specified by:
      isLinkCapable in interface ILinkCapable
      Specified by:
      isLinkCapable in interface IVSFieldLinkEnabler
      Parameters:
      data - The link data.
      Returns:
      The status of capability of the operation.
    • getLinkOperations

      public Collection<ILinkOperation> getLinkOperations(LinkData data)
      Called when the drag-drop is to be performed (link or paste-link menu item). The link-capable instance fills in only what it handles.
      Specified by:
      getLinkOperations in interface IEUIComp
      Specified by:
      getLinkOperations in interface IJavaMethodLinkEnabler
      Specified by:
      getLinkOperations in interface ILinkCapable
      Specified by:
      getLinkOperations in interface IVSFieldLinkEnabler
      Parameters:
      data - The link data.
      Returns:
      The list of operations required.
    • verify

      public boolean verify(PropVerification verification)
      Verifies this property container. The check performed is the extension of classes and that no circular reference is present.
      Specified by:
      verify in interface IGProp<GProp<?>[]>
      Overrides:
      verify in class UIComp
      Parameters:
      verification - The property verification class.
      Returns:
      true if verification should proceed, false if disposed of and verification should not take place.
    • onValueChanged

      public void onValueChanged(VSField field, Value value, GProp<?> trigger, IPostEventProcessing postProcessing)
      Called when the field value is set.

      Components must override to provide the implementation when they are not implementing IPlainTextComponent, in this case the default implementation transports the field string value to this text components plain text.

      Specified by:
      onValueChanged in interface IVSFieldListener
      Overrides:
      onValueChanged in class UIDateTime
      Parameters:
      field - The VS field.
      value - The value, never null, but value.isNull() could be true.
      trigger - The trigger property that may be null.
      postProcessing - Post-processing instance.
    • getTransferProps

      public Object[] getTransferProps()
      Returns the list of properties that are transferable between layout managers.
      Specified by:
      getTransferProps in interface ITransferContainerProps
      Returns:
      The list of String's or Atom's that are transferable, null for none.