Package muntjac :: Package ui :: Module link :: Class Link
[hide private]
[frames] | no frames]

Class Link

source code

                          object --+                
                                   |                
                 util.IEventListener --+            
                                       |            
           terminal.paintable.IPaintable --+        
                                           |        
                              object --+   |        
                                       |   |        
  terminal.variable_owner.IVariableOwner --+        
                                           |        
                              object --+   |        
                                       |   |        
             terminal.sizeable.ISizeable --+        
                                           |        
                        component.IComponent --+    
                                               |    
                                  object --+   |    
                                           |   |    
event.method_event_source.IMethodEventSource --+    
                                               |    
            abstract_component.AbstractComponent --+
                                                   |
                                                  Link

Link is used to create external or internal URL links.


Authors:
Vaadin Ltd., Richard Lincoln

Version: 1.1.2

Instance Methods [hide private]
 
__init__(self, caption=None, resource=None, targetName=None, width=None, height=None, border=None)
Creates a new instance of Link.
source code
 
paintContent(self, target)
Paints the content of this component.
source code
 
getTargetBorder(self)
Returns the target window border.
source code
 
getTargetHeight(self)
Returns the target window height or -1 if not set.
source code
 
getTargetName(self)
Returns the target window name.
source code
 
getTargetWidth(self)
Returns the target window width or -1 if not set.
source code
 
setTargetBorder(self, targetBorder)
Sets the border of the target window.
source code
 
setTargetHeight(self, targetHeight)
Sets the target window height.
source code
 
setTargetName(self, targetName)
Sets the target window name.
source code
 
setTargetWidth(self, targetWidth)
Sets the target window width.
source code
 
getResource(self)
Returns the resource this link opens.
source code
 
setResource(self, resource)
Sets the resource this link opens.
source code

Inherited from abstract_component.AbstractComponent: __getstate__, __setstate__, addCallback, addListener, 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, isReadOnly, isVisible, paint, parseStringSize, registerCallback, registerListener, removeCallback, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setErrorHandler, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidthUnits, withdrawCallback, withdrawListener

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  CLIENT_WIDGET = None
hash(x)
  TARGET_BORDER_NONE = 0
  TARGET_BORDER_MINIMAL = 1
  TARGET_BORDER_DEFAULT = 2

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, caption=None, resource=None, targetName=None, width=None, height=None, border=None)
(Constructor)

source code 

Creates a new instance of Link.

Parameters:
  • caption - the Link text.
  • resource
  • targetName - the name of the target window where the link opens to. Empty name of null implies that the target is opened to the window containing the link.
  • width - the Width of the target window.
  • height - the Height of the target window.
  • border - the Border style of the target window.
Overrides: object.__init__

paintContent(self, target)

source code 

Paints the content of this component.

Parameters:
  • target - the Paint Event.
Raises:
Overrides: abstract_component.AbstractComponent.paintContent

getTargetBorder(self)

source code 

Returns the target window border.

Returns:
the target window border.

getTargetHeight(self)

source code 

Returns the target window height or -1 if not set.

Returns:
the target window height.

getTargetName(self)

source code 

Returns the target window name. Empty name of null implies that the target is opened to the window containing the link.

Returns:
the target window name.

getTargetWidth(self)

source code 

Returns the target window width or -1 if not set.

Returns:
the target window width.

setTargetBorder(self, targetBorder)

source code 

Sets the border of the target window.

Parameters:
  • targetBorder - the targetBorder to set.

setTargetHeight(self, targetHeight)

source code 

Sets the target window height.

Parameters:
  • targetHeight - the targetHeight to set.

setTargetName(self, targetName)

source code 

Sets the target window name.

Parameters:
  • targetName - the targetName to set.

setTargetWidth(self, targetWidth)

source code 

Sets the target window width.

Parameters:
  • targetWidth - the targetWidth to set.

getResource(self)

source code 

Returns the resource this link opens.

Returns:
the Resource.

setResource(self, resource)

source code 

Sets the resource this link opens.

Parameters:
  • resource - the resource to set.