Trait

atom.app

LocalizedActivity

Related Doc: package app

Permalink

trait LocalizedActivity extends Activity with EventHandler[LocaleChangeEvent]

Supposed to be used for activities which presents information according to user's locale. It automatically registers in event bus to handle LocaleChangeEvent.

Linear Supertypes
EventHandler[LocaleChangeEvent], EventListener, Activity, Context, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LocalizedActivity
  2. EventHandler
  3. EventListener
  4. Activity
  5. Context
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def createView(): Unit

    Permalink

    Create view of the activity.

    Create view of the activity.

    Attributes
    protected
  2. abstract def updateControllers(locale: Locale): Unit

    Permalink

    Initialize or update controlles according to locale.

    Initialize or update controlles according to locale.

    locale

    current user's locale

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def applyChanges(events: List[PropertyChangeEvent]): Unit

    Permalink

    Apply changes to entity according to existing hierarchy.

    Apply changes to entity according to existing hierarchy.

    events

    property change events that should be applied

    Definition Classes
    Activity
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def destroyJcrSession(): Unit

    Permalink

    Destroy a session for Java content repository.

    Destroy a session for Java content repository.

    Definition Classes
    Context
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(o: Any): Boolean

    Permalink
    Definition Classes
    ActivityContext → AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def findById(identity: String): Entity

    Permalink

    Finds a entity that was identified by the id attribute that was processed in #onCreate.

    Finds a entity that was identified by the id attribute that was processed in #onCreate.

    identity

    id attribute that was processed

    returns

    the entity if found or null otherwise

    Definition Classes
    Activity
  12. final def fireEvent[E <: EventObject](event: E): Unit

    Permalink

    Fire event for all registered handlers.

    Fire event for all registered handlers.

    E

    event type

    event

    event

    Definition Classes
    Context
  13. final def getActivityInfo: ActivityInfo

    Permalink

    Retrieve detailed activity information.

    Retrieve detailed activity information.

    returns

    detailed activity information

    Definition Classes
    Context
  14. final def getActivityThread: ActivityThread

    Permalink

    Retrieve an activity thread that corresponding for this activity.

    Retrieve an activity thread that corresponding for this activity.

    returns

    an activity thread that corresponding for this activity

    Definition Classes
    Context
  15. final def getChanges: List[PropertyChangeEvent]

    Permalink

    Provide list of property change events.

    Provide list of property change events.

    returns

    list of property change events

    Definition Classes
    Activity
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def getClassLoader: ClassLoader

    Permalink

    Retrieve class loader for external resources.

    Retrieve class loader for external resources.

    returns

    class loader for external resources

    Definition Classes
    Context
  18. final def getIntent: Intent

    Permalink

    Retrieve an intent that created this activity.

    Retrieve an intent that created this activity.

    returns

    an intent that created this activity

    Definition Classes
    Activity
  19. final def getJcrSession: Session

    Permalink

    Provide a session for Java content repository.

    Provide a session for Java content repository.

    returns

    JCR session

    Definition Classes
    Context
    Annotations
    @throws( ... )
    Exceptions thrown

    RepositoryException if if no suitable repository is found or another error occurs.

  20. final def getNewJcrSession: Session

    Permalink

    Provide a session for Java content repository.

    Provide a session for Java content repository.

    returns

    JCR session

    Definition Classes
    Context
    Annotations
    @throws( ... )
    Exceptions thrown

    RepositoryException if if no suitable repository is found or another error occurs.

  21. final def getParent: Activity

    Permalink

    Retrieve an activity that initialize current activity creation.

    Retrieve an activity that initialize current activity creation.

    returns

    an activity that initialize current activity creation

    Definition Classes
    Activity
  22. def getRegisteredEventHandlers: Set[HandlerRegistration]

    Permalink

    Get set of handlers that this activity registered.

    Get set of handlers that this activity registered.

    returns

    Set of registered handlers.

    Attributes
    protected
    Definition Classes
    Context
  23. final def getWindow: Window

    Permalink

    Retrieve the current Window for the activity.

    Retrieve the current Window for the activity. This can be used to directly access parts of the Window API that are not available through Activity/Screen.

    returns

    the current window, or null if the activity is not visual

    Definition Classes
    Activity
  24. def handle(event: LocaleChangeEvent): Unit

    Permalink

    Handle event.

    Handle event.

    event

    an event

    Definition Classes
    LocalizedActivityEventHandler
  25. final def handleEvent(identity: String, eventType: Int): Unit

    Permalink

    Call corresponding entity attached EventListener.

    Call corresponding entity attached EventListener.

    identity

    entity identity that fire event

    eventType

    an event type

    Definition Classes
    Activity
  26. def hashCode(): Int

    Permalink
    Definition Classes
    ActivityContext → AnyRef → Any
  27. def inflate(path: String): Entity

    Permalink

    Instantiates a layout XML file into its corresponding Entity objects.

    Instantiates a layout XML file into its corresponding Entity objects.

    path

    path to the XML resource view view

    returns

    the root View of the inflated hierarchy

    Definition Classes
    Context
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(notification: Notification): Unit

    Permalink

    Post an notification to be notified.

    Post an notification to be notified.

    notification

    the description of the event to notify

    Definition Classes
    Context
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. def onCallback(result: Intent): Unit

    Permalink

    Called when the activity is retrieving result from called before activity.

    Called when the activity is retrieving result from called before activity.

    result

    intent with result data

    Attributes
    protected[atom.app]
    Definition Classes
    Activity
  34. final def onCreate(): Unit

    Permalink

    Called when the activity is starting.

    Called when the activity is starting. This is where most initialization should go: calling #setContentView(Entity) to inflate the activity's UI, using #findById(String) to pragmatically interact with views in the UI.

    Attributes
    protected[atom.app]
    Definition Classes
    LocalizedActivityActivity
  35. def onDestroy(): Unit

    Permalink

    Perform any final cleanup before an activity is destroyed.

    Perform any final cleanup before an activity is destroyed. This can happen either because the activity is finishing on it, or because the system is temporarily destroying this instance of the activity to save space.

    Derived classes must call through to the super class's implementation of this method. If they do not, an exception will be thrown.

    Attributes
    protected[atom.app]
    Definition Classes
    Activity
  36. final def registerEventHandler[E <: EventObject](event: Class[E], handler: EventHandler[E]): () ⇒ Unit

    Permalink

    Register system event handler.

    Register system event handler.

    E

    event type

    event

    event class

    handler

    event handler instance

    returns

    the handler registration, can be stored in order to remove the handler later

    Definition Classes
    Context
  37. final def setActivityInfo(info: ActivityInfo): Unit

    Permalink

    Sets detailed activity information.

    Sets detailed activity information.

    info

    detailed activity information

    Definition Classes
    Context
  38. final def setActivityThread(thread: ActivityThread): Unit

    Permalink

    Sets an activity thread that corresponding for this activity.

    Sets an activity thread that corresponding for this activity.

    thread

    an activity thread that corresponding for this activity

    Definition Classes
    Context
  39. final def setClassLoader(loader: ClassLoader): Unit

    Permalink

    Sets class loader for external resources.

    Sets class loader for external resources.

    loader

    class loader for external resources

    Definition Classes
    Context
  40. final def setContentView(path: String): Unit

    Permalink

    Set the activity content to an explicit view.

    Set the activity content to an explicit view. This view is placed directly into the activity's view hierarchy. It can itself be a complex view hierarchy. When calling this method, the layout parameters of the specified view are ignored.

    path

    path to the XML resource view

    Definition Classes
    Activity
  41. final def setContentView(view: Entity): Unit

    Permalink

    Set the activity content to an explicit view.

    Set the activity content to an explicit view. This view is placed directly into the activity's view hierarchy. It can itself be a complex view hierarchy. When calling this method, the layout parameters of the specified view are ignored.

    view

    the desired content to display

    Definition Classes
    Activity
  42. def setContextPath(path: String): Unit

    Permalink

    Sets list of java package names that contain schema derived class and/or java to schema (JAXB-annotated) mapped classes.

    Sets list of java package names that contain schema derived class and/or java to schema (JAXB-annotated) mapped classes.

    path

    list of java package names that contain schema derived class and/or java to schema (JAXB-annotated) mapped classes

    Definition Classes
    Context
  43. final def setController(controller: Controller): Unit

    Permalink

    Sets resource controller reference.

    Sets resource controller reference.

    controller

    a resource controller

    Definition Classes
    Activity
  44. final def setIntent(anIntent: Intent): Unit

    Permalink

    Sets an intent that created this activity.

    Sets an intent that created this activity.

    anIntent

    an intent that created this activity

    Definition Classes
    Activity
  45. final def setParent(activity: Activity): Unit

    Permalink

    Sets activity that initialize current activity creation.

    Sets activity that initialize current activity creation.

    activity

    an activity that initialize current activity creation

    Definition Classes
    Activity
  46. final def setTitle(title: String): Unit

    Permalink

    Change the title associated with this activity.

    Change the title associated with this activity. If this is a top-level activity, the title for its window will change. If it is an embedded activity, the parent can do whatever it wants with it.

    title

    title associated with this activity

    Definition Classes
    Activity
  47. final def setType(aType: String): Unit

    Permalink

    Change the type associated with this activity.

    Change the type associated with this activity. If this is a top-level activity, the type for its window will change.

    aType

    title associated with this activity

    Definition Classes
    Activity
  48. final def setWindow(path: String): Unit

    Permalink

    Provide ability to set display after de-serialization.

    Provide ability to set display after de-serialization.

    path

    path to the XML resource view

    Definition Classes
    Activity
  49. final def setWindow(display: Window): Unit

    Permalink

    Provide ability to set display after de-serialization.

    Provide ability to set display after de-serialization.

    display

    window to set

    Definition Classes
    Activity
  50. final def startActivity(intent: Intent): Unit

    Permalink

    Launch a new activity.

    Launch a new activity. You will not receive any information about when the activity exits.

    intent

    the description of the activity to start

    Definition Classes
    Context
  51. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  52. def toString(): String

    Permalink
    Definition Classes
    ActivityContext → AnyRef → Any
  53. final def trackChanges(): Unit

    Permalink

    Enable tracking changes for the entity.

    Enable tracking changes for the entity.

    Definition Classes
    Activity
  54. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from EventListener

Inherited from Activity

Inherited from Context

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped