net.sf.magicproject.clickable.action
Class ToStringHelper

java.lang.Object
  extended by net.sf.magicproject.clickable.action.ToStringHelper

public class ToStringHelper
extends java.lang.Object

Since:
0.93
Author:
Fabrice Daugan

Constructor Summary
ToStringHelper()
           
 
Method Summary
static java.lang.String toHtmlString(Ability ability, ContextEventListener context)
          Return the HTML code representing an action list.
static java.lang.String toHtmlString(Ability ability, MAction[] actions, ContextEventListener context)
          Return the HTML code representing an action list.
static void toHtmlString(java.lang.StringBuilder buffer, Ability ability, MAction[] actions, ContextEventListener context)
          Return the HTML code representing an action list.
static java.lang.String toString(Ability ability)
          Return the toString() of the given ability.
static void toString(java.lang.StringBuilder buffer, Ability ability, MAction[] actions)
          Return the HTML code representing an action list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToStringHelper

public ToStringHelper()
Method Detail

toHtmlString

public static java.lang.String toHtmlString(Ability ability,
                                            ContextEventListener context)
Return the HTML code representing an action list.

Parameters:
ability - the ability owning these actions.
context - the context needed by event activated
Returns:
the HTML code representing this ability.

toHtmlString

public static void toHtmlString(java.lang.StringBuilder buffer,
                                Ability ability,
                                MAction[] actions,
                                ContextEventListener context)
Return the HTML code representing an action list.

Parameters:
buffer - the string buffer used to build the HTML code of this ability.
ability - the ability owning these actions.
actions - the actions to display.
context - the context needed by event activated

toHtmlString

public static java.lang.String toHtmlString(Ability ability,
                                            MAction[] actions,
                                            ContextEventListener context)
Return the HTML code representing an action list.

Parameters:
ability - the ability owning these actions.
actions - the actions to display.
context - the context needed by event activated
Returns:
the HTML code representing this ability.

toString

public static java.lang.String toString(Ability ability)
Return the toString() of the given ability.

Parameters:
ability - the ability owning these actions.
Returns:
the toString() of the given ability.

toString

public static void toString(java.lang.StringBuilder buffer,
                            Ability ability,
                            MAction[] actions)
Return the HTML code representing an action list.

Parameters:
buffer - the string buffer used to build the HTML code of this ability.
ability - the ability owning these actions.
actions - the actions to display.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.