Package com.im.ijc.core.api.url
Class URLTask
- java.lang.Object
-
- com.im.ijc.core.api.url.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 Summary
Constructors Constructor Description URLTask()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static URLTask
getAction(java.lang.String name)
Get instance for action nameabstract java.lang.String
getCodeName()
java.awt.Component
getCustomizer(URLProperties properties, URLStatus status)
Get panel with customizer if customizer is availableabstract java.lang.String
getDescription()
get description in new action wizardabstract java.lang.String
getDisplayName()
boolean
hasCustomizer()
abstract boolean
isEnabled(URLContent content)
check if the action is supported by ty contentabstract void
perform(URLContent content)
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
-