com.sibvisions.rad.ui.swing.impl
Class SwingComponent<C extends JComponent>

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<C>
      extended by com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
          extended by com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
              extended by com.sibvisions.rad.ui.swing.impl.SwingComponent<C>
Type Parameters:
C - an instance of JComponent
All Implemented Interfaces:
KeyListener, MouseListener, EventListener, IAlignmentConstants, IComponent, IContainer, IResource
Direct Known Subclasses:
SwingAbstractButton, SwingDesktopPanel, SwingEditor, SwingGroupPanel, SwingIcon, SwingLabel, SwingMenuBar, SwingPanel, SwingPopupMenu, SwingScrollComponent, SwingSplitPanel, SwingTabsetPanel, SwingToolBar, SwingToolBarPanel

public class SwingComponent<C extends JComponent>
extends AwtContainer<C>

The SwingComponent extends AwtComponent with setting the alignment.


Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent
factory, parent
 
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
resource
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
SwingComponent(C pJComponent)
          Creates a new instance of SwingComponent.
 
Method Summary
 String getToolTipText()
          Returns the tooltip string that has been set with setToolTipText.
 void setToolTipText(String pText)
          Registers the text to display in a tool tip. The text displays when the cursor lingers over the component.
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer
add, add, add, add, addIntern, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeIntern, setLayout, setLayoutIntern
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getHorizontalAlignment, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getVerticalAlignment, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFactory, setFocusable, setFont, setForeground, setHorizontalAlignment, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setVerticalAlignment, setVisible
 
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource
equals, getResource, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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, 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, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Constructor Detail

SwingComponent

public SwingComponent(C pJComponent)
Creates a new instance of SwingComponent.

Parameters:
pJComponent - An instance of JComponent
Method Detail

setToolTipText

public void setToolTipText(String pText)
Registers the text to display in a tool tip. The text displays when the cursor lingers over the component.

Specified by:
setToolTipText in interface IComponent
Overrides:
setToolTipText in class AwtComponent<C extends JComponent>
Parameters:
pText - the string to display; if the text is null, the tool tip is turned off for this component

getToolTipText

public String getToolTipText()
Returns the tooltip string that has been set with setToolTipText.

Specified by:
getToolTipText in interface IComponent
Overrides:
getToolTipText in class AwtComponent<C extends JComponent>
Returns:
the text of the tool tip
See Also:
IComponent.setToolTipText(String)


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.