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

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.LinkTableCache
All Implemented Interfaces:
IAlignmentConstants, IComponent, IResource
Direct Known Subclasses:
WebEditor, WebTable

public class LinkTableCache
extends WebComponent

The LinkTableCache is a WebComponent which allows linked tables as "sub" components. That means that there is a logical connection between the component and the linked table. If the component will be removed, then the linked table is also removed.


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
LinkTableCache()
           
 
Method Summary
 void addLinkTable(WebTable pTable)
          Adds a table to the list of known link tables.
 WebTable getLinkTable(String pComponentId)
          Gets a specific table from the list of known link tables.
 boolean removeLinkTable(WebTable pTable)
          Removes a table from the list of known link tables.
 
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.IResource
getResource
 

Constructor Detail

LinkTableCache

public LinkTableCache()
Method Detail

addLinkTable

public void addLinkTable(WebTable pTable)
Adds a table to the list of known link tables. A link table is for example the table from a linked cell editor.

Parameters:
pTable - the link table

removeLinkTable

public boolean removeLinkTable(WebTable pTable)
Removes a table from the list of known link tables.

Parameters:
pTable - the link table
Returns:
true if the table was removed, false if the table is not known as link table

getLinkTable

public WebTable getLinkTable(String pComponentId)
Gets a specific table from the list of known link tables.

Parameters:
pComponentId - the component id of the table
Returns:
the table or null if the component id was not found in the list of known link tables


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.