org.exoplatform.social.webui.space
Class UISpaceApplication

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIForm
              extended by org.exoplatform.social.webui.space.UISpaceApplication

public class UISpaceApplication
extends org.exoplatform.webui.form.UIForm

UISpaceApplication.java used for adding/ removing applications. Created by The eXo Platform SARL

Since:
Sep 12, 2008
Author:
dang.tung

Nested Class Summary
static class UISpaceApplication.AddApplicationActionListener
          Triggers this action when user clicks on add button
static class UISpaceApplication.InstallApplicationActionListener
          Handles the event broadcasted from .
static class UISpaceApplication.RemoveApplicationActionListener
          Triggers this action when user clicks on remove button
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
 
Fields inherited from class org.exoplatform.webui.form.UIForm
ACTION, SUBCOMPONENT_ID
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UISpaceApplication()
          Constructor.
 
Method Summary
 String getApplicationName(String appName)
          Gets the application name from the appName (applicationName:appId)
 List<org.exoplatform.application.registry.Application> getApplications()
          Gets application list
 String getAppName(String appId)
          Gets application name of space application when the display name of application is changed.
- If the label of application is changed then return new label.
- Else return display name of application.
 org.exoplatform.webui.core.UIPageIterator getUIPageIterator()
          Gets uiPageIterator.
 boolean isRemovable(String appId)
          Checks if an application is removable.
 void setValue(org.exoplatform.social.core.space.model.Space space)
          Sets space to work with
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, processRender, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, url
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UISpaceApplication

public UISpaceApplication()
                   throws Exception
Constructor.

Throws:
Exception
Method Detail

getApplications

public List<org.exoplatform.application.registry.Application> getApplications()
                                                                       throws Exception
Gets application list

Returns:
application list
Throws:
Exception

getApplicationName

public String getApplicationName(String appName)
Gets the application name from the appName (applicationName:appId)

Parameters:
appName -

setValue

public void setValue(org.exoplatform.social.core.space.model.Space space)
              throws Exception
Sets space to work with

Parameters:
space -
Throws:
Exception

getUIPageIterator

public org.exoplatform.webui.core.UIPageIterator getUIPageIterator()
Gets uiPageIterator.

Returns:
uiPageIterator

isRemovable

public boolean isRemovable(String appId)
Checks if an application is removable.

Parameters:
appId -
Returns:
true or false

getAppName

public String getAppName(String appId)
                  throws Exception
Gets application name of space application when the display name of application is changed.
- If the label of application is changed then return new label.
- Else return display name of application.

Parameters:
application -
Returns:
application name depend on the display name is changed or not.
Throws:
Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.