Class URLTask


  • public abstract class URLTask
    extends java.lang.Object
    Action for a URLContent. Implementation are registered in META-INF/services/com.im.ijc.core.api.url.URLTask
    • Constructor Detail

      • URLTask

        public URLTask()
    • Method Detail

      • getCodeName

        public abstract java.lang.String getCodeName()
        Returns:
        The unique name (property StandardProperty.ACTION) using in url to identifi action
      • getDisplayName

        public abstract java.lang.String getDisplayName()
      • getDescription

        public abstract java.lang.String getDescription()
        get description in new action wizard
      • perform

        public abstract void perform​(URLContent content)
      • isEnabled

        public abstract boolean isEnabled​(URLContent content)
        check if the action is supported by ty content
        Parameters:
        content - The p arameters for action
        Returns:
        Is the content enabled
      • getAction

        public static URLTask getAction​(java.lang.String name)
        Get instance for action name
        Parameters:
        name - The a ction name
        Returns:
        Null if no action was found
      • getCustomizer

        public java.awt.Component getCustomizer​(URLProperties properties,
                                                URLStatus status)
        Get panel with customizer if customizer is available
        Returns:
        Null if customizer is not available
      • hasCustomizer

        public boolean hasCustomizer()
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object