|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectyawda.data.model.application.CModule
This class represent a module of an application. A module is an element like a page, a frameset, a frame, a form, a button, a link and it can also represent an Action handler.
| Field Summary | |
static String |
A_HREF
Comment for A_HREF This module represent an html link (a) |
static String |
ACTION
Comment for ACTION This module represent a struts action
handler |
static String |
APPLICATION
Comment for APPLICATION This module represent an
Application, the root module is of this type. |
static String |
BLOCK
Comment for BLOCK This module represent an html block
(div, span, ...) |
static String |
BUTTON
Comment for BUTTON This module represent an html button
(input type="submit,button") |
static String |
CHECKBOX
Comment for CHECKBOX This module represent an html check
box (input type=checkbox) |
static String |
COMBOBOX
Comment for COMBOBOX This module represent an html
combo/list box(tag select) |
static String |
ERR_MSG
Comment for ERR_MSG This module represent an error message |
static String |
FILE
Comment for FILE This module represent a file |
static String |
FORM
Comment for FORM This module represent an html form |
static String |
FRAME
Comment for FRAME This module represent an html frame |
static String |
FRAMESET
Comment for FRAMESET This module represent an html
frameset |
static String |
IMAGE
Comment for IMAGE This module represent an html image tag |
static String |
LABEL
Comment for LABEL This module represent a multilanguage
resource |
static String |
PAGE
Comment for PAGE This module represent an html page/any
file type |
static String |
PORTLET
Comment for PORTLET This module represent a portlet |
static String |
RADIOBUTTON
Comment for RADIOBUTTON This module represent an html
radio button (input type=radio) |
static String |
REF_PORTLET
Comment for REF_PORTLET This module represent a reference
to a portlet |
static String |
SCRIPT
Comment for SCRIPT This module represent a java script
file or a java script tag in a PAGE |
static String |
TABLE
Comment for TABLE This module represent an html table |
static String |
TABLE_COLUMN
Comment for TABLE_COLUMN This module represent an html
table column (td) |
static String |
TABLE_HEADER
Comment for TABLE_HEADER This module represent an html
table row th |
static String |
TABLE_ROW
Comment for TABLE_ROW This module represent an html table
row tr |
static String |
TEXTAREA
Comment for TEXTAREA This module represent an html
textarea |
static String |
TEXTFIELD
Comment for TEXTFIELD This module represent an html input
field (input type=text) |
static String |
TREE
Comment for TREE This module represent a tree view |
static String |
TREE_ITEM
Comment for TREE_ITEM This module represent a tree view
node |
| Constructor Summary | |
CModule(String name,
String type,
boolean isPublic)
Create a new module |
|
CModule(String name,
String type,
boolean isPublic,
CModule parent)
Create a new module |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String APPLICATION
APPLICATION This module represent an
Application, the root module is of this type.
public static final String PAGE
PAGE This module represent an html page/any
file type
public static final String PORTLET
PORTLET This module represent a portlet
public static final String REF_PORTLET
REF_PORTLET This module represent a reference
to a portlet
public static final String FRAMESET
FRAMESET This module represent an html
frameset
public static final String FRAME
FRAME This module represent an html frame
public static final String BLOCK
BLOCK This module represent an html block
(div, span, ...)
public static final String A_HREF
A_HREF This module represent an html link (a)
public static final String ERR_MSG
ERR_MSG This module represent an error message
public static final String BUTTON
BUTTON This module represent an html button
(input type="submit,button")
public static final String IMAGE
IMAGE This module represent an html image tag
public static final String LABEL
LABEL This module represent a multilanguage
resource
public static final String FORM
FORM This module represent an html form
public static final String ACTION
ACTION This module represent a struts action
handler
public static final String TABLE
TABLE This module represent an html table
public static final String TABLE_COLUMN
TABLE_COLUMN This module represent an html
table column (td)
public static final String TABLE_ROW
TABLE_ROW This module represent an html table
row tr
public static final String TABLE_HEADER
TABLE_HEADER This module represent an html
table row th
public static final String TEXTFIELD
TEXTFIELD This module represent an html input
field (input type=text)
public static final String TEXTAREA
TEXTAREA This module represent an html
textarea
public static final String TREE
TREE This module represent a tree view
public static final String TREE_ITEM
TREE_ITEM This module represent a tree view
node
public static final String SCRIPT
SCRIPT This module represent a java script
file or a java script tag in a PAGE
public static final String FILE
FILE This module represent a file
public static final String COMBOBOX
COMBOBOX This module represent an html
combo/list box(tag select)
public static final String RADIOBUTTON
RADIOBUTTON This module represent an html
radio button (input type=radio)
public static final String CHECKBOX
CHECKBOX This module represent an html check
box (input type=checkbox)
| Constructor Detail |
public CModule(String name,
String type,
boolean isPublic)
name - the nametype - the type (PAGE,FRAMESET,FRAME,HREF,FORM,
ACTION,BUTTON,COMBOBOX,RADIOBUTTON,CHECKBOX,BLOCK)isPublic - true if the module is available as anonymous
public CModule(String name,
String type,
boolean isPublic,
CModule parent)
name - the nametype - the type (PAGE,FRAMESET,FRAME,HREF,FORM,
ACTION,BUTTON,COMBOBOX,RADIOBUTTON,CHECKBOX,BLOCK)isPublic - true if the module is available as anonymousparent - the parent module| Method Detail |
public static final boolean checkType(String type)
type - the module type
public final String addValue(String key,
String value)
key - the name of the attributevalue - the value of the attribute
public final String getValue(String key)
key - the name of the attribute
public final String get(String key)
key - the name of the attribute
public final Iterator getValues()
public final CAction setAction(CAction action)
action - the action handler to associate to this module
public final CAction getAction()
public final String getId()
public final CModule appendChild(CModule module)
module - the child to append
public final CModule getChildModule(String name)
name - the name of the child module to find
public final Iterator getChildModules()
public final String getName()
public final String getType()
public final CModule getParent()
public final String getPath()
public final CModule getRoot()
public final CModule getModuleForPath(String path)
path - the path of the module (ex: /module1/module2/.../)
public static final CModule getModuleForPath(CModule module,
String path)
module - a module to startpath - the path of the module (ex: /module1/module2/.../)
public final CModule getModuleForId(String id)
id - the unique id to search for
public static final CModule getModuleForId(CModule module,
String id)
module - a module to startid - the unique id to search for
public final Iterator getSourceNavigationItems()
public final Iterator getDestinationNavigationItems()
public static boolean checkSecurity(CModule module,
javax.servlet.http.HttpServletRequest request)
module - request -
public final String getURL()
public final CNavigationItem addSourceNavigationItems(CNavigationItem navItem)
navItem - The navigation item to add
public final CNavigationItem getSourceNavigationItem(String name)
name - the name of the navigation item to find
public final CGroup addGroup(CGroup group)
group - the group to add
public final boolean isLinkedToGroup(String name)
name - the name of the group to check
public final boolean isPublic()
public final boolean isPublicOnly()
public final void setPublicOnly(boolean isPublicOnly)
isPublicOnly - public final boolean isProtected()
public final boolean isAllConnected()
public final boolean hasGroups()
public final Iterator getGroups()
public final String getTranslation(javax.servlet.http.HttpServletRequest request)
request - the current http request
public final Iterator getJSCalls()
public static final boolean checkEvent(String event)
event - the event name
public final String[] addJSCall(String event,
String call)
event - the event namecall - the script
public final String getJSCall(String event)
event - the event name
public final String addJSFile(String src)
src - the source url of the script
public final void addCSSFile(String href,
String rel,
String title)
protected final void validate()
protected final void validateCSS()
protected final void validateSysparam()
public final Iterator getJSFiles()
public final Iterator getCSSFiles()
public final String[] getCSSFile(String href)
public final String[] addSysparam(String name,
String value)
name - the name of the parametervalue - the value of the parameter
public final String getSysparam(String name)
name - the name of the parameter
public final Iterator getSysparams()
public static CModule unmarshall(Node node,
CModule parentModule)
node - a Node of a <module> tagparentModule -
public final String toString()
Object.toString()public final String toString(String tabs)
tabs - a String containing tab (\t)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||