Label component for showing non-editable short texts.
The label content can be set to the modes specified by the final
members CONTENT_*
|
__init__(self,
contentSource='
' ,
contentMode=None)
Creates a new instance of Label with text-contents read from given
datasource. |
source code
|
|
|
|
|
isReadOnly(self)
Is the component read-only ? Readonly is not used in label - this
returns always false. |
source code
|
|
|
|
|
|
|
|
|
__str__(self)
Returns the value of the IProperty in human readable textual format. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fireValueChange(self)
Emits the options change event. |
source code
|
|
|
|
|
|
|
|
Inherited from abstract_component.AbstractComponent :
__getstate__ ,
__setstate__ ,
addStyleName ,
attach ,
changeVariables ,
childRequestedRepaint ,
detach ,
fireComponentErrorEvent ,
fireComponentEvent ,
fireEvent ,
fireRequestRepaintEvent ,
focus ,
getApplication ,
getCSSHeight ,
getCSSWidth ,
getCaption ,
getComponentError ,
getData ,
getDebugId ,
getDescription ,
getErrorHandler ,
getErrorMessage ,
getHeight ,
getHeightUnits ,
getIcon ,
getListeners ,
getLocale ,
getParent ,
getStyle ,
getStyleName ,
getWidth ,
getWidthUnits ,
getWindow ,
handleError ,
hasListeners ,
isEnabled ,
isImmediate ,
isVisible ,
paint ,
parseStringSize ,
registerCallback ,
registerListener ,
removeStyleName ,
requestRepaint ,
requestRepaintRequests ,
setCaption ,
setComponentError ,
setData ,
setDebugId ,
setDescription ,
setEnabled ,
setErrorHandler ,
setHeight ,
setHeightUnits ,
setIcon ,
setImmediate ,
setLocale ,
setParent ,
setSizeFull ,
setSizeUndefined ,
setStyle ,
setStyleName ,
setVisible ,
setWidth ,
setWidthUnits ,
withdrawCallback ,
withdrawListener
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
CLIENT_WIDGET = None
hash(x)
|
|
CONTENT_TEXT = 0
Content mode, where the label contains only plain text.
|
|
CONTENT_PREFORMATTED = 1
Content mode, where the label contains preformatted text.
|
|
CONTENT_UIDL = 2
Formatted content mode, where the contents is XML restricted to the
UIDL
|
|
CONTENT_XHTML = 3
Content mode, where the label contains XHTML.
|
|
CONTENT_XML = 4
Content mode, where the label contains well-formed or well-balanced
XML.
|
|
CONTENT_RAW = 5
Content mode, where the label contains RAW output.
|
|
CONTENT_DEFAULT = 0
The default content mode is plain text.
|
|
_CONTENT_MODE_NAME = [ ' text ' , ' pre ' , ' uidl ' , ' xhtml ' , ' xml ' , ' ...
Array of content mode names that are rendered in UIDL as mode
attribute.
|
|
_DATASOURCE_MUST_BE_SET = ' Datasource must be set '
|
Inherited from abstract_component.AbstractComponent :
SIZE_PATTERN
Inherited from terminal.sizeable.ISizeable :
SIZE_UNDEFINED ,
UNITS_CM ,
UNITS_EM ,
UNITS_EX ,
UNITS_INCH ,
UNITS_MM ,
UNITS_PERCENTAGE ,
UNITS_PICAS ,
UNITS_PIXELS ,
UNITS_POINTS ,
UNIT_SYMBOLS
|