org.ujoframework.core
Class UjoActionImpl

java.lang.Object
  extended by org.ujoframework.core.UjoActionImpl
All Implemented Interfaces:
UjoAction

public class UjoActionImpl
extends java.lang.Object
implements UjoAction

A default implementation of the UjoAction.

Author:
Pavel Ponec

Field Summary
 
Fields inherited from interface org.ujoframework.UjoAction
ACTION_CLONE, ACTION_COPY, ACTION_CSV_EXPORT, ACTION_CSV_IMPORT, ACTION_RESBUNDLE_EXPORT, ACTION_RESBUNDLE_IMPORT, ACTION_TABLE_SHOW, ACTION_TO_STRING, ACTION_UNDEFINED, ACTION_XML_ELEMENT, ACTION_XML_EXPORT, ACTION_XML_IMPORT, ACTION_ZERO_REPLACE, DUMMY
 
Constructor Summary
UjoActionImpl(int type)
           
UjoActionImpl(int type, java.lang.Object context)
           
UjoActionImpl(java.lang.Object context)
           
 
Method Summary
 java.lang.Object getContext()
          Returns a conetxt of the action.
 int getType()
          Returns a type of the action.
 java.lang.String toString()
          String value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UjoActionImpl

public UjoActionImpl(int type,
                     java.lang.Object context)

UjoActionImpl

public UjoActionImpl(java.lang.Object context)

UjoActionImpl

public UjoActionImpl(int type)
Method Detail

getType

public final int getType()
Returns a type of the action. The default type is ACTION_UNDEFINED.
The number can be useful for a resolution of an action for a different purpose (e.g. export to 2 different XML files).

Specified by:
getType in interface UjoAction

getContext

public final java.lang.Object getContext()
Returns a conetxt of the action. The value is dedicated to a user usage and the value can be null.

Specified by:
getContext in interface UjoAction

toString

public java.lang.String toString()
String value

Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.