com.im.ijc.core/1 5.9.4

com.im.ijc.core.api.url
Class URLTask

java.lang.Object
  extended by com.im.ijc.core.api.url.URLTask

public abstract class URLTask
extends Object

Action for a URLContent. Implementation are registered in META-INF/services/com.im.ijc.core.api.url.URLTask


Constructor Summary
URLTask()
           
 
Method Summary
static URLTask getAction(String name)
          Get instance for action name
abstract  String getCodeName()
           
 Component getCustomizer(URLProperties properties, URLStatus status)
          Get panel with customizer if customizer is available
abstract  String getDescription()
          get description in new action wizard
abstract  String getDisplayName()
           
 boolean hasCustomizer()
           
abstract  boolean isEnabled(URLContent content)
          check if the action is supported by ty content
abstract  void perform(URLContent content)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URLTask

public URLTask()
Method Detail

getCodeName

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

getDisplayName

public abstract String getDisplayName()

getDescription

public abstract 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(String name)
Get instance for action name

Parameters:
name - The a ction name
Returns:
Null if no action was found

getCustomizer

public 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 String toString()
Overrides:
toString in class Object

com.im.ijc.core/1 5.9.4