com.sibvisions.rad.ui.web.impl.control
Class WebTree

java.lang.Object
  extended by com.sibvisions.rad.ui.web.impl.WebResource
      extended by com.sibvisions.rad.ui.web.impl.WebComponent
          extended by com.sibvisions.rad.ui.web.impl.control.WebTree
All Implemented Interfaces:
IControl, ITree, IAlignmentConstants, IComponent, IResource

public class WebTree
extends WebComponent
implements ITree

Web server implementation of ITree.


Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.web.impl.WebComponent
componentId
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
WebTree()
          Creates a new instance of WebTree.
 
Method Summary
 void cancelEditing()
          Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook.
 ICellFormatter getCellFormatter()
          Gets the cell formatter.
 IDataBook[] getDataBooks()
          Returns the DataBooks displayed by this control.
 INodeFormatter getNodeFormatter()
          Gets the node formatter.
 TranslationMap getTranslation()
          Gets the possible translation mapping for this UIComponent.
 void notifyRepaint()
          The control need to check if the part is visible and then repaint the part.
 void saveEditing()
          Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow.
 void setCellFormatter(ICellFormatter pCellFormatter)
          Sets the cell formatter.
 void setCellFormatter(Object pCellFormatter, String pMethodName)
          Sets the cell formatter.
 void setDataBooks(IDataBook... pDataBooks)
          Sets the DataBooks displayed by this control.
 void setNodeFormatter(INodeFormatter pCellFormatter)
          Sets the node formatter.
 void setNodeFormatter(Object pNodeFormatter, String pMethodName)
          Sets the node formatter.
 void setTranslation(TranslationMap pTranslation)
          Sets the possible translations for this UIComponent.
 
Methods inherited from class com.sibvisions.rad.ui.web.impl.WebComponent
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, finalize, getAsString, getBackground, getBounds, getChangedProperties, getComponentId, getComponentName, getConstraints, getCursor, getFactory, getFont, getForeground, getHorizontalAlignment, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getProperty, getSize, getToolTipText, getVerticalAlignment, isBackgroundSet, isChanged, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setComponentId, setConstraints, setCursor, setEnabled, setFactory, setFocusable, setFont, setForeground, setHorizontalAlignment, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setProperty, setProperty, setSize, setToolTipText, setVerticalAlignment, setVisible
 
Methods inherited from class com.sibvisions.rad.ui.web.impl.WebResource
getNullableAsString, getResource, setAsString, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Constructor Detail

WebTree

public WebTree()
Creates a new instance of WebTree.

See Also:
ITree
Method Detail

getDataBooks

public IDataBook[] getDataBooks()
Returns the DataBooks displayed by this control.

Specified by:
getDataBooks in interface ITree
Returns:
the DataBooks.
See Also:
ITree.setDataBooks(javax.rad.model.IDataBook...)

setDataBooks

public void setDataBooks(IDataBook... pDataBooks)
Sets the DataBooks displayed by this control.

Specified by:
setDataBooks in interface ITree
Parameters:
pDataBooks - the DataBooks
See Also:
ITree.getDataBooks()

notifyRepaint

public void notifyRepaint()
The control need to check if the part is visible and then repaint the part.

Specified by:
notifyRepaint in interface IControl

saveEditing

public void saveEditing()
                 throws ModelException
Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow.

Specified by:
saveEditing in interface IControl
Throws:
ModelException - if the value can not be stored.

cancelEditing

public void cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook.

Specified by:
cancelEditing in interface IControl

getCellFormatter

public ICellFormatter getCellFormatter()
Gets the cell formatter.

Specified by:
getCellFormatter in interface ITree
Returns:
the cell formatter.

setCellFormatter

public void setCellFormatter(ICellFormatter pCellFormatter)
Sets the cell formatter.

Specified by:
setCellFormatter in interface ITree
Parameters:
pCellFormatter - the cell formatter.

setCellFormatter

public void setCellFormatter(Object pCellFormatter,
                             String pMethodName)
Sets the cell formatter.

Specified by:
setCellFormatter in interface ITree
Parameters:
pCellFormatter - the cell formatter.
pMethodName - the method name.

getNodeFormatter

public INodeFormatter getNodeFormatter()
Gets the node formatter.

Specified by:
getNodeFormatter in interface ITree
Returns:
the node formatter.

setNodeFormatter

public void setNodeFormatter(INodeFormatter pCellFormatter)
Sets the node formatter.

Specified by:
setNodeFormatter in interface ITree
Parameters:
pCellFormatter - the node formatter.

setNodeFormatter

public void setNodeFormatter(Object pNodeFormatter,
                             String pMethodName)
Sets the node formatter.

Specified by:
setNodeFormatter in interface ITree
Parameters:
pNodeFormatter - the node formatter.
pMethodName - the method name.

getTranslation

public TranslationMap getTranslation()
Gets the possible translation mapping for this UIComponent.

Specified by:
getTranslation in interface IControl
Returns:
the translation mappint

setTranslation

public void setTranslation(TranslationMap pTranslation)
Sets the possible translations for this UIComponent.

Specified by:
setTranslation in interface IControl
Parameters:
pTranslation - the translation mapping


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.