Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes
CMFActionIcons.ActionIconsTool.ActionIcon Class Reference
Inheritance diagram for CMFActionIcons.ActionIconsTool.ActionIcon:
Inheritance graph
[legend]
Collaboration diagram for CMFActionIcons.ActionIconsTool.ActionIcon:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getTitle
def getPriority
def getCategory
def getActionId
def getExpression
def getIconURL
def updateIconExpression

Static Public Attributes

tuple security = ClassSecurityInfo()

Private Attributes

 _category
 _action_id
 _priority
 _icon_expr_text
 _icon_expr

Static Private Attributes

 _title = None
int _priority = 0
string _category = 'object'
string _action_id = 'view'
string _icon_expr_text = 'document_icon'

Detailed Description

Definition at line 38 of file ActionIconsTool.py.


Constructor & Destructor Documentation

def CMFActionIcons.ActionIconsTool.ActionIcon.__init__ (   self,
  category,
  action_id,
  icon_expr_text = '',
  title = None,
  priority = 0 
)

Definition at line 54 of file ActionIconsTool.py.

00054 
00055                 ):
00056 
00057         self._category = category
00058         self._action_id = action_id
00059         self.updateIconExpression( icon_expr_text )
00060         self._title = title
00061         self._priority = priority


Member Function Documentation

Simple accessor 

Definition at line 81 of file ActionIconsTool.py.

00081 
00082     def getActionId( self ):
00083 
00084         """ Simple accessor """
00085         return self._action_id

Simple accessor 

Definition at line 75 of file ActionIconsTool.py.

00075 
00076     def getCategory( self ):
00077 
00078         """ Simple accessor """
00079         return self._category

Simple accessor 

Definition at line 87 of file ActionIconsTool.py.

00087 
00088     def getExpression( self ):
00089 
00090         """ Simple accessor """
00091         return self._icon_expr_text

Here is the caller graph for this function:

def CMFActionIcons.ActionIconsTool.ActionIcon.getIconURL (   self,
  context = None 
)
Simple accessor 

Definition at line 93 of file ActionIconsTool.py.

00093 
00094     def getIconURL( self, context=None ):
00095 
00096         """ Simple accessor """
00097         if context is None:
00098             return self._icon_expr_text
00099 
00100         return self._icon_expr( context )

Simple accessor 

Definition at line 69 of file ActionIconsTool.py.

00069 
00070     def getPriority( self ):
00071 
00072         """ Simple accessor """
00073         return self._priority

Simple accessor 

Definition at line 63 of file ActionIconsTool.py.

00063 
00064     def getTitle( self ):
00065 
00066         """ Simple accessor """
00067         return self._title

Mutate icon expression. 

Definition at line 102 of file ActionIconsTool.py.

00102 
00103     def updateIconExpression( self, icon_expr_text ):
00104 
00105         """ Mutate icon expression. """
00106         self._icon_expr_text = icon_expr_text
00107 
00108         if not ':' in icon_expr_text: # default to 'string:' type
00109             icon_expr_text = 'string:%s' % icon_expr_text
00110 
00111         self._icon_expr = Expression( icon_expr_text )
00112 
00113 InitializeClass( ActionIcon )
00114 


Member Data Documentation

string CMFActionIcons.ActionIconsTool.ActionIcon._action_id = 'view' [static, private]

Definition at line 45 of file ActionIconsTool.py.

Definition at line 57 of file ActionIconsTool.py.

string CMFActionIcons.ActionIconsTool.ActionIcon._category = 'object' [static, private]

Definition at line 44 of file ActionIconsTool.py.

Definition at line 56 of file ActionIconsTool.py.

Definition at line 110 of file ActionIconsTool.py.

string CMFActionIcons.ActionIconsTool.ActionIcon._icon_expr_text = 'document_icon' [static, private]

Definition at line 46 of file ActionIconsTool.py.

Definition at line 105 of file ActionIconsTool.py.

Definition at line 43 of file ActionIconsTool.py.

Definition at line 60 of file ActionIconsTool.py.

Definition at line 42 of file ActionIconsTool.py.

tuple CMFActionIcons.ActionIconsTool.ActionIcon.security = ClassSecurityInfo() [static]

Definition at line 40 of file ActionIconsTool.py.


The documentation for this class was generated from the following file: